diff options
Diffstat (limited to 'External/SPEC/CINT2000/300.twolf/CMakeLists.txt')
-rw-r--r-- | External/SPEC/CINT2000/300.twolf/CMakeLists.txt | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/External/SPEC/CINT2000/300.twolf/CMakeLists.txt b/External/SPEC/CINT2000/300.twolf/CMakeLists.txt index 6f240684..5c42eb32 100644 --- a/External/SPEC/CINT2000/300.twolf/CMakeLists.txt +++ b/External/SPEC/CINT2000/300.twolf/CMakeLists.txt @@ -5,13 +5,11 @@ list(APPEND CFLAGS -Wno-return-type) macro(test_input run_type) llvm_test_run(RUN_TYPE ${run_type} WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input - ${run_type} - > ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input/${run_type}.stdout + ${run_type} > ${run_type}.stdout ) foreach(file IN ITEMS ${run_type}.twf ${run_type}.pl2 ${run_type}.sav ${run_type}.pl1 ${run_type}.pl1 ${run_type}.pin ${run_type}.stdout ${run_type}.sv2 ${run_type}.out) - llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP} - ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input/${file} - ${BENCHMARK_DIR}/data/${run_type}/output/${file} + llvm_test_verify(RUN_TYPE ${run_type} WORKDIR ${CMAKE_CURRENT_BINARY_DIR} + ${FPCMP} data/${run_type}/output/${file} data/${run_type}/input/${file} ) endforeach() endmacro() @@ -20,9 +18,5 @@ test_input(test) test_input(train) test_input(ref) -llvm_test_executable(${PROG} ${Source}) - -# The benchmark writes the output where the input files are, so we have to -# copy the data over. -include(CopyDir) -llvm_copy_dir(${PROG} ${CMAKE_CURRENT_BINARY_DIR}/data ${BENCHMARK_DIR}/data) +llvm_test_executable(300.twolf ${Source}) +llvm_test_data_spec(300.twolf MUST_COPY data) |