Makefile.am 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 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.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. # SPDX-License-Identifier: curl
  22. #
  23. ###########################################################################
  24. if BUILD_DOCS
  25. # if we disable man page building, ignore these
  26. RUNTESTS_DOCS = runtests.1
  27. TESTCURL_DOCS = testcurl.1
  28. MANFILES = $(RUNTESTS_DOCS) $(TESTCURL_DOCS)
  29. endif
  30. CURLPAGES = runtests.md testcurl.md
  31. # scripts used in test cases
  32. TESTSCRIPTS = \
  33. test1119.pl \
  34. test1132.pl \
  35. test1135.pl \
  36. test1139.pl \
  37. test1140.pl \
  38. test1165.pl \
  39. test1167.pl \
  40. test1173.pl \
  41. test1175.pl \
  42. test1177.pl \
  43. test1222.pl \
  44. test1275.pl \
  45. test1276.pl \
  46. test1477.pl \
  47. test1486.pl \
  48. test1488.pl \
  49. test1544.pl \
  50. test971.pl
  51. EXTRA_DIST = \
  52. CMakeLists.txt \
  53. FILEFORMAT.md \
  54. README.md \
  55. appveyor.pm \
  56. azure.pm \
  57. conftest.py \
  58. devtest.pl \
  59. dictserver.py \
  60. directories.pm \
  61. ech_combos.py \
  62. ech_tests.sh \
  63. ftpserver.pl \
  64. getpart.pm \
  65. globalconfig.pm \
  66. http-server.pl \
  67. http2-server.pl \
  68. http3-server.pl \
  69. memanalyze.pl \
  70. negtelnetserver.py \
  71. nghttpx.conf \
  72. pathhelp.pm \
  73. processhelp.pm \
  74. requirements.txt \
  75. rtspserver.pl \
  76. runner.pm \
  77. runtests.pl \
  78. secureserver.pl \
  79. serverhelp.pm \
  80. servers.pm \
  81. smbserver.py \
  82. sshhelp.pm \
  83. sshserver.pl \
  84. stunnel.pem \
  85. testcurl.pl \
  86. testutil.pm \
  87. tftpserver.pl \
  88. util.py \
  89. valgrind.pm \
  90. valgrind.supp \
  91. $(TESTSCRIPTS) \
  92. $(CURLPAGES)
  93. DISTCLEANFILES = configurehelp.pm
  94. # we have two variables here to make sure DIST_SUBDIRS won't get 'unit'
  95. # added twice as then targets such as 'distclean' misbehave and try to
  96. # do things twice in that subdir at times (and thus fails).
  97. if BUILD_UNITTESTS
  98. BUILD_UNIT = unit
  99. DIST_UNIT =
  100. else
  101. BUILD_UNIT =
  102. DIST_UNIT = unit
  103. endif
  104. SUBDIRS = certs data server libtest http $(BUILD_UNIT)
  105. DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT)
  106. PERLFLAGS = -I$(srcdir)
  107. CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid $(MANDISTPAGES)
  108. curl:
  109. @cd $(top_builddir) && $(MAKE)
  110. if CROSSCOMPILING
  111. TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
  112. else # if not cross-compiling:
  113. TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
  114. TEST_Q = -a -s
  115. TEST_AM = -a -am
  116. TEST_F = -a -p -r
  117. TEST_T = -a -t
  118. TEST_E = -a -e
  119. # ~<keyword> means that it will run all tests matching the keyword, but will
  120. # ignore their results (since these ones are likely to fail for no good reason)
  121. TEST_NF = -a -p ~flaky ~timing-dependent
  122. # special CI target derived from nonflaky with CI-specific flags
  123. TEST_CI = $(TEST_NF) -r -rm -j2
  124. endif
  125. CD2NROFF = $(top_srcdir)/scripts/cd2nroff $< >$@
  126. SUFFIXES = .1 .md
  127. .md.1:
  128. $(CD2)$(CD2NROFF)
  129. # make sure that PERL is pointing to an executable
  130. perlcheck:
  131. @if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi
  132. test: perlcheck all
  133. $(TEST) $(TFLAGS)
  134. quiet-test: perlcheck all
  135. $(TEST) $(TEST_Q) $(TFLAGS)
  136. am-test: perlcheck all
  137. $(TEST) $(TEST_AM) $(TFLAGS)
  138. ci-test: perlcheck all
  139. $(TEST) $(TEST_CI) $(TFLAGS)
  140. full-test: perlcheck all
  141. $(TEST) $(TEST_F) $(TFLAGS)
  142. nonflaky-test: perlcheck all
  143. $(TEST) $(TEST_NF) $(TFLAGS)
  144. torture-test: perlcheck all
  145. $(TEST) $(TEST_T) $(TFLAGS)
  146. event-test: perlcheck all
  147. $(TEST) $(TEST_E) $(TFLAGS)
  148. checksrc:
  149. (cd libtest && $(MAKE) checksrc)
  150. (cd unit && $(MAKE) checksrc)
  151. (cd server && $(MAKE) checksrc)
  152. (cd http && $(MAKE) checksrc)
  153. all-local: $(MANFILES)
  154. distclean:
  155. rm -f $(MANFILES)