[vala/staging] testrunner: Add support for Genie source files (.gs)



commit d6421ce0b8c65638a8e6cb8837b8a748689d836c
Author: Alistair Thomas <astavale yahoo co uk>
Date:   Mon Feb 25 21:00:51 2019 +0000

    testrunner: Add support for Genie source files (.gs)

 tests/testrunner.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index 1cf5c8162..e8e07ead3 100755
--- a/tests/testrunner.sh
+++ b/tests/testrunner.sh
@@ -163,6 +163,18 @@ for testfile in "$@"; do
 
                cat "$srcdir/$testfile" >> $SOURCEFILE
 
+               PACKAGEFLAGS=$([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg")
+               echo "G_DEBUG=fatal-warnings $VALAC $VALAFLAGS $PACKAGEFLAGS -o $ns$EXEEXT $SOURCEFILE" >> 
prepare
+               echo "G_DEBUG=fatal-warnings ./$ns$EXEEXT" >> check
+               ;;
+       *.gs)
+               testpath=${testfile/.gs/}
+               ns=${testpath//\//_}
+               ns=${ns//-/_}
+               SOURCEFILE=$ns.gs
+
+               cat "$srcdir/$testfile" >> $SOURCEFILE
+
                PACKAGEFLAGS=$([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg")
                echo "G_DEBUG=fatal-warnings $VALAC $VALAFLAGS $PACKAGEFLAGS -o $ns$EXEEXT $SOURCEFILE" >> 
prepare
                echo "G_DEBUG=fatal-warnings ./$ns$EXEEXT" >> check


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]