# Null invocations of the basic tools shouldn't leak memory.
test-tools-null:
- $(RUN_VG) ../fish/guestfish -N part exit
- $(RUN_VG) ../align/virt-alignment-scan -a test1.img >/dev/null
+ $(RUN_VG) ../../fish/guestfish -N part exit
+ $(RUN_VG) ../../align/virt-alignment-scan -a test1.img >/dev/null
rm test1.img
- $(RUN_VG) ../cat/virt-filesystems -a /dev/null >/dev/null
- $(RUN_VG) ../cat/virt-filesystems -a /dev/null --all --long -h --uuid >/dev/null
- $(RUN_VG) ../df/virt-df -a /dev/null >/dev/null
- $(RUN_VG) ../fish/guestfish -a /dev/null run
- $(RUN_VG) ../inspector/virt-inspector -a /dev/null >/dev/null
- $(RUN_VG) ../test-tool/libguestfs-test-tool >/dev/null 2>&1
+ $(RUN_VG) ../../cat/virt-filesystems -a /dev/null >/dev/null
+ $(RUN_VG) ../../cat/virt-filesystems -a /dev/null --all --long -h --uuid >/dev/null
+ $(RUN_VG) ../../df/virt-df -a /dev/null >/dev/null
+ $(RUN_VG) ../../fish/guestfish -a /dev/null run
+ $(RUN_VG) ../../inspector/virt-inspector -a /dev/null >/dev/null
+ $(RUN_VG) ../../test-tool/libguestfs-test-tool >/dev/null 2>&1
# Invocations of tools on internal images shouldn't leak memory.
test-tools-internal:
- $(RUN_VG) ../cat/virt-cat -a ../images/fedora.img /etc/fstab >/dev/null
- $(RUN_VG) ../cat/virt-filesystems -a ../images/fedora.img >/dev/null
- $(RUN_VG) ../cat/virt-filesystems -a ../images/fedora.img --all --long -h --uuid >/dev/null
- $(RUN_VG) ../cat/virt-ls -a ../images/fedora.img / >/dev/null
- $(RUN_VG) ../cat/virt-ls -a ../images/fedora.img -l / >/dev/null
- $(RUN_VG) ../cat/virt-ls -a ../images/fedora.img -R / >/dev/null
- $(RUN_VG) ../cat/virt-ls -a ../images/fedora.img -lR / >/dev/null
- $(RUN_VG) ../df/virt-df -a ../images/fedora.img >/dev/null
- $(RUN_VG) ../df/virt-df -a ../images/fedora.img -h >/dev/null
- $(RUN_VG) ../fish/guestfish -a ../images/fedora.img run
- $(RUN_VG) ../fish/guestfish -a ../images/fedora.img -i exit
- $(RUN_VG) ../inspector/virt-inspector -a ../images/debian.img >/dev/null
- $(RUN_VG) ../inspector/virt-inspector -a ../images/fedora.img >/dev/null
- $(RUN_VG) ../inspector/virt-inspector -a ../images/fedora-md1.img -a ../images/fedora-md2.img >/dev/null
- $(RUN_VG) ../inspector/virt-inspector -a ../images/ubuntu.img >/dev/null
- $(RUN_VG) ../inspector/virt-inspector -a ../images/windows.img >/dev/null
+ $(RUN_VG) ../../cat/virt-cat -a ../images/fedora.img /etc/fstab >/dev/null
+ $(RUN_VG) ../../cat/virt-filesystems -a ../images/fedora.img >/dev/null
+ $(RUN_VG) ../../cat/virt-filesystems -a ../images/fedora.img --all --long -h --uuid >/dev/null
+ $(RUN_VG) ../../cat/virt-ls -a ../images/fedora.img / >/dev/null
+ $(RUN_VG) ../../cat/virt-ls -a ../images/fedora.img -l / >/dev/null
+ $(RUN_VG) ../../cat/virt-ls -a ../images/fedora.img -R / >/dev/null
+ $(RUN_VG) ../../cat/virt-ls -a ../images/fedora.img -lR / >/dev/null
+ $(RUN_VG) ../../df/virt-df -a ../images/fedora.img >/dev/null
+ $(RUN_VG) ../../df/virt-df -a ../images/fedora.img -h >/dev/null
+ $(RUN_VG) ../../fish/guestfish -a ../images/fedora.img run
+ $(RUN_VG) ../../fish/guestfish -a ../images/fedora.img -i exit
+ $(RUN_VG) ../../inspector/virt-inspector -a ../images/debian.img >/dev/null
+ $(RUN_VG) ../../inspector/virt-inspector -a ../images/fedora.img >/dev/null
+ $(RUN_VG) ../../inspector/virt-inspector -a ../images/fedora-md1.img -a ../images/fedora-md2.img >/dev/null
+ $(RUN_VG) ../../inspector/virt-inspector -a ../images/ubuntu.img >/dev/null
+ $(RUN_VG) ../../inspector/virt-inspector -a ../images/windows.img >/dev/null
# Invocations of tools on real images shouldn't leak memory.
test-df-real:
- $(RUN_VG) virt-df >/dev/null
- $(RUN_VG) virt-df -h >/dev/null
+ $(RUN_VG) ../../df/virt-df >/dev/null
+ $(RUN_VG) ../../df/virt-df -h >/dev/null
test-filesystems-real:
@for g in $(GUESTS); do \
- echo $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid; \
- $(RUN_VG) ../cat/virt-filesystems -d $$g --all --long -h --uuid > /dev/null; \
+ echo $(RUN_VG) ../../cat/virt-filesystems -d $$g --all --long -h --uuid; \
+ $(RUN_VG) ../../cat/virt-filesystems -d $$g --all --long -h --uuid > /dev/null; \
r=$$?; \
if [ $$r -ne 0 ]; then exit $$r; fi; \
done
test-inspector-real:
@for g in $(GUESTS); do \
- echo $(RUN_VG) ../inspector/virt-inspector -d $$g; \
- $(RUN_VG) ../inspector/virt-inspector -d $$g > /dev/null; \
+ echo $(RUN_VG) ../../inspector/virt-inspector -d $$g; \
+ $(RUN_VG) ../../inspector/virt-inspector -d $$g > /dev/null; \
r=$$?; \
if [ $$r -ne 0 ]; then exit $$r; fi; \
done
# Run virt-resize tests under valgrind.
test-resize:
- $(MAKE) -C ../resize VG="$(VG)" check
+ $(MAKE) -C ../../resize VG="$(VG)" check
# Run virt-sparsify tests under valgrind.
test-sparsify:
- $(MAKE) -C ../sparsify VG="$(VG)" check
+ $(MAKE) -C ../../sparsify VG="$(VG)" check
# Run c-api tests under valgrind.
test-c-api:
- $(MAKE) -C ../tests/c-api VG="$(RUN_VG)" check
+ $(MAKE) -C ../c-api VG="$(RUN_VG)" check
# Test OCaml bindings under valgrind.
test-ocaml:
- $(MAKE) -C ../ocaml VG="$(VG)" check
+ $(MAKE) -C ../../ocaml VG="$(VG)" check