Skip to content
Snippets Groups Projects
Commit 86cd690c authored by Ger van Diepen's avatar Ger van Diepen
Browse files

BugID: 841

Look in Makefile.am to test if a test program really has to be built
parent 23796dc3
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ DISTCLEANFILES=\
# Rule to delete all files generated by bootstrap.
# This is sometimes needed when switching to another version of autotools.
confclean: pkgclean
pkgclean: distclean
-rm -rf $(srcdir)/autom4te.cache
-rm -f $(srcdir)/config.*
......@@ -103,9 +104,14 @@ checkrun:
if [ "$$bcurwd" != test ]; then \
echo "Error: run (mem)checkrun in test directory"; \
else \
PGMB=; \
PGMT=; \
for PGMVAR in $(PGM) ; \
do \
grep "^ *$${PGMVAR}_SOURCES" $(srcdir)/Makefile.am >& /dev/null; \
if [ $$? = 0 ]; then \
PGMB="$$PGMB $$PGMVAR"; \
fi; \
PGMTST=$$PGMVAR; \
if [ -f $(srcdir)/$${PGMVAR}.sh ] ; then \
PGMTST=$(srcdir)/$${PGMVAR}.sh; \
......@@ -114,8 +120,8 @@ checkrun:
fi; \
PGMT="$$PGMT $$PGMTST"; \
done; \
echo "make check CHECKTOOL='$(CHECKTOOL)' check_PROGRAMS='$$PGM' TESTS='$$PGMT'"; \
make check CHECKTOOL="$(CHECKTOOL)" check_PROGRAMS="$$PGM" TESTS="$$PGMT"; \
echo "make check CHECKTOOL='$(CHECKTOOL)' check_PROGRAMS='$$PGMB' TESTS='$$PGMT'"; \
make check CHECKTOOL="$(CHECKTOOL)" check_PROGRAMS="$$PGMB" TESTS="$$PGMT"; \
fi \
fi
......@@ -264,6 +270,7 @@ help:
# Define the default variables to export to the test scripts.
#TESTS_ENVIRONMENT = LOFARROOT="$(LOFARROOT)" \
# lofar_sharedir="$(lofar_sharedir)" \
# prefix="$(prefix)" \
# top_srcdir="$(top_srcdir)" \
# srcdir="$(srcdir)" \
# CHECKTOOLPROGS="$(CHECKTOOLPROGS)" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment