From eb0b5544fd19239b2b8d11cd978e65b5bb0ad715 Mon Sep 17 00:00:00 2001
From: Luis Araujo <luis.araujo@collabora.co.uk>
Date: Fri, 14 Dec 2018 17:25:09 +0800
Subject: [PATCH] Update test cases for lava integration (SDK)

This commit applies the required changes to the test cases so
they can be executed in LAVA.

The change consists in adding the `git-repos` directive so they
can fetch the tests scripts from LAVA.

This is the SDK group in a serie of commits to integrate
all the tests into LAVA.

Signed-off-by: Luis Araujo <luis.araujo@collabora.co.uk>
---
 test-cases/folks-sync-only.yaml               | 13 +++++++---
 test-cases/sdk-code-analysis-tools-gcov.yaml  |  9 +++++--
 .../sdk-code-analysis-tools-splint.yaml       |  9 +++++--
 test-cases/sdk-debug-tools-gdb.yaml           |  9 +++++--
 test-cases/sdk-debug-tools-strace.yaml        |  9 +++++--
 test-cases/sdk-debug-tools-valgrind.yaml      |  9 +++++--
 test-cases/sdk-performance-tools-gprof.yaml   |  7 +++++-
 test-cases/sdk-performance-tools-sysprof.yaml |  7 +++++-
 test-cases/telepathy-ring-automated.yaml      | 25 +++++++++++--------
 9 files changed, 71 insertions(+), 26 deletions(-)

diff --git a/test-cases/folks-sync-only.yaml b/test-cases/folks-sync-only.yaml
index 609389c..3d4d25e 100644
--- a/test-cases/folks-sync-only.yaml
+++ b/test-cases/folks-sync-only.yaml
@@ -16,13 +16,18 @@ metadata:
 
 install:
   deps:
-  - chaiwala-tests
-  - ofono-tests
-  - ofono-phonesim
-  - libfolks-ofono25
+    - chaiwala-tests
+    - ofono-tests
+    - ofono-phonesim
+    - libfolks-ofono25
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --user=user folks/folks-sync-only.sh
 
diff --git a/test-cases/sdk-code-analysis-tools-gcov.yaml b/test-cases/sdk-code-analysis-tools-gcov.yaml
index ff3d996..8777992 100644
--- a/test-cases/sdk-code-analysis-tools-gcov.yaml
+++ b/test-cases/sdk-code-analysis-tools-gcov.yaml
@@ -21,11 +21,16 @@ metadata:
 
 install:
   deps:
-  - bash
-  - apertis-tests
+    - bash
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --user=user --basename -- sdk/automated/test-gcov.sh
 
diff --git a/test-cases/sdk-code-analysis-tools-splint.yaml b/test-cases/sdk-code-analysis-tools-splint.yaml
index 396ffc4..6a2ec48 100644
--- a/test-cases/sdk-code-analysis-tools-splint.yaml
+++ b/test-cases/sdk-code-analysis-tools-splint.yaml
@@ -20,11 +20,16 @@ metadata:
 
 install:
   deps:
-  - bash
-  - apertis-tests
+    - bash
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --user=user --basename -- /usr/share/chaiwala-tests/sdk/automated/test-splint.sh
 
diff --git a/test-cases/sdk-debug-tools-gdb.yaml b/test-cases/sdk-debug-tools-gdb.yaml
index 9b8b597..b3392f8 100644
--- a/test-cases/sdk-debug-tools-gdb.yaml
+++ b/test-cases/sdk-debug-tools-gdb.yaml
@@ -18,11 +18,16 @@ metadata:
 
 install:
   deps:
-  - bash
-  - apertis-tests
+    - bash
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --basename --user=user -- /usr/share/chaiwala-tests/sdk/automated/test-gdb.sh
 
diff --git a/test-cases/sdk-debug-tools-strace.yaml b/test-cases/sdk-debug-tools-strace.yaml
index 502d645..4ab760b 100644
--- a/test-cases/sdk-debug-tools-strace.yaml
+++ b/test-cases/sdk-debug-tools-strace.yaml
@@ -18,11 +18,16 @@ metadata:
 
 install:
   deps:
-  - bash
-  - apertis-tests
+    - bash
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --basename --user=user -- /usr/share/chaiwala-tests/sdk/automated/test-strace.sh
 
diff --git a/test-cases/sdk-debug-tools-valgrind.yaml b/test-cases/sdk-debug-tools-valgrind.yaml
index e1e3e22..00e2953 100644
--- a/test-cases/sdk-debug-tools-valgrind.yaml
+++ b/test-cases/sdk-debug-tools-valgrind.yaml
@@ -18,11 +18,16 @@ metadata:
 
 install:
   deps:
-  - bash
-  - apertis-tests
+    - bash
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --basename --user=user -- /usr/share/chaiwala-tests/sdk/automated/test-valgrind.sh
 
diff --git a/test-cases/sdk-performance-tools-gprof.yaml b/test-cases/sdk-performance-tools-gprof.yaml
index 581afa5..64624c8 100644
--- a/test-cases/sdk-performance-tools-gprof.yaml
+++ b/test-cases/sdk-performance-tools-gprof.yaml
@@ -21,10 +21,15 @@ metadata:
 
 install:
   deps:
-  - apertis-tests
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --basename --user=user -- sdk/automated/test-gprof.sh
 
diff --git a/test-cases/sdk-performance-tools-sysprof.yaml b/test-cases/sdk-performance-tools-sysprof.yaml
index 66d5a90..02a6889 100644
--- a/test-cases/sdk-performance-tools-sysprof.yaml
+++ b/test-cases/sdk-performance-tools-sysprof.yaml
@@ -21,10 +21,15 @@ metadata:
 
 install:
   deps:
-  - apertis-tests
+    - apertis-tests
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
     - "# Execute the following command:"
     - common/run-test-in-systemd --basename -- sdk/automated/test-sysprof.sh
 
diff --git a/test-cases/telepathy-ring-automated.yaml b/test-cases/telepathy-ring-automated.yaml
index 1e52ae6..8173129 100644
--- a/test-cases/telepathy-ring-automated.yaml
+++ b/test-cases/telepathy-ring-automated.yaml
@@ -21,19 +21,24 @@ metadata:
 
 install:
   deps:
-  - telepathy-ring
-  - telepathy-phoenix
-  - telepathy-mission-control-5
-  - ofono-tests
-  - apertis-tests-apparmor-report
-  - ofono-phonesim
+    - telepathy-ring
+    - telepathy-phoenix
+    - telepathy-mission-control-5
+    - ofono-tests
+    - apertis-tests-apparmor-report
+    - ofono-phonesim
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: master
 
 run:
   steps:
-  - "# Execute the following commands:"
-  - echo -n | sudo tee /var/log/audit/audit.log
-  - common/run-test-in-systemd --user=user sdk/telepathy-ring-automated.sh
-  - sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
+    - "# Enter test directory:"
+    - cd apertis-tests
+    - "# Execute the following commands:"
+    - echo -n | sudo tee /var/log/audit/audit.log
+    - common/run-test-in-systemd --user=user sdk/telepathy-ring-automated.sh
+    - sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
 
 parse:
   fixupdict:
-- 
GitLab