Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 28, 2024
1 parent c8b31db commit e353c11
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 23 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@

.DS_Store

NFsim_v1.11/tests/data/SimID_273069657_0_.gdat

NFsim_v1.11/tests/data/SimID_273069657_0_.species
NFsim_v1.11/tests/smoke/SimID_273069657_0_.gdat
NFsim_v1.11/tests/smoke/SimID_273069657_0_.species
6 changes: 3 additions & 3 deletions NFsim_v1.11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ else (MINGW)
set(test_nfsim_exe ${CMAKE_BINARY_DIR}/bin/${exe_target})
set(python_cmd python3)
endif (MINGW)
set(test_dir ${CMAKE_CURRENT_SOURCE_DIR}/tests/test1)
set(test_dir ${CMAKE_CURRENT_SOURCE_DIR}/tests/smoke)

# smoke test as a python script
add_test(NAME ${exe_target}_test1 COMMAND ${python_cmd} ${test_dir}/test1.py ${test_nfsim_exe} WORKING_DIRECTORY ${test_dir})
add_test(NAME ${exe_target}_smoke_python COMMAND ${python_cmd} ${test_dir}/smoke.py ${test_nfsim_exe} WORKING_DIRECTORY ${test_dir})

# smoke test as a bash script
add_test(NAME ${exe_target}_test2 COMMAND bash -c "${test_dir}/test2.sh ${test_nfsim_exe}" WORKING_DIRECTORY ${test_dir})
add_test(NAME ${exe_target}_smoke_bash COMMAND bash -c "${test_dir}/smoke.sh ${test_nfsim_exe}" WORKING_DIRECTORY ${test_dir})

install(TARGETS ${exe_target} RUNTIME DESTINATION ${OPTION_EXE_DIRECTORY})

File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions NFsim_v1.11/tests/test1/SimID_273069657_0_.gdat.expected

This file was deleted.

5 changes: 0 additions & 5 deletions NFsim_v1.11/tests/test1/SimID_273069657_0_.species.expected

This file was deleted.

0 comments on commit e353c11

Please sign in to comment.