Skip to content

Commit

Permalink
Merge pull request #671 from Artturin/fix-running-tests
Browse files Browse the repository at this point in the history
[build] Fix running the tests when the package is not yet installed
  • Loading branch information
ilyash-b authored Jul 12, 2024
2 parents 57d906e + 21ced7e commit 51a72eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,5 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION ${CMAKE_INSTALL_DO
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc/ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 FILES_MATCHING PATTERN "*.1")

enable_testing()
add_test(all bash -c "${CMAKE_CURRENT_BINARY_DIR}/ngs ${CMAKE_CURRENT_SOURCE_DIR}/test.ngs")
# NGS_PATH is set because the files are not installed yet.
add_test(all bash -c "NGS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/lib ${CMAKE_CURRENT_BINARY_DIR}/ngs ${CMAKE_CURRENT_SOURCE_DIR}/test.ngs")

0 comments on commit 51a72eb

Please sign in to comment.