mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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:
15
tests/d2/CMakeLists.txt
Normal file
15
tests/d2/CMakeLists.txt
Normal 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)
|
||||
Submodule tests/d2/dmd-testsuite updated: b6145220cd...7dc22d030c
Reference in New Issue
Block a user