diff options
Diffstat (limited to 'openembedded/scripts/mauve-lava-test')
-rwxr-xr-x | openembedded/scripts/mauve-lava-test | 30 |
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 |