diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-14 14:57:55 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 18:42:56 +0300 |
commit | 6aac08009254909aab3e0359f3ad7ab4e87a91e9 (patch) | |
tree | 09dac4cdb5c13e35375e49e44e51aeff7abc6529 /test | |
parent | workflows/ci: Bionic to Focal (diff) | |
download | math-server-6aac08009254909aab3e0359f3ad7ab4e87a91e9.tar.gz math-server-6aac08009254909aab3e0359f3ad7ab4e87a91e9.zip |
add `make install`, `make test`, etc.
Tests can be called using CTest now.
Diffstat (limited to 'test')
-rw-r--r-- | test/benchmarks/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/benchmarks/CMakeLists.txt b/test/benchmarks/CMakeLists.txt index 0e168cc..c81a520 100644 --- a/test/benchmarks/CMakeLists.txt +++ b/test/benchmarks/CMakeLists.txt @@ -10,3 +10,5 @@ install(TARGETS benchmarks RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") install(FILES "$<TARGET_PDB_FILE:benchmarks>" DESTINATION bin OPTIONAL) endif() + +add_test(NAME benchmarks COMMAND benchmarks --benchmark_color=false) diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 099fc2c..7669e30 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -11,3 +11,5 @@ install(TARGETS unit_tests RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") install(FILES "$<TARGET_PDB_FILE:unit_tests>" DESTINATION bin OPTIONAL) endif() + +add_test(NAME unit_tests COMMAND unit_tests --no_color_output) |