summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-08-02 11:28:58 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-08-02 11:28:58 (GMT)
commit135dcdffe700a3958f06de30e576bf1ee4c15584 (patch)
tree1c66b4cc3d15d7b91d2c764ef4250cc26bb462ad /testing
parent4ad6c2ab4dc19aeffef3d40ae3f813ba9ee41a4a (diff)
downloadDoxygen-135dcdffe700a3958f06de30e576bf1ee4c15584.zip
Doxygen-135dcdffe700a3958f06de30e576bf1ee4c15584.tar.gz
Doxygen-135dcdffe700a3958f06de30e576bf1ee4c15584.tar.bz2
Updated the makefile for building the tests
Diffstat (limited to 'testing')
-rw-r--r--testing/CMakeLists.txt90
1 files changed, 85 insertions, 5 deletions
diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt
index 6c0a338..75e922a 100644
--- a/testing/CMakeLists.txt
+++ b/testing/CMakeLists.txt
@@ -5,14 +5,94 @@ add_custom_target(tests
DEPENDS doxygen
)
-# get the files in the testing directory starting with 3 digits and an underscore
-file(GLOB TEST_FILES "${CMAKE_CURRENT_SOURCE_DIR}/[0-9][0-9][0-9]_*.*")
+# to update this list run `ls [0-9][0-9][0-9]_*.*` in the testing directory
+set(TEST_FILES
+001_a.dox
+002_addindex.dox
+003_anchor.dox
+004_arg.dox
+005_attention.dox
+006_author.dox
+007_b.dox
+008_brief.c
+009_bug.cpp
+010_c.dox
+011_category.m
+012_cite.dox
+013_class.h
+014_code.dox
+015_cond.c
+016_copydoc.c
+017_copyright.dox
+018_def.c
+019_defgroup.c
+020_only.dox
+021_dontinclude.cpp
+022_dot.cpp
+023_e.dox
+024_if.dox
+025_example.cpp
+026_exception.cpp
+027_extends.c
+028_formula.c
+029_hideinit.c
+030_htmlinclude.dox
+031_image.dox
+032_include.cpp
+033_internal.dox
+034_internal.dox
+035_invariant.c
+036_link.c
+037_msc.cpp
+038_n.dox
+039_name.cpp
+040_namespace.cpp
+041_overload.cpp
+042_package.java
+043_page.dox
+044_section.h
+045_refitem.dox
+046_related.cpp
+047_return.cpp
+048_showinit.c
+049_snippet.cpp
+050_verbatim.dox
+051_escape.dox
+052_tilde.dox
+053_tilde.dox
+054_parblock.cpp
+055_markdown.md
+056_latexinclude.dox
+064_castoperator.cpp
+065_tilde.dox
+066_property_initializer.cs
+067_link_varargs.cpp
+068_ref_varargs.cpp
+069_link_variadic_template.cpp
+070_ref_variadic_template.cpp
+071_enum_in_anon_ns.cpp
+072_using.cpp
+073_typed_enum.cpp
+074_ref.cpp
+075_argmatch.cpp
+076_emojis.cpp
+077_no_xml_namespace_members_in_file_scope.h
+078_xml_namespace_members_in_file_scope.h
+079_tableofcontents.dox
+080_extract_private_virtual.cpp
+081_brief_lists.h
+082_decl_def.cpp
+083_decl_def.cpp
+084_markdown_pre.f90
+085_tooltip.cpp
+086_style_tags.h
+)
foreach(TEST_FILE ${TEST_FILES})
- # extract the test name from the file name (3 digit excluding trailing zeros)
- string(REGEX REPLACE "^.*/([0-9][0-9][0-9]*.*)\\.[^.]*$" "\\1" TEST_NAME "${TEST_FILE}")
+ # extract the test name from the file name
+ string(REGEX REPLACE "^([0-9][0-9][0-9]*.*)\\.[^.]*$" "\\1" TEST_NAME "${TEST_FILE}")
# extract the test id from the file name
- string(REGEX REPLACE "^.*/0?0?([1-9][0-9]*).*$" "\\1" TEST_ID "${TEST_FILE}")
+ string(REGEX REPLACE "^([0-9][0-9][0-9]*).*$" "\\1" TEST_ID "${TEST_FILE}")
# add a test target for each test
add_test(NAME ${TEST_NAME}
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --id ${TEST_ID} --doxygen $<TARGET_FILE:doxygen> --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing