vala-tests r30 - trunk/tests/bugs



Author: malureau
Date: Sat Oct 18 17:40:22 2008
New Revision: 30
URL: http://svn.gnome.org/viewvc/vala-tests?rev=30&view=rev

Log:
Add bug 435853 test

Added:
   trunk/tests/bugs/435853.test
      - copied, changed from r29, /trunk/tests/bugs/434503.test
   trunk/tests/bugs/435853.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/434503.test
   trunk/tests/bugs/434506.test
   trunk/tests/bugs/434507.test
   trunk/tests/bugs/434514.test
   trunk/tests/bugs/434515.test
   trunk/tests/bugs/434929.test
   trunk/tests/bugs/435848.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 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  --pkg gtk+-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=428368";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/433288.test
==============================================================================
--- trunk/tests/bugs/433288.test	(original)
+++ trunk/tests/bugs/433288.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=433288";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/433290.test
==============================================================================
--- trunk/tests/bugs/433290.test	(original)
+++ trunk/tests/bugs/433290.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  -c -C $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=433290";
+  exit 1
+fi
+
 ! grep -i my 433290.h || exit 1
 
 if [ "xno" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/433296.test
==============================================================================
--- trunk/tests/bugs/433296.test	(original)
+++ trunk/tests/bugs/433296.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=433296";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/434503.test
==============================================================================
--- trunk/tests/bugs/434503.test	(original)
+++ trunk/tests/bugs/434503.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
 !  $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n ! ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434503";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "xno" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/434506.test
==============================================================================
--- trunk/tests/bugs/434506.test	(original)
+++ trunk/tests/bugs/434506.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434506";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/434507.test
==============================================================================
--- trunk/tests/bugs/434507.test	(original)
+++ trunk/tests/bugs/434507.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434507";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/434514.test
==============================================================================
--- trunk/tests/bugs/434514.test	(original)
+++ trunk/tests/bugs/434514.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
 !  $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n ! ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434514";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "xno" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/434515.test
==============================================================================
--- trunk/tests/bugs/434515.test	(original)
+++ trunk/tests/bugs/434515.test	Sat Oct 18 17:40:22 2008
@@ -19,7 +19,15 @@
 
 TESTNAME=`basename $0 .test`
 
-  $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  -DWITH_TEST $VALAFLAGS
+  $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  -D WITH_TEST $VALAFLAGS
+
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434515";
+  exit 1
+fi
 
 true || exit 1
 

Modified: trunk/tests/bugs/434929.test
==============================================================================
--- trunk/tests/bugs/434929.test	(original)
+++ trunk/tests/bugs/434929.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=434929";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Modified: trunk/tests/bugs/435848.test
==============================================================================
--- trunk/tests/bugs/435848.test	(original)
+++ trunk/tests/bugs/435848.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
   $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  -X -Wall $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=435848";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then

Copied: trunk/tests/bugs/435853.test (from r29, /trunk/tests/bugs/434503.test)
==============================================================================
--- /trunk/tests/bugs/434503.test	(original)
+++ trunk/tests/bugs/435853.test	Sat Oct 18 17:40:22 2008
@@ -21,6 +21,14 @@
 
 !  $VALAC  -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
 
+if [ "$?" != "0" ] && [ -n ! ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=435853";
+  exit 1
+fi
+
 true || exit 1
 
 if [ "xno" = "x1" -o "x$INTERACT" = "x1" ] ; then
@@ -28,6 +36,6 @@
 else
   echo ""
   [ "xno" = "x0" ] && echo "*** WARNING: This vala test is interactive and will not be run (try --interact) ***"
-  [ "xno" = "xno" ] && rm -rf 434503.o
+  [ "xno" = "xno" ] && rm -rf 435853.o
 fi
 

Added: trunk/tests/bugs/435853.vala
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/435853.vala	Sat Oct 18 17:40:22 2008
@@ -0,0 +1,7 @@
+abstract class Test {
+	abstract virtual void test ();
+}
+
+static void main () {
+	assert_not_reached ();
+}
\ 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 17:40:22 2008
@@ -20,6 +20,7 @@
 invalid="
 434503
 434514
+435853
 "
 
 set -e
@@ -78,9 +79,11 @@
 
 TESTEXPECT=true
 [ "$test" = "433290" ] && TESTEXPECT="! grep -i my 433290.h" VALAFLAGS="$VALAFLAGS -C"
-[ "$test" = "434515" ] && VALAFLAGS="$VALAFLAGS -DWITH_TEST"
+[ "$test" = "434515" ] && VALAFLAGS="$VALAFLAGS -D WITH_TEST"
 [ "$test" = "435848" ] && VALAFLAGS="$VALAFLAGS -X -Wall"
 
+BUGZILLA="http://bugzilla.gnome.org/show_bug.cgi?id=$test";
+
 cat >$test.test <<EOF
 #!/bin/sh
 
@@ -105,6 +108,14 @@
 
 $BANG $VALAC \$VALAC $PACKAGES -o \$TESTNAME \$SRCDIR/\$TESTNAME.vala $VALAFLAGS \$VALAFLAGS
 
+if [ "\$?" != "0" ] && [ -n $BANG ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: $BUGZILLA"
+  exit 1
+fi
+
 $TESTEXPECT || exit 1
 
 if [ "x$RUN" = "x1" -o "x\$INTERACT" = "x1" ] ; then
@@ -119,7 +130,7 @@
 
 chmod +x $test.test
 
-[ "$check" = "1" ] && echo "Running $test..." && ./$test.test $interact $@
+[ "$check" = "1" ] && echo "Running $test..." && ./$test.test $interact $@ || true
 
 rm -f $test $test.{c,h,o}
 



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