vala-tests r33 - in trunk/tests: bugs examples



Author: malureau
Date: Sat Oct 18 20:47:44 2008
New Revision: 33
URL: http://svn.gnome.org/viewvc/vala-tests?rev=33&view=rev

Log:
Allow tests to be run directly from a different directory

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/435853.test
   trunk/tests/bugs/435854.test
   trunk/tests/bugs/436011.test
   trunk/tests/bugs/update.sh
   trunk/tests/examples/advanced.test
   trunk/tests/examples/async-gio.test
   trunk/tests/examples/basic.test
   trunk/tests/examples/bluez-dbus-sample.test
   trunk/tests/examples/cairo.test
   trunk/tests/examples/dbus-sample.test
   trunk/tests/examples/dbus-server-sample.test
   trunk/tests/examples/egg-clock.test
   trunk/tests/examples/gconf.test
   trunk/tests/examples/glade.test
   trunk/tests/examples/gnio-sock.test
   trunk/tests/examples/gnome-desktop-and-menu.test
   trunk/tests/examples/gstreamer-square-beep.test
   trunk/tests/examples/gstreamer-video.test
   trunk/tests/examples/gtk-builder-sample.test
   trunk/tests/examples/gtk-filechooser-subclass.test
   trunk/tests/examples/gtk-sample.test
   trunk/tests/examples/gtk-valawidget.test
   trunk/tests/examples/list.test
   trunk/tests/examples/panel-applet-advanced.test
   trunk/tests/examples/panel-applet-simple.test
   trunk/tests/examples/pango-cairo.test
   trunk/tests/examples/poppler-sample.test
   trunk/tests/examples/properties-construction.test
   trunk/tests/examples/properties.test
   trunk/tests/examples/string.test
   trunk/tests/examples/update.sh
   trunk/tests/examples/webkit-sample.test

