"Fossies" - the Fresh Open Source Software Archive

Member "neon-0.31.2/test/Makefile.in" (20 Jun 2020, 6913 Bytes) of package /linux/www/neon-0.31.2.tar.gz:


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": 0.31.1_vs_0.31.2.

    1 # Makefile for neon test suite.
    2 
    3 SHELL = @SHELL@
    4 CPPFLAGS = @CPPFLAGS@ -I. -I$(top_srcdir)/src -I$(top_srcdir)/test/common
    5 CFLAGS = @CFLAGS@ @NEON_CFLAGS@
    6 LDFLAGS = @LDFLAGS@
    7 DEFS = @DEFS@
    8 
    9 top_builddir = ..
   10 top_srcdir = @top_srcdir@
   11 srcdir = @srcdir@
   12 VPATH = @srcdir@
   13 
   14 LIBS = @LIBS@
   15 TEST_LIBS = $(LIBTEST) $(LIBS)
   16 CC = @CC@
   17 OPENSSL = @OPENSSL@
   18 
   19 HELPERS = @HELPERS@ foobar.txt
   20 BASIC_TESTS = uri-tests util-tests string-tests socket \
   21 	session request auth basic stubs redirect
   22 ZLIB_TESTS = compress
   23 ZLIB_HELPERS = file1.gz file2.gz trailing.gz badcsum.gz truncated.gz \
   24 	corrupt1.gz corrupt2.gz empty.gz random.txt hello.txt hello.gz
   25 DAV_TESTS = xml xmlreq oldacl acl3744 props lock
   26 SSL_TESTS = socket-ssl ssl
   27 SSL_HELPERS = ca-stamp
   28 TESTS = @TESTS@
   29 VALGRIND = valgrind --tool=memcheck --leak-check=yes --trace-children=no --show-reachable=yes
   30 
   31 # Make every object depend on libneon.la to force a rebuild on any src/* changes
   32 OBJDEPS = $(srcdir)/common/tests.h $(srcdir)/common/child.h $(srcdir)/utils.h \
   33 	$(top_builddir)/config.h $(top_builddir)/src/libneon.la
   34 # Test program just depends on libtest
   35 DEPS = $(LIBTEST)
   36 LDADD = $(DEPS) $(LIBS)
   37 
   38 LIBTEST = libtest.la
   39 LIBNEON = $(top_builddir)/src/libneon.la
   40 
   41 LIBTOOL = @LIBTOOL@ --silent
   42 TEST_LDFLAGS = @TEST_LDFLAGS@
   43 LINK = $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(TEST_LDFLAGS)
   44 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS)
   45 
   46 prefix = @prefix@
   47 exec_prefix = @exec_prefix@
   48 libdir = @libdir@
   49 
   50 INSTALL_PROGRAM = @INSTALL_PROGRAM@
   51 INSTALL_DATA = @INSTALL_DATA@
   52 INSTALL_SCRIPT = @INSTALL_SCRIPT@
   53 INSTALL = @INSTALL@
   54 TEST_INSTALL_DIR = $(libdir)/neon-tests
   55 
   56 INSTALL_HELPERS = $(HELPERS) server.key makekeys \
   57 	$(srcdir)/openssl.conf $(srcdir)/notvalid.pem \
   58 	$(srcdir)/expired.pem
   59 
   60 .SUFFIXES:
   61 .SUFFIXES: .lo .c
   62 
   63 # By default, compile but don't run the tests.
   64 all: $(TESTS)
   65 
   66 clean:
   67 	rm -f $(TESTS) $(HELPERS) *.o *.lo common/*.o common/*.lo libtest.*a *.log
   68 	rm -f *.gc* *.da *.bb* common/*.bb* common/*.gc* common/*.da
   69 	rm -rf ca ca2 .libs nssdb*
   70 	rm -f ca-stamp client.key *.csr ssigned.pem wrongcn.pem \
   71 	   server.cert client.cert *.p12 *.cert sparse.bin
   72 
   73 check: $(TESTS) $(HELPERS)
   74 	@SRCDIR=$(srcdir) $(SHELL) $(srcdir)/run.sh $(TESTS)
   75 
   76 grind: $(TESTS) $(HELPERS)
   77 	@SRCDIR=$(srcdir) HARNESS="$(VALGRIND)" $(SHELL) $(srcdir)/run.sh $(TESTS)
   78 
   79 lfs-check: largefile $(LFS_HELPERS)
   80 	@SRCDIR=$(srcdir) $(SHELL) $(srcdir)/run.sh largefile
   81 
   82 install: $(TESTS) $(HELPERS)
   83 	@$(INSTALL) -d $(DESTDIR)$(TEST_INSTALL_DIR)
   84 	@$(INSTALL) -d $(DESTDIR)$(TEST_INSTALL_DIR)/bin
   85 	@$(INSTALL) -d $(DESTDIR)$(TEST_INSTALL_DIR)/data
   86 	@for t in $(TESTS); do \
   87 	 $(LIBTOOL) --mode=install \
   88 	      $(INSTALL_PROGRAM) $$t $(DESTDIR)$(TEST_INSTALL_DIR)/bin; \
   89 	done
   90 	@for h in $(INSTALL_HELPERS); do \
   91 	 $(INSTALL_DATA) $$h $(DESTDIR)$(TEST_INSTALL_DIR)/data; \
   92 	done
   93 	@$(INSTALL_PROGRAM) -p $(srcdir)/run-tests.sh $(DESTDIR)$(TEST_INSTALL_DIR)
   94 
   95 NEWS = $(top_srcdir)/NEWS
   96 
   97 file1.gz: $(NEWS)
   98 	gzip -c --no-name $(NEWS) > $@
   99 
  100 file2.gz: $(NEWS)
  101 	gzip -c --name $(NEWS) > $@
  102 
  103 hello.txt:
  104 	echo hello world > $@
  105 
  106 hello.gz: hello.txt
  107 	gzip -c hello.txt > $@
  108 
  109 # gzip file with trailing bytes.
  110 trailing.gz: $(NEWS)
  111 	gzip -c --no-name $(NEWS) > $@
  112 	echo "hello, world" >> $@
  113 
  114 truncated.gz: file1.gz
  115 	dd if=file1.gz of=$@ bs=2048 count=2
  116 
  117 badcsum.gz: file1.gz
  118 	dd of=$@ if=file1.gz bs=1 count=`perl -e 'printf "%d", (stat("file1.gz"))[7] - 8;'`
  119 	echo 'broken!' >> $@
  120 
  121 corrupt1.gz: file1.gz
  122 	dd of=$@ if=file1.gz bs=1 count=500
  123 	cat $(NEWS) >> $@
  124 
  125 corrupt2.gz: $(NEWS)
  126 	cat $(NEWS) > $@
  127 
  128 empty.gz:
  129 	touch $@
  130 
  131 random.txt: $(NEWS)
  132 	cat $(NEWS) > $@
  133 
  134 foobar.txt:
  135 	echo foobar > $@
  136 
  137 # Dummy target to create the CA keys etc.  makekeys stderr is redirected
  138 # since it changes for every invocation; not helpful for regression
  139 # testing.
  140 ca-stamp: makekeys $(srcdir)/openssl.conf
  141 	rm -rf ca ca2
  142 	OPENSSL=$(OPENSSL) \
  143 	 $(SHELL) makekeys $(srcdir) 2>makekeys.out
  144 	@echo timestamp > ca-stamp
  145 
  146 Makefile: $(srcdir)/Makefile.in
  147 	cd .. && ./config.status test/Makefile
  148 
  149 makekeys: $(srcdir)/makekeys.sh
  150 	cd .. && ./config.status test/makekeys
  151 
  152 LIBOBJS = common/tests.lo common/child.lo utils.lo util-socks.lo
  153 
  154 $(LIBTEST): $(LIBOBJS)
  155 	$(LINK) -o $(LIBTEST) $(LIBOBJS) $(LIBNEON) $(LIBS)
  156 
  157 .c.lo:
  158 	$(COMPILE) -c $< -o $@
  159 
  160 # Recompile socket.c with SOCKET_SSL defined
  161 socket-ssl.lo: $(srcdir)/socket.c $(HDRS)
  162 	$(COMPILE) -DSOCKET_SSL -c $(srcdir)/socket.c -o $@
  163 
  164 socket-ssl: socket-ssl.lo $(LIBTEST)
  165 	$(LINK) -o $@ socket-ssl.lo $(TEST_LIBS)
  166 
  167 resolve: resolve.lo $(LIBNEON)
  168 	$(LINK) -o $@ resolve.lo $(LIBNEON)
  169 
  170 common/tests.lo: $(srcdir)/common/tests.c $(OBJDEPS)
  171 common/child.lo: $(srcdir)/common/child.c $(OBJDEPS) 
  172 utils.lo: $(srcdir)/utils.c $(OBJDEPS)
  173 util-socks.lo: $(srcdir)/util-socks.c $(OBJDEPS)
  174 auth.lo: $(srcdir)/auth.c $(OBJDEPS)
  175 uri-tests.lo: $(srcdir)/uri-tests.c $(OBJDEPS)
  176 util-tests.lo: $(srcdir)/util-tests.c $(OBJDEPS)
  177 string-tests.lo: $(srcdir)/string-tests.c $(OBJDEPS)
  178 socket.lo: $(srcdir)/socket.c $(OBJDEPS)
  179 server.lo: $(srcdir)/server.c $(OBJDEPS)
  180 request.lo: $(srcdir)/request.c $(OBJDEPS)
  181 regress.lo: $(srcdir)/regress.c $(OBJDEPS)
  182 compress.lo: $(srcdir)/compress.c $(OBJDEPS)
  183 oldacl.lo: $(srcdir)/oldacl.c $(OBJDEPS)
  184 acl3744.lo: $(srcdir)/acl3744.c $(OBJDEPS)
  185 utils.lo: $(srcdir)/utils.c $(OBJDEPS)
  186 stubs.lo: $(srcdir)/stubs.c $(OBJDEPS)
  187 props.lo: $(srcdir)/props.c $(OBJDEPS)
  188 session.lo: $(srcdir)/session.c $(OBJDEPS)
  189 redirect.lo: $(srcdir)/redirect.c $(OBJDEPS)
  190 basic.lo: $(srcdir)/basic.c $(OBJDEPS)
  191 ssl.lo: $(srcdir)/ssl.c $(OBJDEPS)
  192 lock.lo: $(srcdir)/lock.c $(OBJDEPS)
  193 largefile.lo: $(srcdir)/largefile.c $(OBJDEPS)
  194 
  195 auth: auth.lo $(DEPS)
  196 	$(LINK) -o $@ auth.lo $(LDADD)
  197 basic: basic.lo $(DEPS)
  198 	$(LINK) -o $@ basic.lo $(LDADD)
  199 uri-tests: uri-tests.lo $(DEPS)
  200 	$(LINK) -o $@ uri-tests.lo $(LDADD)
  201 util-tests: util-tests.lo $(DEPS)
  202 	$(LINK) -o $@ util-tests.lo $(LDADD)
  203 string-tests: string-tests.lo $(DEPS)
  204 	$(LINK) -o $@ string-tests.lo $(LDADD)
  205 socket: socket.lo $(DEPS)
  206 	$(LINK) -o $@ socket.lo $(LDADD)
  207 server: server.lo $(DEPS)
  208 	$(LINK) -o $@ server.lo $(LDADD)
  209 request: request.lo $(DEPS)
  210 	$(LINK) -o $@ request.lo $(LDADD)
  211 regress: regress.lo $(DEPS)
  212 	$(LINK) -o $@ regress.lo $(LDADD)
  213 compress: compress.lo $(DEPS)
  214 	$(LINK) -o $@ compress.lo $(LDADD)
  215 oldacl: oldacl.lo $(DEPS)
  216 	$(LINK) -o $@ oldacl.lo $(LDADD)
  217 acl3744: acl3744.lo $(DEPS)
  218 	$(LINK) -o $@ acl3744.lo $(LDADD)
  219 utils: utils.lo $(DEPS)
  220 	$(LINK) -o $@ utils.lo $(LDADD)
  221 stubs: stubs.lo $(DEPS)
  222 	$(LINK) -o $@ stubs.lo $(LDADD)
  223 props: props.lo $(DEPS)
  224 	$(LINK) -o $@ props.lo $(LDADD)
  225 session: session.lo $(DEPS)
  226 	$(LINK) -o $@ session.lo $(LDADD)
  227 redirect: redirect.lo $(DEPS)
  228 	$(LINK) -o $@ redirect.lo $(LDADD)
  229 ssl: ssl.lo $(DEPS)
  230 	$(LINK) -o $@ ssl.lo $(LDADD)
  231 xml: xml.lo $(DEPS)
  232 	$(LINK) -o $@ xml.lo $(LDADD)
  233 xmlreq: xmlreq.lo $(DEPS)
  234 	$(LINK) -o $@ xmlreq.lo $(LDADD)
  235 lock: lock.lo $(DEPS)
  236 	$(LINK) -o $@ lock.lo $(LDADD)
  237 largefile: largefile.lo $(DEPS)
  238 	$(LINK) -o $@ largefile.lo $(LDADD)