Blame test/Makefile.in

Packit 383869
srcdir = @srcdir@
Packit 383869
VPATH = @srcdir@
Packit 383869
Packit 383869
# PROGRAMS includes all test programs built on this platform.
Packit 383869
# STDTEST_PORTABLE
Packit 383869
#   test programs invoked via standard user interface, run on all platforms
Packit 383869
# ALL_TESTS
Packit 383869
#   test modules invoked through the abts suite (./testall)
Packit 383869
# OTHER_PROGRAMS
Packit 383869
#   programs such as sockperf, that have to be invoked in a special sequence
Packit 383869
#   or with special parameters
Packit 383869
Packit 383869
INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
Packit 383869
Packit 383869
STDTEST_PORTABLE = dbd testall
Packit 383869
Packit 383869
TESTS = teststrmatch.lo testuri.lo testuuid.lo testbuckets.lo testpass.lo \
Packit 383869
	testmd4.lo testmd5.lo testldap.lo testdate.lo testdbm.lo testdbd.lo \
Packit 383869
	testxml.lo testrmm.lo testreslist.lo testqueue.lo testxlate.lo \
Packit 383869
	testmemcache.lo testcrypto.lo testsiphash.lo testredis.lo
Packit 383869
Packit 383869
PROGRAMS = $(STDTEST_PORTABLE)
Packit 383869
Packit 383869
TARGETS = $(PROGRAMS)
Packit 383869
Packit 383869
LOCAL_LIBS = ../lib@APRUTIL_LIBNAME@@APRUTIL_MAJOR_VERSION@.la
Packit 383869
Packit 383869
CLEAN_TARGETS = manyfile.bin testfile.txt data/sqlite*.db
Packit 383869
Packit 383869
# bring in rules.mk for standard functionality
Packit 383869
@INCLUDE_RULES@
Packit 383869
APRUTIL_LIBS = @APRUTIL_LIBS@
Packit 383869
APRUTIL_LDFLAGS = $(ALL_LDFLAGS) @LT_NO_INSTALL@ @APRUTIL_LDFLAGS@
Packit 383869
Packit 383869
# link programs using -no-install to get real executables not
Packit 383869
# libtool wrapper scripts which link an executable when first run.
Packit 383869
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \
Packit 383869
	    $(APRUTIL_LDFLAGS) -o $@
Packit 383869
Packit 383869
# STDTEST_PORTABLE;
Packit 383869
Packit 383869
abts.lo: $(srcdir)/abts.c $(srcdir)/abts.h $(srcdir)/abts_tests.h \
Packit 383869
	 $(srcdir)/testutil.h
Packit 383869
Packit 383869
testutil.lo: $(srcdir)/abts.c $(srcdir)/abts.h $(srcdir)/abts_tests.h \
Packit 383869
	     $(srcdir)/testutil.h
Packit 383869
Packit 383869
OBJECTS_testall = abts.lo testutil.lo $(TESTS) $(LOCAL_LIBS)
Packit 383869
testall: $(OBJECTS_testall)
Packit 383869
	$(LINK_PROG) $(OBJECTS_testall) $(APRUTIL_LIBS) @LDADD_ldap@
Packit 383869
# For VPATH builds; where we have no ./data, copy us some data
Packit 383869
# if we wait until 'make check', then 'make; ./testall' fails;
Packit 383869
	if test ! -d "./data"; then cp -r $(srcdir)/data data; fi
Packit 383869
Packit 383869
OBJECTS_dbd = dbd.lo $(LOCAL_LIBS)
Packit 383869
dbd: $(OBJECTS_dbd)
Packit 383869
	$(LINK_PROG) $(OBJECTS_dbd) $(APRUTIL_LIBS)
Packit 383869
Packit 383869
check: $(TESTALL_COMPONENTS) $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
Packit 383869
	teststatus=0; \
Packit 383869
	progfailed=""; \
Packit 383869
	for prog in $(STDTEST_NONPORTABLE) $(STDTEST_PORTABLE); do \
Packit 383869
	        if test "$$prog" = 'dbd'; then \
Packit 383869
			for driver in none @apu_dbd_tests@; do \
Packit 383869
				if test "$$driver" != 'none'; then \
Packit 383869
					@apr_shlibpath_var@="`echo "../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$$@apr_shlibpath_var@" | sed -e 's/::*$$//'`" \
Packit 383869
					./$$prog $$driver; \
Packit 383869
					status=$$?; \
Packit 383869
					if test $$status != 0; then \
Packit 383869
						teststatus=$$status; \
Packit 383869
						progfailed="$$progfailed '$$prog $$driver'"; \
Packit 383869
					fi; \
Packit 383869
				fi; \
Packit 383869
			done; \
Packit 383869
	        else \
Packit 383869
			@apr_shlibpath_var@="`echo "../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$$@apr_shlibpath_var@" | sed -e 's/::*$$//'`" \
Packit 383869
			./$$prog; \
Packit 383869
			status=$$?; \
Packit 383869
			if test $$status != 0; then \
Packit 383869
				teststatus=$$status; \
Packit 383869
				progfailed="$$progfailed $$prog"; \
Packit 383869
			fi; \
Packit 383869
		fi; \
Packit 383869
	done; \
Packit 383869
	if test $$teststatus != 0; then \
Packit 383869
		echo "Programs failed:$$progfailed"; \
Packit 383869
	fi; \
Packit 383869
	exit $$teststatus
Packit 383869
Packit 383869
# DO NOT REMOVE