summaryrefslogtreecommitdiffstats
path: root/inspector
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 /inspector
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 'inspector')
-rw-r--r--inspector/Makefile.am12
1 files changed, 8 insertions, 4 deletions
diff --git a/inspector/Makefile.am b/inspector/Makefile.am
index 00300a09..df870c8b 100644
--- a/inspector/Makefile.am
+++ b/inspector/Makefile.am
@@ -104,18 +104,22 @@ endif
example-debian.xml:
rm -f $@ $@-t
- ../run $(builddir)/virt-inspector ../tests/guests/debian.img > $@-t
+ ../run --test \
+ $(builddir)/virt-inspector ../tests/guests/debian.img > $@-t
mv $@-t $@
example-fedora.xml:
rm -f $@ $@-t
- ../run $(builddir)/virt-inspector ../tests/guests/fedora.img > $@-t
+ ../run --test \
+ $(builddir)/virt-inspector ../tests/guests/fedora.img > $@-t
mv $@-t $@
example-ubuntu.xml:
rm -f $@ $@-t
- ../run $(builddir)/virt-inspector ../tests/guests/ubuntu.img > $@-t
+ ../run --test \
+ $(builddir)/virt-inspector ../tests/guests/ubuntu.img > $@-t
mv $@-t $@
example-windows.xml:
rm -f $@ $@-t
- ../run $(builddir)/virt-inspector ../tests/guests/windows.img | \
+ ../run --test \
+ $(builddir)/virt-inspector ../tests/guests/windows.img | \
fgrep -v '<uuid>' > $@-t
mv $@-t $@