In an attempt to make them easier to find.
The man pages runtests.md and testcurl.md are in /docs
The rest of the test documentation is in /docs/tests
Closes #17463
endif()
if(BUILD_MISC_DOCS)
- foreach(_man_misc IN ITEMS "curl-config" "mk-ca-bundle" "wcurl")
+ foreach(_man_misc IN ITEMS "curl-config" "mk-ca-bundle" "wcurl" "runtests" "testcurl")
set(_man_target "${CMAKE_CURRENT_BINARY_DIR}/${_man_misc}.1")
add_custom_command(OUTPUT "${_man_target}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
# if we disable man page building, ignore these
MK_CA_DOCS = mk-ca-bundle.1
CURLCONF_DOCS = curl-config.1
+TEST_DOCS = runtests.1 testcurl.1
man_MANS = curl-config.1 wcurl.1
endif
-CURLPAGES = curl-config.md mk-ca-bundle.md wcurl.md
+CURLPAGES = curl-config.md mk-ca-bundle.md wcurl.md runtests.md testcurl.md
SUBDIRS = . cmdline-opts libcurl
DIST_SUBDIRS = $(SUBDIRS) examples
if BUILD_DOCS
-CLEANFILES = mk-ca-bundle.1 curl-config.1 wcurl.1
+CLEANFILES = $(MK_CA_DOCS) $(man_MANS) $(TEST_DOCS)
endif
+TESTDOCS = \
+ tests/CI.md \
+ tests/FILEFORMAT.md \
+ tests/HTTP.md \
+ tests/TEST-SUITE.md
+
INTERNALDOCS = \
internals/BUFQ.md \
internals/BUFREF.md \
EXTRA_DIST = \
$(CURLPAGES) \
$(INTERNALDOCS) \
+ $(TESTDOCS) \
ALTSVC.md \
BINDINGS.md \
BUG-BOUNTY.md \
SUFFIXES = .1 .md
-all: $(MK_CA_DOCS) $(CURLCONF_DOCS)
+all: $(MK_CA_DOCS) $(CURLCONF_DOCS) $(TEST_DOCS)
.md.1:
$(CD2)$(CD2NROFF)
#
###########################################################################
-if BUILD_DOCS
-# if we disable man page building, ignore these
-RUNTESTS_DOCS = runtests.1
-TESTCURL_DOCS = testcurl.1
-MANFILES = $(RUNTESTS_DOCS) $(TESTCURL_DOCS)
-endif
-
-CURLPAGES = runtests.md testcurl.md
-
# scripts used in test cases
TESTSCRIPTS = \
test1119.pl \
EXTRA_DIST = \
CMakeLists.txt \
- FILEFORMAT.md \
- README.md \
allversions.pm \
appveyor.pm \
azure.pm \
util.py \
valgrind.pm \
valgrind.supp \
- $(TESTSCRIPTS) \
- $(CURLPAGES)
+ $(TESTSCRIPTS)
# we have two variables here to make sure DIST_SUBDIRS won't get 'unit'
# added twice as then targets such as 'distclean' misbehave and try to
PERLFLAGS = -I$(srcdir)
-CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid $(MANDISTPAGES)
+CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
curl:
@cd $(top_builddir) && $(MAKE)
PYTEST = pytest
endif
-CD2NROFF = $(top_srcdir)/scripts/cd2nroff $< >$@
-
-SUFFIXES = .1 .md
-
-.md.1:
- $(CD2)$(CD2NROFF)
-
# make sure that PERL is pointing to an executable
perlcheck:
@if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi