8b438cb97e
This includes the basic CMake infrastructure for building and executing the test suite. Four test categories have been added - unit, system/functional, GUI, and simgear unit tests. The test suite is run by typing 'make test_suite'. All of the fgfs sources are included in the new run_test_suite executable, excluding the bootstrap routine and its main() function. The test suite currently consists of a single dummy unit test for the NasalSys subsystem, and a single demonstration simgear/props unit test.
20 lines
298 B
CMake
20 lines
298 B
CMake
# Add each unit test category.
|
|
foreach( unit_test_category
|
|
Scripting
|
|
)
|
|
|
|
add_subdirectory(${unit_test_category})
|
|
|
|
endforeach( unit_test_category )
|
|
|
|
|
|
set(TESTSUITE_SOURCES
|
|
${TESTSUITE_SOURCES}
|
|
PARENT_SCOPE
|
|
)
|
|
|
|
|
|
set(TESTSUITE_HEADERS
|
|
${TESTSUITE_HEADERS}
|
|
PARENT_SCOPE
|
|
)
|