]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Makefile.am: Use 'dist-hook' to clean up <tests/unit/Makefile>
authorAlejandro Colomar <alx@kernel.org>
Fri, 28 Jun 2024 10:21:01 +0000 (12:21 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 28 Jun 2024 21:40:18 +0000 (23:40 +0200)
Closes: <https://github.com/shadow-maint/shadow/issues/1027>
Reported-by: Chris Hofstaedtler <zeha@debian.org>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Co-developed-by: Serge Hallyn <shallyn@cisco.com>
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Co-developed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: 488bf4a51982 ("Makefile.am: Use 'dist-hook' to clean up <tests/unit/Makefile>")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Makefile.am

index 22bbd561dc1ae286cf988909c026dc927ac70ebb..a92024fbcf897eda7a940deeceb4befca67ee15e 100644 (file)
@@ -15,4 +15,15 @@ SUBDIRS += man
 endif
 
 CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo
+
 EXTRA_DIST = tests/
+
+dist-hook:
+       chmod -R u+w $(distdir)/tests
+       chmod u+w $(distdir)
+       mv $(distdir)/tests/unit $(distdir)/realunittest
+       mv $(distdir)/tests/tests $(distdir)/realtests
+       rm -rf $(distdir)/tests
+       mv $(distdir)/realtests $(distdir)/tests
+       rm -rf $(distdir)/tests/unit $(distdir)/tests/Makefile*
+       mv $(distdir)/realunittest $(distdir)/tests/unit