git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e72c200
)
extra tests: Test that valgrind and libtool are installed.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 2 Dec 2011 15:03:19 +0000
(15:03 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 2 Dec 2011 15:03:19 +0000
(15:03 +0000)
extratests/Makefile.am
patch
|
blob
|
history
diff --git
a/extratests/Makefile.am
b/extratests/Makefile.am
index
bf6b3f9
..
32dcbf2
100644
(file)
--- a/
extratests/Makefile.am
+++ b/
extratests/Makefile.am
@@
-22,6
+22,7
@@
# - the disks of these guests are accessible by the current user
# (tip: add yourself to the 'disk' group)
# - valgrind
# - the disks of these guests are accessible by the current user
# (tip: add yourself to the 'disk' group)
# - valgrind
+# - libtool
#
# These tests may fail for reasons which aren't necessarily real problems.
#
#
# These tests may fail for reasons which aren't necessarily real problems.
#
@@
-68,6
+69,7
@@
GUESTS = $(shell virsh -c $(LIBVIRT_DEFAULT_URI) list --all | \
awk '{print $$2}')
extra-tests: \
awk '{print $$2}')
extra-tests: \
+ test-prerequisites \
test-capitests \
test-tools-null \
test-tools-internal \
test-capitests \
test-tools-null \
test-tools-internal \
@@
-78,6
+80,16
@@
extra-tests: \
test-resize \
test-sparsify
test-resize \
test-sparsify
+test-prerequisites:
+ @libtool --help >/dev/null 2>&1 || { \
+ echo "extra-tests: libtool is not installed"; \
+ exit 1; \
+ }
+ @valgrind --help >/dev/null 2>&1 || { \
+ echo "extra-tests: valgrind is not installed"; \
+ exit 1; \
+ }
+
# Null invocations of the basic tools shouldn't leak memory.
test-tools-null:
$(RUN_VG) ../fish/guestfish -N part exit
# Null invocations of the basic tools shouldn't leak memory.
test-tools-null:
$(RUN_VG) ../fish/guestfish -N part exit