Skip to content

Commit

Permalink
Merge branch 'master' into merge-2.078
Browse files Browse the repository at this point in the history
Conflicts:
	tests/d2/CMakeLists.txt
	tests/d2/dmd-testsuite
  • Loading branch information
kinke committed Jan 27, 2018
2 parents 1b860e7 + 3a0bd22 commit 6334c69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ matrix:
d: ldc
env: LLVM_VERSION=4.0.0 OPTS="-DBUILD_SHARED_LIBS=ON"
allow_failures:
#- env: LLVM_VERSION=3.9
- env: LLVM_VERSION=6.0.0-5 OPTS="-DBUILD_SHARED_LIBS=OFF" LLVM_SPIRV_AVAILABLE=ON

cache:
directories:
Expand Down
13 changes: 6 additions & 7 deletions tests/d2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else()
set(gdb_flags "OFF")
endif()

function(add_testsuite config_name dflags gdbflags model)
function(add_testsuite config_name required_flags gdbflags model)
set(name dmd-testsuite${config_name})
set(outdir ${CMAKE_BINARY_DIR}/${name})
set(workingdir ${PROJECT_SOURCE_DIR}/tests/d2/dmd-testsuite)
Expand All @@ -36,13 +36,12 @@ function(add_testsuite config_name dflags gdbflags model)
add_test(NAME clean-${name}
COMMAND ${CMAKE_COMMAND} -E remove_directory ${outdir})

set(all_dflags "-conf=${PROJECT_BINARY_DIR}/bin/${LDC_EXE}.conf ${dflags} ${gdb_dflags}")

# The DFLAGS environment variable read by LDMD is used because the DMD
# testsuite build system provides no way to run the test cases with a
# given set of flags without trying all combinations of them.
set(dflags "-conf=${PROJECT_BINARY_DIR}/bin/${LDC_EXE}.conf ${gdb_dflags}")
add_test(NAME ${name}
COMMAND make -k -C ${workingdir} RESULTS_DIR=${resultsdir} DMD=${LDMD_EXE_FULL} DFLAGS=${all_dflags} MODEL=${model} GDB_FLAGS=${gdbflags} quick
COMMAND make -k -C ${workingdir} RESULTS_DIR=${resultsdir}
REQUIRED_ARGS=${required_flags} DFLAGS=${dflags}
DMD=${LDMD_EXE_FULL} MODEL=${model} GDB_FLAGS=${gdbflags}
quick
)
set_tests_properties(${name} PROPERTIES DEPENDS clean-${name})
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion tests/d2/dmd-testsuite
Submodule dmd-testsuite updated 1 files
+13 −16 d_do_test.d

0 comments on commit 6334c69

Please sign in to comment.