From 375465a0e610ea9ad2d7d7ec11e25d7b4614c0f5 Mon Sep 17 00:00:00 2001
From: Luis Araujo <luis.araujo@collabora.co.uk>
Date: Fri, 3 Mar 2017 01:28:59 +0800
Subject: [PATCH] Add newport (autopkgtest) test definition

This LAVA test definition executes the newport tests using
autopkgtest from its debian package.

Signed-off-by: Luis Araujo <luis.araujo@collabora.co.uk>
Reviewed-by: Emanuele Aina <emanuele.aina@collabora.com>
Differential Revision: https://phabricator.apertis.org/D6109
---
 modules/newport.yaml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 modules/newport.yaml

diff --git a/modules/newport.yaml b/modules/newport.yaml
new file mode 100644
index 00000000..aeca64ef
--- /dev/null
+++ b/modules/newport.yaml
@@ -0,0 +1,32 @@
+metadata:
+  name: newport
+  format: "Lava-Test-Shell Test Definition 1.0"
+  description: "Newport library test."
+  maintainer: "luis.araujo@collabora.co.uk"
+  scope:
+  - functional
+  environment:
+  - lava-test-shell
+
+install:
+  deps:
+  - devscripts
+  - gnome-desktop-testing
+  - newport-tests
+  - python3-debian
+  steps:
+  # Download in /tmp directory
+  - cd /tmp/
+  - apt source newport
+  - chown user:user -R /tmp/newport-*
+
+run:
+  steps:
+  - common/run-test-in-systemd --timeout=900 --chdir /tmp/newport-* --user=user --name=newport -- 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