From 714991aa76a2db4632da7e8031b27a70099a579c Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Tue, 9 Aug 2022 22:11:35 +0400 Subject: Rename C++ test --- source/test/programs/CMakeLists.txt | 10 +++++----- source/test/programs/cpp.cpp | 13 ------------- source/test/programs/cpp_example.cpp | 13 +++++++++++++ 3 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 source/test/programs/cpp.cpp create mode 100644 source/test/programs/cpp_example.cpp diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt index 641aa16..e9f8856 100644 --- a/source/test/programs/CMakeLists.txt +++ b/source/test/programs/CMakeLists.txt @@ -19,13 +19,13 @@ if(KIT_ENABLE_TESTING) PROPERTIES TIMEOUT "30") - add_executable(cpp cpp.cpp) - target_link_libraries(cpp ${KIT_TEST_LIBRARY}) + add_executable(cpp_example cpp_example.cpp) + target_link_libraries(cpp_example ${KIT_TEST_LIBRARY}) add_test( - NAME cpp_test - COMMAND cpp) + NAME cpp_example_test + COMMAND cpp_example) set_tests_properties( - cpp_test + cpp_example_test PROPERTIES TIMEOUT "30") endif() diff --git a/source/test/programs/cpp.cpp b/source/test/programs/cpp.cpp deleted file mode 100644 index ca0b4c7..0000000 --- a/source/test/programs/cpp.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "../../kit_test/test.h" - -TEST("foo") { - REQUIRE(20 + 22 == 42); -} - -TEST("bar") { - REQUIRE(true); -} - -auto main(int argc, char **argv) -> int { - return run_tests(argc, argv); -} diff --git a/source/test/programs/cpp_example.cpp b/source/test/programs/cpp_example.cpp new file mode 100644 index 0000000..ca0b4c7 --- /dev/null +++ b/source/test/programs/cpp_example.cpp @@ -0,0 +1,13 @@ +#include "../../kit_test/test.h" + +TEST("foo") { + REQUIRE(20 + 22 == 42); +} + +TEST("bar") { + REQUIRE(true); +} + +auto main(int argc, char **argv) -> int { + return run_tests(argc, argv); +} -- cgit v1.2.3