Makefile.am 4.1 KB

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