1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
include /usr/share/dpkg/architecture.mk
# Disable because the test seems to hang.
export SKIP_RHBZ1285847_SH=1
export SKIP_TEST_VIRT_SYSPREP_SCRIPT_SH=1
export SKIP_TEST_VIRT_BUILDER_SH=1
export SKIP_TEST_VIRT_DIFF_SH=1 # failed on i386, riscv64
export SKIP_TEST_VIRT_FILESYSTEMS_SH=1 # failed on ppc64
export SKIP_TEST_VIRT_RESIZE_PL=1
# Disable because the tests use the network
export SKIP_TEST_VIRT_BUILDER_CACHEALL_SH=1
export SKIP_TEST_VIRT_BUILDER_LIST_SH=1
export SKIP_TEST_VIRT_BUILDER_LIST_SIMPLESTREAMS_SH=1
# Apparently fails on warning "program compiled against libxml 212 using older 209"
export SKIP_TEST_MACHINE_READABLE_SH=1
TEST_ARCHITECTURES := amd64 arm64 riscv64 ppc64el
%:
dh $@
override_dh_auto_test:
ifneq "" "$(findstring $(DEB_HOST_ARCH),$(TEST_ARCHITECTURES))"
printenv
unset XDG_RUNTIME_DIR; \
if ! test -w /dev/kvm; then \
export LIBGUESTFS_BACKEND_SETTINGS=force_tcg; \
fi; \
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1; \
$(MAKE) check VERBOSE=1
endif
override_dh_auto_install:
dh_auto_install
sed -i -e '1s,.*,#!/usr/bin/perl,' debian/guestfs-tools/usr/bin/virt-win-reg
dh_apparmor --profile-name=guestfs-tools -pguestfs-tools
|