From 1ede105f0631f55c22069261beaeaf70b18c3b1b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Jan 18 2017 22:34:01 +0000 Subject: Fix make distcheck We need to override absolute patchs for make distcheck, as this target does a dryrun install in a speciual prefix path, so special override system unit dirs only during distcheck Also it's illegal to specify wildcards as a target in Makefiles ... Fixed runtest.py as well to look for tests in the right place Signed-off-by: Simo Sorce --- diff --git a/proxy/Makefile.am b/proxy/Makefile.am index a3c7211..644694f 100644 --- a/proxy/Makefile.am +++ b/proxy/Makefile.am @@ -30,6 +30,10 @@ pkgconfigdir = $(libdir)/pkgconfig gpstatedir = @gpstatedir@ gpclidir = @gpstatedir@/clients + +AM_DISTCHECK_CONFIGURE_FLAGS = \ + --with-systemdunitdir='$$(prefix)/$(systemdunitdir)' + AM_CPPFLAGS = AM_CFLAGS = AM_LDFLAGS = @@ -308,13 +312,15 @@ endif clean-local: rm -Rf doc + rm -Rf testdir CLEANFILES = *.X */*.X */*/*.X \ examples/mech \ examples/gssproxy.conf \ examples/24-nfs-server.conf \ examples/80-httpd.conf \ - examples/99-nfs-client.conf + examples/99-nfs-client.conf \ + systemd/gssproxy.service check: all $(check_PROGRAMS) $(srcdir)/tests/runtests.py diff --git a/proxy/tests/Makefile.am b/proxy/tests/Makefile.am index 6f5206b..6abc8c1 100644 --- a/proxy/tests/Makefile.am +++ b/proxy/tests/Makefile.am @@ -46,6 +46,15 @@ noinst_PROGRAMS = $(check_PROGRAMS) noinst_HEADERS = \ t_utils.h -EXTRA_DIST = *.py +EXTRA_DIST = \ + runtests.py \ + t_acquire.py \ + t_basic.py \ + t_cred_store.py \ + testlib.py \ + t_impersonate.py \ + t_interpose.py \ + t_multi_key.py \ + t_reloading.py all: $(check_PROGRAMS) diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py index 9b3625c..dd8eb84 100755 --- a/proxy/tests/runtests.py +++ b/proxy/tests/runtests.py @@ -59,7 +59,7 @@ if __name__ == '__main__': basicconf["keysenv"] = keysenv testnum = 0 - testfiles = [f for f in os.listdir("tests") \ + testfiles = [f for f in os.listdir(os.path.dirname(sys.argv[0])) \ if f.endswith(".py") and f.startswith("t_")] testfiles.sort() print("Tests to be run: " + ", ".join(testfiles))