#44 Fix make distcheck
Closed 7 years ago by rharwood. Opened 7 years ago by simo.
simo/gssproxy fixdistcheck  into  master

file modified
+7 -1
@@ -30,6 +30,10 @@ 

  gpstatedir = @gpstatedir@

  gpclidir = @gpstatedir@/clients

  

+ 

+ AM_DISTCHECK_CONFIGURE_FLAGS = \

+     --with-systemdunitdir='$$(prefix)/$(systemdunitdir)'

+ 

  AM_CPPFLAGS =

  AM_CFLAGS =

  AM_LDFLAGS =
@@ -308,13 +312,15 @@ 

  

  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

file modified
+10 -1
@@ -46,6 +46,15 @@ 

  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)

file modified
+1 -1
@@ -59,7 +59,7 @@ 

          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))

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 ...

rebased

7 years ago

Pushed to master as b84ca49

And I really thought I did the git tagging right this time...

Pull-Request has been closed by rharwood

7 years ago