Merges in rt41883.
returned in responses.
[ISC-Bugs #29246]
+- Add logic to test directory Makefiles to avoid copying Attfile(s)
+ when building within the source tree. This eliminates a noisy but
+ otherwise harmless error message when running "make check".
+ [ISC-Bugs #41883]
+
Changes since 4.3.4b1
- None
duid_unittests_LDADD += $(DHCPLIBS)
check: $(ATF_TESTS)
- -cp -n $(top_srcdir)/client/tests/Atffile Atffile
- -cp -n $(top_srcdir)/client/tests/duid0_test.txt duid0_test.txt
- -cp -n $(top_srcdir)/client/tests/duid1_test.txt duid1_test.txt
- -cp -n $(top_srcdir)/client/tests/duid2_test.txt duid2_test.txt
- -cp -n $(top_srcdir)/client/tests/duid3_test.txt duid3_test.txt
+ @if test $(top_srcdir) != ${top_builddir}; then \
+ cp $(top_srcdir)/client/tests/Atffile Atffile; \
+ cp $(top_srcdir)/client/tests/duid0_test.txt duid0_test.txt; \
+ cp $(top_srcdir)/client/tests/duid1_test.txt duid1_test.txt; \
+ cp $(top_srcdir)/client/tests/duid2_test.txt duid2_test.txt; \
+ cp $(top_srcdir)/client/tests/duid3_test.txt duid3_test.txt; \
+ fi
sh ${top_builddir}/tests/unittest.sh
distclean-local:
@echo "ATF_LIBS=$(ATF_LIBS)"
@HAVE_ATF_TRUE@check: $(ATF_TESTS)
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/client/tests/Atffile Atffile
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/client/tests/duid0_test.txt duid0_test.txt
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/client/tests/duid1_test.txt duid1_test.txt
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/client/tests/duid2_test.txt duid2_test.txt
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/client/tests/duid3_test.txt duid3_test.txt
+@HAVE_ATF_TRUE@ @if test $(top_srcdir) != ${top_builddir}; then \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/client/tests/Atffile Atffile; \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/client/tests/duid0_test.txt duid0_test.txt; \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/client/tests/duid1_test.txt duid1_test.txt; \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/client/tests/duid2_test.txt duid2_test.txt; \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/client/tests/duid3_test.txt duid3_test.txt; \
+@HAVE_ATF_TRUE@ fi
@HAVE_ATF_TRUE@ sh ${top_builddir}/tests/unittest.sh
@HAVE_ATF_TRUE@distclean-local:
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
check: $(ATF_TESTS)
- -cp -n $(top_srcdir)/common/tests/Atffile Atffile
+ @if test $(top_srcdir) != ${top_builddir}; then \
+ cp $(top_srcdir)/common/tests/Atffile Atffile; \
+ fi
sh ${top_builddir}/tests/unittest.sh
distclean-local:
@HAVE_ATF_TRUE@check: $(ATF_TESTS)
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/common/tests/Atffile Atffile
+@HAVE_ATF_TRUE@ @if test $(top_srcdir) != ${top_builddir}; then \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/common/tests/Atffile Atffile; \
+@HAVE_ATF_TRUE@ fi
@HAVE_ATF_TRUE@ sh ${top_builddir}/tests/unittest.sh
@HAVE_ATF_TRUE@distclean-local:
leaseq_unittests_LDADD = $(DHCPLIBS) $(ATF_LDFLAGS)
check: $(ATF_TESTS)
- -cp -n $(top_srcdir)/server/tests/Atffile Atffile
+ @if test $(top_srcdir) != ${top_builddir}; then \
+ cp $(top_srcdir)/server/tests/Atffile Atffile; \
+ fi
sh ${top_builddir}/tests/unittest.sh
distclean-local:
@echo "ATF_LIBS=$(ATF_LIBS)"
@HAVE_ATF_TRUE@check: $(ATF_TESTS)
-@HAVE_ATF_TRUE@ -cp -n $(top_srcdir)/server/tests/Atffile Atffile
+@HAVE_ATF_TRUE@ @if test $(top_srcdir) != ${top_builddir}; then \
+@HAVE_ATF_TRUE@ cp $(top_srcdir)/server/tests/Atffile Atffile; \
+@HAVE_ATF_TRUE@ fi
@HAVE_ATF_TRUE@ sh ${top_builddir}/tests/unittest.sh
@HAVE_ATF_TRUE@distclean-local: