From: Rico Tzschichholz Date: Mon, 5 Feb 2018 14:46:09 +0000 (+0100) Subject: testrunner: Accept Packages in header of Invalid Code tests X-Git-Tag: 0.39.91~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c37a77eeea95526305c7907a379f86de958810;p=thirdparty%2Fvala.git testrunner: Accept Packages in header of Invalid Code tests --- diff --git a/tests/testrunner.sh b/tests/testrunner.sh index 7e0fef939..6025cac0c 100755 --- a/tests/testrunner.sh +++ b/tests/testrunner.sh @@ -120,7 +120,8 @@ EOF function sourceend() { if [ -n "$testpath" ]; then if [ $INVALIDCODE -eq 1 ]; then - echo "! $VALAC $VALAFLAGS -C $SOURCEFILE" > check + PACKAGEFLAGS=$([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg") + echo "! $VALAC $VALAFLAGS $PACKAGEFLAGS -C $SOURCEFILE" > check elif [ $GIRTEST -eq 1 ]; then if [ $PART -eq 1 ]; then echo " " >> $SOURCEFILE