test: The tests depend on the documentation.

The help.t test wants to verify that some of the man pages exist.
Therefore we need to make sure the documentation is built, otherwise:

  $ git clean -ffdx .
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make test

Will fail some of the help.t tests.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2021-04-06 01:48:28 -05:00 committed by Thomas Lauf
parent c83d45bc0d
commit d92ce2110f

View file

@ -37,7 +37,7 @@ link_directories(${CMAKE_INSTALL_PREFIX}/lib)
set (test_SRCS AtomicFileTest data.t Datafile.t DatetimeParser.t exclusion.t helper.t interval.t range.t rules.t util.t TagInfoDatabase.t)
add_custom_target (test ./run_all --verbose
DEPENDS ${test_SRCS} timew_executable
DEPENDS ${test_SRCS} timew_executable doc
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
foreach (src_FILE ${test_SRCS})