vala-tests r22 - trunk/tests/bugs
- From: malureau svn gnome org
- To: svn-commits-list gnome org
- Subject: vala-tests r22 - trunk/tests/bugs
- Date: Sat, 18 Oct 2008 15:37:05 +0000 (UTC)
Author: malureau
Date: Sat Oct 18 15:37:05 2008
New Revision: 22
URL: http://svn.gnome.org/viewvc/vala-tests?rev=22&view=rev
Log:
Add bug 434503 test
Added:
trunk/tests/bugs/434503.test
- copied, changed from r21, /trunk/tests/bugs/433290.test
trunk/tests/bugs/434503.vala
Modified:
trunk/tests/bugs/428368.test
trunk/tests/bugs/433288.test
trunk/tests/bugs/433290.test
trunk/tests/bugs/433296.test
trunk/tests/bugs/update.sh
Modified: trunk/tests/bugs/428368.test
==============================================================================
--- trunk/tests/bugs/428368.test (original)
+++ trunk/tests/bugs/428368.test Sat Oct 18 15:37:05 2008
@@ -19,7 +19,7 @@
TESTNAME=`basename $0 .test`
-$VALAC --pkg gtk+-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
+ $VALAC --pkg gtk+-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
true || exit 1
Modified: trunk/tests/bugs/433288.test
==============================================================================
--- trunk/tests/bugs/433288.test (original)
+++ trunk/tests/bugs/433288.test Sat Oct 18 15:37:05 2008
@@ -19,7 +19,7 @@
TESTNAME=`basename $0 .test`
-$VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
+ $VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
true || exit 1
Modified: trunk/tests/bugs/433290.test
==============================================================================
--- trunk/tests/bugs/433290.test (original)
+++ trunk/tests/bugs/433290.test Sat Oct 18 15:37:05 2008
@@ -19,7 +19,7 @@
TESTNAME=`basename $0 .test`
-$VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala -c -C $VALAFLAGS
+ $VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala -c -C $VALAFLAGS
! grep -i my 433290.h || exit 1
Modified: trunk/tests/bugs/433296.test
==============================================================================
--- trunk/tests/bugs/433296.test (original)
+++ trunk/tests/bugs/433296.test Sat Oct 18 15:37:05 2008
@@ -19,7 +19,7 @@
TESTNAME=`basename $0 .test`
-$VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
+ $VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
true || exit 1
Copied: trunk/tests/bugs/434503.test (from r21, /trunk/tests/bugs/433290.test)
==============================================================================
--- /trunk/tests/bugs/433290.test (original)
+++ trunk/tests/bugs/434503.test Sat Oct 18 15:37:05 2008
@@ -19,15 +19,15 @@
TESTNAME=`basename $0 .test`
-$VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala -c -C $VALAFLAGS
+! $VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
-! grep -i my 433290.h || exit 1
+true || exit 1
if [ "xno" = "x1" -o "x$INTERACT" = "x1" ] ; then
G_DEBUG=fatal_warnings ./$TESTNAME $@
else
echo ""
[ "xno" = "x0" ] && echo "*** WARNING: This vala test is interactive and will not be run (try --interact) ***"
- [ "xno" = "xno" ] && rm -rf 433290.o
+ [ "xno" = "xno" ] && rm -rf 434503.o
fi
Added: trunk/tests/bugs/434503.vala
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/434503.vala Sat Oct 18 15:37:05 2008
@@ -0,0 +1,6 @@
+void test () {
+}
+
+static void main () {
+ var t = test ();
+}
\ No newline at end of file
Modified: trunk/tests/bugs/update.sh
==============================================================================
--- trunk/tests/bugs/update.sh (original)
+++ trunk/tests/bugs/update.sh Sat Oct 18 15:37:05 2008
@@ -17,6 +17,10 @@
433290
"
+invalid="
+434503
+"
+
set -e
while true ; do
@@ -60,12 +64,16 @@
grep "Gee" $file >/dev/null && PACKAGES="$PACKAGES --pkg gee-1.0"
RUN=1
+BANG=
for nr in $interactive ; do
[ $nr = $test ] && RUN=0
done
-for nr in $norun ; do
+for nr in $norun; do
[ $nr = $test ] && RUN=no VALAFLAGS="$VALAFLAGS -c"
done
+for nr in $invalid; do
+ [ $nr = $test ] && RUN=no BANG="!"
+done
TESTEXPECT=true
[ "$test" = "433290" ] && TESTEXPECT="! grep -i my 433290.h" VALAFLAGS="$VALAFLAGS -C"
@@ -92,7 +100,7 @@
TESTNAME=\`basename \$0 .test\`
-\$VALAC $PACKAGES -o \$TESTNAME \$SRCDIR/\$TESTNAME.vala $VALAFLAGS \$VALAFLAGS
+$BANG $VALAC \$VALAC $PACKAGES -o \$TESTNAME \$SRCDIR/\$TESTNAME.vala $VALAFLAGS \$VALAFLAGS
$TESTEXPECT || exit 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]