Debian Codegraph @

deps/curl/tests/Makefile.am

raw
1 #***************************************************************************
2 # _ _ ____ _
3 # Project ___| | | | _ \| |
4 # / __| | | | |_) | |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, 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 # the path to the impacket python lib used for SMB tests
28 IMP = python_dependencies/impacket
29 SMBDEPS = $(IMP)/__init__.py $(IMP)/nmb.py $(IMP)/nt_errors.py \
30 $(IMP)/ntlm.py $(IMP)/smb.py $(IMP)/smb3.py $(IMP)/smb3structs.py \
31 $(IMP)/smbserver.py $(IMP)/spnego.py $(IMP)/structure.py \
32 $(IMP)/uuid.py $(IMP)/version.py smbserver.py curl_test_data.py
33
34 EXTRA_DIST = ftpserver.pl httpserver.pl secureserver.pl runtests.pl \
35 getpart.pm FILEFORMAT README stunnel.pem memanalyze.pl testcurl.pl \
36 valgrind.pm ftp.pm sshserver.pl sshhelp.pm pathhelp.pm testcurl.1 runtests.1 \
37 serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl \
38 CMakeLists.txt mem-include-scan.pl valgrind.supp extern-scan.pl \
39 manpage-scan.pl nroff-scan.pl http2-server.pl dictserver.py \
40 negtelnetserver.py $(SMBDEPS) objnames-test08.sh objnames-test10.sh \
41 objnames.inc disable-scan.pl manpage-syntax.pl error-codes.pl badsymbols.pl \
42 azure.pm appveyor.pm
43
44 DISTCLEANFILES = configurehelp.pm
45
46 # we have two variables here to make sure DIST_SUBDIRS won't get 'unit'
47 # added twice as then targets such as 'distclean' misbehave and try to
48 # do things twice in that subdir at times (and thus fails).
49 if BUILD_UNITTESTS
50 BUILD_UNIT = unit
51 DIST_UNIT =
52 else
53 BUILD_UNIT =
54 DIST_UNIT = unit
55 endif
56
57 SUBDIRS = certs data server libtest $(BUILD_UNIT)
58 DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT)
59
60 PERLFLAGS = -I$(srcdir)
61
62 CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid $(MANDISTPAGES)
63
64 MAN2HTML= roffit $< >$@
65
66 curl:
67 @cd $(top_builddir) && $(MAKE)
68
69 if CROSSCOMPILING
70 TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
71 else # if not cross-compiling:
72 TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
73 TEST_Q = -a -s
74 TEST_AM = -a -am
75 TEST_F = -a -p -r
76 TEST_T = -a -t
77 TEST_E = -a -e
78
79 # !flaky means that it'll skip all tests using the flaky keyword
80 TEST_NF = -a -p !flaky
81 endif
82
83 # make sure that PERL is pointing to an executable
84 perlcheck:
85 @if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi
86
87 test: perlcheck all
88 $(TEST) $(TFLAGS)
89
90 quiet-test: perlcheck all
91 $(TEST) $(TEST_Q) $(TFLAGS)
92
93 am-test: perlcheck all
94 $(TEST) $(TEST_AM) $(TFLAGS)
95
96 full-test: perlcheck all
97 $(TEST) $(TEST_F) $(TFLAGS)
98
99 nonflaky-test: perlcheck all
100 $(TEST) $(TEST_NF) $(TFLAGS)
101
102 torture-test: perlcheck all
103 $(TEST) $(TEST_T) $(TFLAGS)
104
105 event-test: perlcheck all
106 $(TEST) $(TEST_E) $(TFLAGS)
107
108 .1.html:
109 $(MAN2HTML)
110
111 .1.pdf:
112 @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
113 groff -Tps -man $< >$$foo.ps; \
114 ps2pdf $$foo.ps $@; \
115 rm $$foo.ps; \
116 echo "converted $< to $@")
117
118 checksrc:
119 cd libtest && $(MAKE) checksrc
120 cd unit && $(MAKE) checksrc
121 cd server && $(MAKE) checksrc
122
123 if CURLDEBUG
124 # for debug builds, we scan the sources on all regular make invokes
125 all-local: checksrc
126 endif