diff options
author | albert-github <albert.tests@gmail.com> | 2018-03-27 11:48:48 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-03-27 11:48:48 (GMT) |
commit | a34987da94ea06a53bf4841e09436db1748bf306 (patch) | |
tree | 78cafea69b0814c70529aeb63d7eb8fe879c7b85 | |
parent | 7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff) | |
download | Doxygen-a34987da94ea06a53bf4841e09436db1748bf306.zip Doxygen-a34987da94ea06a53bf4841e09436db1748bf306.tar.gz Doxygen-a34987da94ea06a53bf4841e09436db1748bf306.tar.bz2 |
Enable possibility to run single tests
Create the possibility to run only one or more tests.
-rw-r--r-- | doc/arch.doc | 7 | ||||
-rw-r--r-- | testing/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/doc/arch.doc b/doc/arch.doc index e5fbbdc..5cb8206 100644 --- a/doc/arch.doc +++ b/doc/arch.doc @@ -240,11 +240,16 @@ $now = time; utime $now, $now, $file; \endverbatim Another way to get rules matching / debugging information -from the \c flex code is setting LEX_FLAGS with \c make (`make LEX_FLAGS=-d`). +from the \c flex code is setting \c LEX_FLAGS with \c make (`make LEX_FLAGS=-d`). Note that by running doxygen with `-d lex` you get information about which `flex codefile` is used. +<h3>Testing</h3> + +Doxygen has a small set of tests available to test, some, code integrity. +The tests can be run by means of the command `make tests`. When only one or a few tests are required one can set the variable \c TEST_FLAGS when running the test e.g. `make TEST_FLAGS="--id 5" tests` or for multiple tests `make TEST_FLAGS="--id 5 --id 7" tests`. + \htmlonly Return to the <a href="index.html">index</a>. \endhtmlonly diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index 97b4868..ae5c24f 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -1,9 +1,9 @@ add_custom_target(tests COMMENT "Running doxygen tests..." - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --doxygen ${PROJECT_BINARY_DIR}/bin/doxygen --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py $(TEST_FLAGS) --doxygen ${PROJECT_BINARY_DIR}/bin/doxygen --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing DEPENDS doxygen ) add_test(NAME suite - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --doxygen $<TARGET_FILE:doxygen> --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py $(TEST_FLAGS) --doxygen $<TARGET_FILE:doxygen> --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing ) |