summaryrefslogtreecommitdiff
path: root/openembedded/scripts
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-07-30 10:44:29 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-07-30 12:37:08 +0100
commitb8a9748e1b3dfc4106c500a7a31b3f018f337446 (patch)
treebc215fd612faf7e0f221982ea8f387f6cd2f8377 /openembedded/scripts
parent800bae049052d53cd88fc5724f635862c2713f57 (diff)
mauve: tests to run are driven by files
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Diffstat (limited to 'openembedded/scripts')
-rwxr-xr-xopenembedded/scripts/mauve-lava-test30
1 files changed, 30 insertions, 0 deletions
diff --git a/openembedded/scripts/mauve-lava-test b/openembedded/scripts/mauve-lava-test
new file mode 100755
index 0000000..bd815a8
--- /dev/null
+++ b/openembedded/scripts/mauve-lava-test
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Lava Mauve test harness.
+#
+# Copyright (C) 2013, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Andrew McDermott <andrew.mcdermott@linaro.org>
+#
+
+while read -r pkg; do
+ [[ "$pkg" =~ ^#.*$ ]] && continue
+ [[ "$pkg" =~ ^$ ]] && continue
+ id=${pkg//\//.}
+ lava-test-case $id --shell mauve-test-pkg $pkg "$@" 2>&1 | tee /tmp/mauve-$id.txt
+ lava-test-case-attach $id /tmp/mauve-${id}.txt text/plain
+done