summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-28 13:34:52 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-28 13:35:55 +0100
commit1b56aedc2b68a2db1e98c68d5344247742909e2e (patch)
treeb0e559d58d4f4a0fc70199d2b2545427f1c7741f /gobject
parent2d56e5af900662ea0a13e9e8ea4a802609214ecc (diff)
downloadlibguestfs-1b56aedc2b68a2db1e98c68d5344247742909e2e.tar.gz
libguestfs-1b56aedc2b68a2db1e98c68d5344247742909e2e.tar.xz
libguestfs-1b56aedc2b68a2db1e98c68d5344247742909e2e.zip
gobject: Use run --test for tests, and set GJS in run script.
Diffstat (limited to 'gobject')
-rw-r--r--gobject/Makefile.am4
-rwxr-xr-xgobject/run-live-tests2
-rwxr-xr-xgobject/run-tests4
3 files changed, 6 insertions, 4 deletions
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index 02e70cba..2d5c2a65 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -86,10 +86,12 @@ typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
TESTS = run-tests
+
if ENABLE_APPLIANCE
TESTS += run-live-tests
endif ENABLE_APPLIANCE
-TESTS_ENVIRONMENT = GJS=$(GJS)
+
+TESTS_ENVIRONMENT = $(top_builddir)/run --test
$(TESTS): $(typelib_DATA)
diff --git a/gobject/run-live-tests b/gobject/run-live-tests
index 11e8f7b0..3f3648e2 100755
--- a/gobject/run-live-tests
+++ b/gobject/run-live-tests
@@ -23,4 +23,4 @@ if [ -z "$GJS" ]; then
exit 0
fi
-../run $GJS $srcdir/tests-misc.js 2>/dev/null
+$GJS $srcdir/tests-misc.js 2>/dev/null
diff --git a/gobject/run-tests b/gobject/run-tests
index 55c489cf..014f646e 100755
--- a/gobject/run-tests
+++ b/gobject/run-tests
@@ -23,6 +23,6 @@ if [ -z "$GJS" ]; then
exit 0
fi
-../run $GJS $srcdir/bindtests.js > bindtests.tmp
+$GJS $srcdir/bindtests.js > bindtests.tmp
diff -u ${srcdir}/../bindtests bindtests.tmp
-../run $GJS $srcdir/bindtests-manual.js 2>/dev/null
+$GJS $srcdir/bindtests-manual.js 2>/dev/null