Testsuite updates; run it as part of CI builds.

Only can run a quick build because of Travis time restrictions. Should
try to find a set of most-likely-to-fail command line args, maybe
"-O -gc -fPIC"?
This commit is contained in:
David Nadlinger
2012-09-29 19:53:52 +02:00
parent 5e03034654
commit c0980de3af
4 changed files with 25 additions and 1 deletions

15
tests/d2/CMakeLists.txt Normal file
View File

@@ -0,0 +1,15 @@
include(CheckTypeSize)
check_type_size(void* ptr_size)
if(${ptr_size} MATCHES "^4$")
set(model 32)
elseif(${ptr_size} MATCHES "^8$")
set(model 64)
endif()
set(DMD_TEST_MODEL "${model}" CACHE STRING
"The model argument to use for compiling the D2 testsuite. Defaults to system bitness.")
get_property(ldmd_path TARGET ldmd2 PROPERTY LOCATION)
add_test(NAME dmd-testsuite WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests/d2/dmd-testsuite
COMMAND make RESULTS_DIR=${CMAKE_BINARY_DIR}/dmd_test_results DMD=${ldmd_path} MODEL=${DMD_TEST_MODEL} quick)