From 0429280e184b334c0eb762f515b0be6df06ac390 Mon Sep 17 00:00:00 2001
From: Siva Krishna Prasad Chinthalapudi
 <sivakrishnaprasad.chinthalapudi@in.bosch.com>
Date: Tue, 14 Feb 2023 10:59:01 +0000
Subject: [PATCH] Enabling rhosydd TC to run on lava

---
 test-cases/rhosydd.yaml | 63 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 test-cases/rhosydd.yaml

diff --git a/test-cases/rhosydd.yaml b/test-cases/rhosydd.yaml
new file mode 100644
index 00000000..170d1e0a
--- /dev/null
+++ b/test-cases/rhosydd.yaml
@@ -0,0 +1,63 @@
+metadata:
+  name: rhosydd
+  format: "Apertis Test Definition 1.0"
+  image-types:
+    target:  [ armhf-internal, armhf, amd64 ]
+    sdk:     [ amd64 ]
+  image-deployment:
+    - APT
+  type: unit
+  exec-type: automated
+  priority: medium
+  maintainer: "Apertis Project"
+  description: "Rhosydd module test."
+
+  macro_modules_preconditions: rhosydd
+
+  expected:
+    - "All tests should pass (ok). The output should be similar to:"
+    - |
+        >test.name0...ok
+        test.name1...ok
+        test.name2...ok
+        test.nameN...ok
+
+install:
+  deps:
+    - build-essential
+    - devscripts
+    - dpkg-dev
+    - gnome-desktop-testing
+    - libcroesor-0-dev
+    - libcroesor-0-tests
+    - librhosydd-0-dev
+    - librhosydd-0-tests
+    - python3-debian
+    - rhosydd
+    - rhosydd-tests
+    - rhosydd-tools
+    - rhosydd-mock-backends
+  steps:
+    # Download in /tmp directory
+    - cd /tmp/
+    - apt source rhosydd
+    - chown user:user -R /tmp/rhosydd-*
+  git-repos:
+    - url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
+      branch: 'apertis/v2023dev3'
+
+run:
+  steps:
+    - "# Enter test directory:"
+    - cd apertis-tests
+    - "# Execute the following commands:"
+    - systemctl start rhosydd-mock-backend.service
+    - systemctl start rhosydd-speedo-backend.service
+    - common/run-test-in-systemd --timeout=900 --chdir /tmp/rhosydd-* --user=user --name=rhosydd -- sadt --verbose
+
+parse:
+  pattern: '^(?P<test_case_id>[a-zA-Z0-9_\-\./]+)\s...\s(?P<result>ok|FAIL|SKIP)'
+  fixupdict:
+    ok: pass
+    FAIL: fail
+    SKIP: skip
-- 
GitLab