mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
gobject: Use run --test for tests, and set GJS in run script.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user