summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
blob: 2e062bd852ac891fd5223440d1b0fd85c375f8b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Determine number of threads available, used to configure (default) parallel
# execution of custom test targets (can be overriden with ARGS=-jN).
include(ProcessorCount)
ProcessorCount(NTHREADS)
if(NTHREADS EQUAL 0)
  set(NTHREADS 1)
endif()

#-----------------------------------------------------------------------------#
# Add subdirectories

add_subdirectory(regress)
add_subdirectory(system)

if(BUILD_BINDINGS_JAVA)
  add_subdirectory(java)
endif()

if(ENABLE_UNIT_TESTING)
	add_subdirectory(unit)
endif()

#-----------------------------------------------------------------------------#
# Add target 'check', builds and runs
# > unit tests
# > regression tests of levels 0 and 1
# > system tests

add_custom_target(check
  COMMAND ctest --output-on-failure -LE "regress[2-4]" -j${NTHREADS} $(ARGS))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback