Makefile.am 4.1 KB

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