[vala/wip/tests] testrunner: Accept Packages in header of Invalid Code tests
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/tests] testrunner: Accept Packages in header of Invalid Code tests
- Date: Mon, 5 Feb 2018 15:20:42 +0000 (UTC)
commit 78c37a77eeea95526305c7907a379f86de958810
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 5 15:46:09 2018 +0100
testrunner: Accept Packages in header of Invalid Code tests
tests/testrunner.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index 7e0fef9..6025cac 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 " </namespace>" >> $SOURCEFILE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]