Annotation of embedaddon/curl/tests/Makefile.am, revision 1.1.1.1

1.1       misho       1: #***************************************************************************
                      2: #                                  _   _ ____  _
                      3: #  Project                     ___| | | |  _ \| |
                      4: #                             / __| | | | |_) | |
                      5: #                            | (__| |_| |  _ <| |___
                      6: #                             \___|\___/|_| \_\_____|
                      7: #
                      8: # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
                      9: #
                     10: # This software is licensed as described in the file COPYING, which
                     11: # you should have received as part of this distribution. The terms
                     12: # are also available at https://curl.haxx.se/docs/copyright.html.
                     13: #
                     14: # You may opt to use, copy, modify, merge, publish, distribute and/or sell
                     15: # copies of the Software, and permit persons to whom the Software is
                     16: # furnished to do so, under the terms of the COPYING file.
                     17: #
                     18: # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
                     19: # KIND, either express or implied.
                     20: #
                     21: ###########################################################################
                     22: 
                     23: HTMLPAGES = testcurl.html runtests.html
                     24: PDFPAGES = testcurl.pdf runtests.pdf
                     25: MANDISTPAGES = runtests.1.dist testcurl.1.dist
                     26: 
                     27: EXTRA_DIST = ftpserver.pl httpserver.pl secureserver.pl runtests.pl           \
                     28:  getpart.pm FILEFORMAT.md README stunnel.pem memanalyze.pl testcurl.pl        \
                     29:  valgrind.pm ftp.pm sshserver.pl sshhelp.pm pathhelp.pm testcurl.1 runtests.1 \
                     30:  serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl      \
                     31:  CMakeLists.txt mem-include-scan.pl valgrind.supp extern-scan.pl              \
                     32:  manpage-scan.pl nroff-scan.pl http2-server.pl dictserver.py                  \
                     33:  negtelnetserver.py smbserver.py curl_test_data.py                            \
                     34:  objnames-test08.sh objnames-test10.sh objnames.inc                           \
                     35:  disable-scan.pl manpage-syntax.pl error-codes.pl badsymbols.pl               \
                     36:  azure.pm appveyor.pm version-scan.pl
                     37: 
                     38: DISTCLEANFILES = configurehelp.pm
                     39: 
                     40: # we have two variables here to make sure DIST_SUBDIRS won't get 'unit'
                     41: # added twice as then targets such as 'distclean' misbehave and try to
                     42: # do things twice in that subdir at times (and thus fails).
                     43: if BUILD_UNITTESTS
                     44: BUILD_UNIT = unit
                     45: DIST_UNIT =
                     46: else
                     47: BUILD_UNIT =
                     48: DIST_UNIT = unit
                     49: endif
                     50: 
                     51: SUBDIRS = certs data server libtest $(BUILD_UNIT)
                     52: DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT)
                     53: 
                     54: PERLFLAGS = -I$(srcdir)
                     55: 
                     56: CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid $(MANDISTPAGES)
                     57: 
                     58: MAN2HTML= roffit $< >$@
                     59: 
                     60: curl:
                     61:        @cd $(top_builddir) && $(MAKE)
                     62: 
                     63: if CROSSCOMPILING
                     64: TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
                     65: else # if not cross-compiling:
                     66: TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
                     67: TEST_Q = -a -s
                     68: TEST_AM = -a -am
                     69: TEST_F = -a -p -r
                     70: TEST_T = -a -t
                     71: TEST_E = -a -e
                     72: 
                     73: # !flaky means that it'll skip all tests using the flaky keyword
                     74: TEST_NF = -a -p !flaky
                     75: endif
                     76: 
                     77: # make sure that PERL is pointing to an executable
                     78: perlcheck:
                     79:        @if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi
                     80: 
                     81: test: perlcheck all
                     82:        $(TEST) $(TFLAGS)
                     83: 
                     84: quiet-test: perlcheck all
                     85:        $(TEST) $(TEST_Q) $(TFLAGS)
                     86: 
                     87: am-test: perlcheck all
                     88:        $(TEST) $(TEST_AM) $(TFLAGS)
                     89: 
                     90: full-test: perlcheck all
                     91:        $(TEST) $(TEST_F) $(TFLAGS)
                     92: 
                     93: nonflaky-test: perlcheck all
                     94:        $(TEST) $(TEST_NF) $(TFLAGS)
                     95: 
                     96: torture-test: perlcheck all
                     97:        $(TEST) $(TEST_T) $(TFLAGS)
                     98: 
                     99: event-test: perlcheck all
                    100:        $(TEST) $(TEST_E) $(TFLAGS)
                    101: 
                    102: .1.html:
                    103:        $(MAN2HTML)
                    104: 
                    105: .1.pdf:
                    106:        @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
                    107:        groff -Tps -man $< >$$foo.ps; \
                    108:        ps2pdf $$foo.ps $@; \
                    109:        rm $$foo.ps; \
                    110:        echo "converted $< to $@")
                    111: 
                    112: checksrc:
                    113:        cd libtest && $(MAKE) checksrc
                    114:        cd unit && $(MAKE) checksrc
                    115:        cd server && $(MAKE) checksrc
                    116: 
                    117: if CURLDEBUG
                    118: # for debug builds, we scan the sources on all regular make invokes
                    119: all-local: checksrc
                    120: endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>