"Fossies" - the Fresh Open Source Software Archive

Member "apr-1.7.0/test/Makefile.in" (25 Jun 2018, 6196 Bytes) of package /linux/www/apr-1.7.0.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 1.6.5_vs_1.7.0.

    1 srcdir = @srcdir@
    2 VPATH = @srcdir@
    3 
    4 # PROGRAMS includes all test programs built on this platform.
    5 # STDTEST_PORTABLE
    6 #   test programs invoked via standard user interface, run on all platforms
    7 # TESTS
    8 #   test modules invoked through the abts suite (./testall)
    9 # STDTEST_NONPORTABLE
   10 #   test programs invoked via standard user interface, not portable
   11 # OTHER_PROGRAMS
   12 #   programs such as sockperf, that have to be invoked in a special sequence
   13 #   or with special parameters
   14 # TESTALL_COMPONENTS
   15 #   programs such as globalmutexchild which the various TESTS will invoke
   16 #   to validate process creation, pipes, dso mechanisms and so forth
   17 
   18 STDTEST_PORTABLE = \
   19 	testlockperf@EXEEXT@ \
   20 	testmutexscope@EXEEXT@ \
   21 	testall@EXEEXT@ \
   22 	sendfile@EXEEXT@
   23 
   24 TESTS = testtime.lo teststr.lo testvsn.lo testipsub.lo testshm.lo \
   25 	testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
   26 	testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
   27 	testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
   28 	testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
   29 	testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
   30 	testenv.lo testprocmutex.lo testfnmatch.lo testatomic.lo testflock.lo \
   31 	testsock.lo testglobalmutex.lo teststrnatcmp.lo testfilecopy.lo \
   32 	testtemp.lo testlfs.lo testcond.lo testescape.lo testskiplist.lo \
   33 	testencode.lo
   34 
   35 OTHER_PROGRAMS = \
   36 	echod@EXEEXT@ \
   37 	sockperf@EXEEXT@
   38 
   39 TESTALL_COMPONENTS = \
   40 	globalmutexchild@EXEEXT@ \
   41 	libmod_test.la \
   42 	mod_test.la \
   43 	occhild@EXEEXT@ \
   44 	proc_child@EXEEXT@ \
   45 	readchild@EXEEXT@ \
   46 	sockchild@EXEEXT@ \
   47 	testshmproducer@EXEEXT@ \
   48 	testshmconsumer@EXEEXT@ \
   49 	tryread@EXEEXT@
   50 
   51 PROGRAMS = $(TESTALL_COMPONENTS) $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) \
   52 	   $(OTHER_PROGRAMS)
   53 
   54 TARGETS = $(PROGRAMS)
   55 
   56 # bring in rules.mk for standard functionality
   57 @INCLUDE_RULES@
   58 
   59 LOCAL_LIBS=../lib@APR_LIBNAME@.la
   60 
   61 CLEAN_TARGETS = testfile.tmp lfstests/*.bin \
   62 	data/test*.txt data/test*.dat data/apr.testshm.shm
   63 
   64 CLEAN_SUBDIRS = internal
   65 
   66 INCDIR=../include
   67 INCLUDES=-I$(INCDIR) -I$(srcdir)/../include
   68 
   69 # link programs using -no-install to get real executables not
   70 # libtool wrapper scripts which link an executable when first run.
   71 LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \
   72 	    @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
   73 
   74 # STDTEST_PORTABLE;
   75 
   76 abts.lo: $(srcdir)/abts.c $(srcdir)/abts.h $(srcdir)/abts_tests.h \
   77 	 $(srcdir)/testutil.h
   78 
   79 testutil.lo: $(srcdir)/abts.c $(srcdir)/abts.h $(srcdir)/abts_tests.h \
   80 	     $(srcdir)/testutil.h
   81 
   82 OBJECTS_testall = abts.lo testutil.lo $(TESTS) $(LOCAL_LIBS)
   83 testall@EXEEXT@: $(OBJECTS_testall)
   84 	$(LINK_PROG) $(OBJECTS_testall) $(ALL_LIBS)
   85 # For VPATH builds; where we have no ./data, copy us some data
   86 # if we wait until 'make check', then 'make; ./testall' fails;
   87 	if test ! -d "./data"; then cp -r $(srcdir)/data data; fi
   88 
   89 OBJECTS_testlockperf = testlockperf.lo $(LOCAL_LIBS)
   90 testlockperf@EXEEXT@: $(OBJECTS_testlockperf)
   91 	$(LINK_PROG) $(OBJECTS_testlockperf) $(ALL_LIBS)
   92 
   93 OBJECTS_testmutexscope = testmutexscope.lo $(LOCAL_LIBS)
   94 testmutexscope@EXEEXT@: $(OBJECTS_testmutexscope)
   95 	$(LINK_PROG) $(OBJECTS_testmutexscope) $(ALL_LIBS)
   96 
   97 # OTHER_PROGRAMS;
   98 
   99 OBJECTS_echod = echod.lo $(LOCAL_LIBS)
  100 echod@EXEEXT@: $(OBJECTS_echod)
  101 	$(LINK_PROG) $(OBJECTS_echod) $(ALL_LIBS)
  102 
  103 OBJECTS_sendfile = sendfile.lo $(LOCAL_LIBS)
  104 sendfile@EXEEXT@: $(OBJECTS_sendfile)
  105 	$(LINK_PROG) $(OBJECTS_sendfile) $(ALL_LIBS)
  106 
  107 OBJECTS_sockperf = sockperf.lo $(LOCAL_LIBS)
  108 sockperf@EXEEXT@: $(OBJECTS_sockperf)
  109 	$(LINK_PROG) $(OBJECTS_sockperf) $(ALL_LIBS)
  110 
  111 # TESTALL_COMPONENTS;
  112 
  113 OBJECTS_globalmutexchild = globalmutexchild.lo $(LOCAL_LIBS)
  114 globalmutexchild@EXEEXT@: $(OBJECTS_globalmutexchild)
  115 	$(LINK_PROG) $(OBJECTS_globalmutexchild) $(ALL_LIBS)
  116 
  117 # Note -prefer-pic is only supported with libtool-1.4+
  118 mod_test.lo: $(srcdir)/mod_test.c
  119 	$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -o $@ \
  120 	  -c $(srcdir)/mod_test.c
  121 
  122 OBJECTS_mod_test = mod_test.lo
  123 mod_test.la: $(OBJECTS_mod_test) $(LOCAL_LIBS)
  124 	$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -module \
  125 	  -avoid-version $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
  126 	  $(OBJECTS_mod_test) $(LOCAL_LIBS)
  127 
  128 OBJECTS_libmod_test = mod_test.lo $(LOCAL_LIBS)
  129 libmod_test.la: $(OBJECTS_libmod_test)
  130 	$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` \
  131 	  -avoid-version $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
  132 	  $(OBJECTS_libmod_test) $(ALL_LIBS)
  133 
  134 OBJECTS_occhild = occhild.lo $(LOCAL_LIBS)
  135 occhild@EXEEXT@: $(OBJECTS_occhild)
  136 	$(LINK_PROG) $(OBJECTS_occhild) $(ALL_LIBS)
  137 
  138 OBJECTS_proc_child = proc_child.lo $(LOCAL_LIBS)
  139 proc_child@EXEEXT@: $(OBJECTS_proc_child)
  140 	$(LINK_PROG) $(OBJECTS_proc_child) $(ALL_LIBS)
  141 
  142 OBJECTS_readchild = readchild.lo $(LOCAL_LIBS)
  143 readchild@EXEEXT@: $(OBJECTS_readchild)
  144 	$(LINK_PROG) $(OBJECTS_readchild) $(ALL_LIBS)
  145 
  146 OBJECTS_sockchild = sockchild.lo $(LOCAL_LIBS)
  147 sockchild@EXEEXT@: $(OBJECTS_sockchild)
  148 	$(LINK_PROG) $(OBJECTS_sockchild) $(ALL_LIBS)
  149 
  150 OBJECTS_testshmconsumer = testshmconsumer.lo $(LOCAL_LIBS)
  151 testshmconsumer@EXEEXT@: $(OBJECTS_testshmconsumer) $(LOCAL_LIBS)
  152 	$(LINK_PROG) $(OBJECTS_testshmconsumer) $(ALL_LIBS)
  153 
  154 OBJECTS_testshmproducer = testshmproducer.lo $(LOCAL_LIBS)
  155 testshmproducer@EXEEXT@: $(OBJECTS_testshmproducer)
  156 	$(LINK_PROG) $(OBJECTS_testshmproducer) $(ALL_LIBS)
  157 
  158 OBJECTS_tryread = tryread.lo $(LOCAL_LIBS)
  159 tryread@EXEEXT@: $(OBJECTS_tryread)
  160 	$(LINK_PROG) $(OBJECTS_tryread) $(ALL_LIBS)
  161 
  162 check: $(TESTALL_COMPONENTS) $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
  163 	teststatus=0; \
  164 	progfailed=""; \
  165 	for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
  166 		if test "$$prog" = 'sendfile@EXEEXT@'; then \
  167 			for mode in blocking nonblocking timeout; do \
  168 				./$$prog client $$mode startserver 127.0.0.1; \
  169 				status=$$?; \
  170 				if test $$status != 0; then \
  171 					teststatus=$$status; \
  172 					progfailed="$$progfailed '$$prog mode $$mode'"; \
  173 				fi; \
  174 			done; \
  175 	        else \
  176 			./$$prog -v; \
  177 			status=$$?; \
  178 			if test $$status != 0; then \
  179 				teststatus=$$status; \
  180 				progfailed="$$progfailed $$prog"; \
  181 			fi; \
  182 		fi; \
  183 	done; \
  184 	if test $$teststatus != 0; then \
  185 		echo "Programs failed:$$progfailed"; \
  186 	fi; \
  187 	exit $$teststatus
  188 
  189 # DO NOT REMOVE