summaryrefslogtreecommitdiffstats
path: root/tests/c-api
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-26 22:47:35 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-26 23:34:30 +0100
commit05d4e07918bfa9907a1fa66391e8e2e2370c64d4 (patch)
tree7e18079fefdf927b56715f24e0080c2a65a70840 /tests/c-api
parentbbb7d75c91450ab029edb794b0486eeb8220e4fd (diff)
downloadlibguestfs-05d4e07918bfa9907a1fa66391e8e2e2370c64d4.tar.gz
libguestfs-05d4e07918bfa9907a1fa66391e8e2e2370c64d4.tar.xz
libguestfs-05d4e07918bfa9907a1fa66391e8e2e2370c64d4.zip
tests: Add ./run --test option.
This option, when added via TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test allows us to run the tests and only print the full output (including debugging etc) when the test fails.
Diffstat (limited to 'tests/c-api')
-rw-r--r--tests/c-api/Makefile.am3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/c-api/Makefile.am b/tests/c-api/Makefile.am
index 8888b739..04cd52c1 100644
--- a/tests/c-api/Makefile.am
+++ b/tests/c-api/Makefile.am
@@ -61,8 +61,7 @@ EXTRA_DIST += test-add-libvirt-dom.c
TESTS_ENVIRONMENT = \
SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
SKIP_TEST_COMMAND_LINES=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
- LIBGUESTFS_PATH=$(top_builddir)/appliance \
- TMPDIR=$(top_builddir) \
+ $(top_builddir)/run --test \
$(VG)
#SKIP_TEST_CHECKSUM_8=$(shell if test `find ../initramfs -name squashfs.ko | wc -l` -eq 0; then echo 1; fi)