From: James Bottomley Date: Tue, 23 Jun 2020 13:05:31 +0000 (-0700) Subject: Fix make distcheck for new engine key unit test X-Git-Tag: v2.5_beta1~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21e3e9fc34128d37bd612def2acca29a5a18de77;p=thirdparty%2Fopenvpn.git Fix make distcheck for new engine key unit test Add config precursor and script to extra dist and make sure built and test leftover files are cleaned up afterwards. Signed-off-by: James Bottomley Acked-by: Gert Doering Message-Id: <1592917531.4768.4.camel@HansenPartnership.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20088.html Signed-off-by: Gert Doering --- diff --git a/tests/unit_tests/engine-key/Makefile.am b/tests/unit_tests/engine-key/Makefile.am index 95e7d8682..0bfdfcd4d 100644 --- a/tests/unit_tests/engine-key/Makefile.am +++ b/tests/unit_tests/engine-key/Makefile.am @@ -2,6 +2,9 @@ AUTOMAKE_OPTIONS = foreign check_LTLIBRARIES = libtestengine.la conffiles = openssl.cnf +EXTRA_DIST = \ + openssl.cnf.in \ + check_engine_keys.sh TESTS_ENVIRONMENT = srcdir="$(abs_srcdir)"; \ builddir="$(abs_builddir)"; \ @@ -12,8 +15,11 @@ TESTS_ENVIRONMENT = srcdir="$(abs_srcdir)"; \ TESTS = check_engine_keys.sh check_engine_keys.sh: $(conffiles) -clean-local: - rm -f $(conffiles) +CLEANFILES = \ + client.key \ + passwd \ + log.txt \ + $(conffiles) $(builddir)/openssl.cnf: $(srcdir)/openssl.cnf.in sed "s|ABSBUILDDIR|$(abs_builddir)|" < $< > $@