qubes-installer-qubes-os/anaconda/tests/glade/run_glade_tests.sh
Marek Marczykowski-Górecki 3e63d1dd37 anaconda: update to 21.48.21-1
Apply diff anaconda-20.25.16-1..anaconda-21.48.21-1
2016-03-22 02:27:15 +13:00

32 lines
749 B
Bash

#!/bin/sh
: "${top_srcdir:=$(dirname "$0")/../..}"
. "${top_srcdir}/tests/testenv.sh"
srcdir="${top_srcdir}/tests/glade"
. "${top_srcdir}/tests/lib/testlib.sh"
# If --translated was specified but not --podir, add --podir
translate_set=0
podir_set=0
for arg in "$@" ; do
if [ "$arg" = "--translate" -o "$arg" = "-t" ]; then
translate_set=1
elif echo "$arg" | grep -q '^--podir\(=.*\)\?$' || [ "$arg" = "-p" ]; then
podir_set=1
fi
done
if [ "$translate_set" -eq 1 -a "$podir_set" -eq 0 ]; then
set -- "$@" --podir "${top_srcdir}/po"
fi
status=0
for check in ${srcdir}/*/check_*.py ; do
findtestfiles -name '*.glade' | xargs "${check}" "$@"
if [ "$?" -ne 0 ]; then
status=1
fi
done
exit $status