Modified: trunk/tests/bugs/428368.test
==============================================================================
--- trunk/tests/bugs/428368.test	(original)
+++ trunk/tests/bugs/428368.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/433288.test
==============================================================================
--- trunk/tests/bugs/433288.test	(original)
+++ trunk/tests/bugs/433288.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/433290.test
==============================================================================
--- trunk/tests/bugs/433290.test	(original)
+++ trunk/tests/bugs/433290.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/433296.test
==============================================================================
--- trunk/tests/bugs/433296.test	(original)
+++ trunk/tests/bugs/433296.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434503.test
==============================================================================
--- trunk/tests/bugs/434503.test	(original)
+++ trunk/tests/bugs/434503.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434506.test
==============================================================================
--- trunk/tests/bugs/434506.test	(original)
+++ trunk/tests/bugs/434506.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434507.test
==============================================================================
--- trunk/tests/bugs/434507.test	(original)
+++ trunk/tests/bugs/434507.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434514.test
==============================================================================
--- trunk/tests/bugs/434514.test	(original)
+++ trunk/tests/bugs/434514.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434515.test
==============================================================================
--- trunk/tests/bugs/434515.test	(original)
+++ trunk/tests/bugs/434515.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/434929.test
==============================================================================
--- trunk/tests/bugs/434929.test	(original)
+++ trunk/tests/bugs/434929.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/435848.test
==============================================================================
--- trunk/tests/bugs/435848.test	(original)
+++ trunk/tests/bugs/435848.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/435853.test
==============================================================================
--- trunk/tests/bugs/435853.test	(original)
+++ trunk/tests/bugs/435853.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/435854.test
==============================================================================
--- trunk/tests/bugs/435854.test	(original)
+++ trunk/tests/bugs/435854.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/436011.test
==============================================================================
--- trunk/tests/bugs/436011.test	(original)
+++ trunk/tests/bugs/436011.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/bugs/update.sh
==============================================================================
--- trunk/tests/bugs/update.sh	(original)
+++ trunk/tests/bugs/update.sh	Sat Oct 18 20:47:44 2008
@@ -97,7 +97,7 @@
 
 if [ "x\$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=\`dirname \$0\`
 fi
 
 while true ; do

Modified: trunk/tests/examples/advanced.test
==============================================================================
--- trunk/tests/examples/advanced.test	(original)
+++ trunk/tests/examples/advanced.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/async-gio.test
==============================================================================
--- trunk/tests/examples/async-gio.test	(original)
+++ trunk/tests/examples/async-gio.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/basic.test
==============================================================================
--- trunk/tests/examples/basic.test	(original)
+++ trunk/tests/examples/basic.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/bluez-dbus-sample.test
==============================================================================
--- trunk/tests/examples/bluez-dbus-sample.test	(original)
+++ trunk/tests/examples/bluez-dbus-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/cairo.test
==============================================================================
--- trunk/tests/examples/cairo.test	(original)
+++ trunk/tests/examples/cairo.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/dbus-sample.test
==============================================================================
--- trunk/tests/examples/dbus-sample.test	(original)
+++ trunk/tests/examples/dbus-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/dbus-server-sample.test
==============================================================================
--- trunk/tests/examples/dbus-server-sample.test	(original)
+++ trunk/tests/examples/dbus-server-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/egg-clock.test
==============================================================================
--- trunk/tests/examples/egg-clock.test	(original)
+++ trunk/tests/examples/egg-clock.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gconf.test
==============================================================================
--- trunk/tests/examples/gconf.test	(original)
+++ trunk/tests/examples/gconf.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/glade.test
==============================================================================
--- trunk/tests/examples/glade.test	(original)
+++ trunk/tests/examples/glade.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gnio-sock.test
==============================================================================
--- trunk/tests/examples/gnio-sock.test	(original)
+++ trunk/tests/examples/gnio-sock.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gnome-desktop-and-menu.test
==============================================================================
--- trunk/tests/examples/gnome-desktop-and-menu.test	(original)
+++ trunk/tests/examples/gnome-desktop-and-menu.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gstreamer-square-beep.test
==============================================================================
--- trunk/tests/examples/gstreamer-square-beep.test	(original)
+++ trunk/tests/examples/gstreamer-square-beep.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gstreamer-video.test
==============================================================================
--- trunk/tests/examples/gstreamer-video.test	(original)
+++ trunk/tests/examples/gstreamer-video.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gtk-builder-sample.test
==============================================================================
--- trunk/tests/examples/gtk-builder-sample.test	(original)
+++ trunk/tests/examples/gtk-builder-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gtk-filechooser-subclass.test
==============================================================================
--- trunk/tests/examples/gtk-filechooser-subclass.test	(original)
+++ trunk/tests/examples/gtk-filechooser-subclass.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gtk-sample.test
==============================================================================
--- trunk/tests/examples/gtk-sample.test	(original)
+++ trunk/tests/examples/gtk-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/gtk-valawidget.test
==============================================================================
--- trunk/tests/examples/gtk-valawidget.test	(original)
+++ trunk/tests/examples/gtk-valawidget.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/list.test
==============================================================================
--- trunk/tests/examples/list.test	(original)
+++ trunk/tests/examples/list.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/panel-applet-advanced.test
==============================================================================
--- trunk/tests/examples/panel-applet-advanced.test	(original)
+++ trunk/tests/examples/panel-applet-advanced.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/panel-applet-simple.test
==============================================================================
--- trunk/tests/examples/panel-applet-simple.test	(original)
+++ trunk/tests/examples/panel-applet-simple.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/pango-cairo.test
==============================================================================
--- trunk/tests/examples/pango-cairo.test	(original)
+++ trunk/tests/examples/pango-cairo.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/poppler-sample.test
==============================================================================
--- trunk/tests/examples/poppler-sample.test	(original)
+++ trunk/tests/examples/poppler-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/properties-construction.test
==============================================================================
--- trunk/tests/examples/properties-construction.test	(original)
+++ trunk/tests/examples/properties-construction.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/properties.test
==============================================================================
--- trunk/tests/examples/properties.test	(original)
+++ trunk/tests/examples/properties.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/string.test
==============================================================================
--- trunk/tests/examples/string.test	(original)
+++ trunk/tests/examples/string.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do

Modified: trunk/tests/examples/update.sh
==============================================================================
--- trunk/tests/examples/update.sh	(original)
+++ trunk/tests/examples/update.sh	Sat Oct 18 20:47:44 2008
@@ -57,6 +57,7 @@
 grep "Poppler\." $file >/dev/null && PACKAGES="$PACKAGES --pkg poppler-glib"
 grep "SocketConnection" $file >/dev/null && PACKAGES="$PACKAGES --pkg gnio"
 grep "WebKit" $file >/dev/null && PACKAGES="$PACKAGES --pkg webkit-1.0"
+grep "Gee" $file >/dev/null && PACKAGES="$PACKAGES --pkg gee-1.0"
 
 VALAFLAGS=
 [ "$test" = "glade" ] && VALAFLAGS='-X "-Wl,--export-dynamic"'
@@ -79,7 +80,7 @@
 
 if [ "x\$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=\`dirname \$0\`
 fi
 
 while true ; do

Modified: trunk/tests/examples/webkit-sample.test
==============================================================================
--- trunk/tests/examples/webkit-sample.test	(original)
+++ trunk/tests/examples/webkit-sample.test	Sat Oct 18 20:47:44 2008
@@ -6,7 +6,7 @@
 
 if [ "x$VALAC" = "x" ] ; then
   VALAC=valac
-  SRCDIR=.
+  SRCDIR=`dirname $0`
 fi
 
 while true ; do



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