diff options
| -rw-r--r-- | CMakeLists.txt | 7 | ||||
| -rw-r--r-- | build/.cmake/api/v1/reply/index-2026-01-29T13-25-01-0527.json (renamed from build/.cmake/api/v1/reply/index-2026-01-29T13-21-24-0663.json) | 0 | ||||
| -rw-r--r-- | build/CMakeFiles/TargetDirectories.txt | 1 | ||||
| -rw-r--r-- | build/CMakeFiles/minesweeper.dir/src/Game.cpp.o | bin | 27460 -> 27460 bytes | |||
| -rw-r--r-- | build/CMakeFiles/minesweeper.dir/src/Utils.cpp.o | bin | 25200 -> 25200 bytes | |||
| -rw-r--r-- | build/CMakeFiles/minesweeper.dir/src/main.cpp.o | bin | 24804 -> 24804 bytes | |||
| -rw-r--r-- | build/CTestTestfile.cmake | 8 | ||||
| -rw-r--r-- | build/DartConfiguration.tcl | 0 | ||||
| -rw-r--r-- | build/Makefile | 11 | ||||
| -rw-r--r-- | build/Testing/20260129-1317/Test.xml | 8 | ||||
| -rw-r--r-- | build/Testing/Temporary/LastTest_20260129-1317.log | 4 | ||||
| -rwxr-xr-x | build/minesweeper | bin | 57164 -> 57160 bytes |
12 files changed, 33 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dbedac1..ad2fca5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,3 +13,10 @@ file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS add_executable(minesweeper) target_sources(minesweeper PRIVATE ${SOURCE_FILES}) + +enable_testing() + +add_test( + NAME runs_minesweeper + COMMAND minesweeper +)
\ No newline at end of file diff --git a/build/.cmake/api/v1/reply/index-2026-01-29T13-21-24-0663.json b/build/.cmake/api/v1/reply/index-2026-01-29T13-25-01-0527.json index b500d3b..b500d3b 100644 --- a/build/.cmake/api/v1/reply/index-2026-01-29T13-21-24-0663.json +++ b/build/.cmake/api/v1/reply/index-2026-01-29T13-25-01-0527.json diff --git a/build/CMakeFiles/TargetDirectories.txt b/build/CMakeFiles/TargetDirectories.txt index 7458725..f7cf61e 100644 --- a/build/CMakeFiles/TargetDirectories.txt +++ b/build/CMakeFiles/TargetDirectories.txt @@ -1,3 +1,4 @@ /home/dawidg81/minesweeper/build/CMakeFiles/minesweeper.dir +/home/dawidg81/minesweeper/build/CMakeFiles/test.dir /home/dawidg81/minesweeper/build/CMakeFiles/edit_cache.dir /home/dawidg81/minesweeper/build/CMakeFiles/rebuild_cache.dir diff --git a/build/CMakeFiles/minesweeper.dir/src/Game.cpp.o b/build/CMakeFiles/minesweeper.dir/src/Game.cpp.o Binary files differindex e31f986..7f7d0f5 100644 --- a/build/CMakeFiles/minesweeper.dir/src/Game.cpp.o +++ b/build/CMakeFiles/minesweeper.dir/src/Game.cpp.o diff --git a/build/CMakeFiles/minesweeper.dir/src/Utils.cpp.o b/build/CMakeFiles/minesweeper.dir/src/Utils.cpp.o Binary files differindex b62c86b..1df501a 100644 --- a/build/CMakeFiles/minesweeper.dir/src/Utils.cpp.o +++ b/build/CMakeFiles/minesweeper.dir/src/Utils.cpp.o diff --git a/build/CMakeFiles/minesweeper.dir/src/main.cpp.o b/build/CMakeFiles/minesweeper.dir/src/main.cpp.o Binary files differindex 81f96f6..5910222 100644 --- a/build/CMakeFiles/minesweeper.dir/src/main.cpp.o +++ b/build/CMakeFiles/minesweeper.dir/src/main.cpp.o diff --git a/build/CTestTestfile.cmake b/build/CTestTestfile.cmake new file mode 100644 index 0000000..5ef1de8 --- /dev/null +++ b/build/CTestTestfile.cmake @@ -0,0 +1,8 @@ +# CMake generated Testfile for +# Source directory: /home/dawidg81/minesweeper +# Build directory: /home/dawidg81/minesweeper/build +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +add_test(runs_minesweeper "/home/dawidg81/minesweeper/build/minesweeper") +set_tests_properties(runs_minesweeper PROPERTIES _BACKTRACE_TRIPLES "/home/dawidg81/minesweeper/CMakeLists.txt;19;add_test;/home/dawidg81/minesweeper/CMakeLists.txt;0;") diff --git a/build/DartConfiguration.tcl b/build/DartConfiguration.tcl new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build/DartConfiguration.tcl diff --git a/build/Makefile b/build/Makefile index 94aa135..9874dd0 100644 --- a/build/Makefile +++ b/build/Makefile @@ -65,6 +65,16 @@ CMAKE_BINARY_DIR = /home/dawidg81/minesweeper/build #============================================================================= # Targets provided globally by CMake. +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + # Special rule for the target edit_cache edit_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." @@ -210,6 +220,7 @@ help: @echo "... depend" @echo "... edit_cache" @echo "... rebuild_cache" + @echo "... test" @echo "... minesweeper" @echo "... src/Game.o" @echo "... src/Game.i" diff --git a/build/Testing/20260129-1317/Test.xml b/build/Testing/20260129-1317/Test.xml index 6895632..5701d26 100644 --- a/build/Testing/20260129-1317/Test.xml +++ b/build/Testing/20260129-1317/Test.xml @@ -24,11 +24,11 @@ ProcessorClockFrequency="0" > <Testing> - <StartDateTime>Jan 29 14:17 CET</StartDateTime> - <StartTestTime>1769692656</StartTestTime> + <StartDateTime>Jan 29 14:25 CET</StartDateTime> + <StartTestTime>1769693101</StartTestTime> <TestList/> - <EndDateTime>Jan 29 14:17 CET</EndDateTime> - <EndTestTime>1769692656</EndTestTime> + <EndDateTime>Jan 29 14:25 CET</EndDateTime> + <EndTestTime>1769693101</EndTestTime> <ElapsedMinutes>0</ElapsedMinutes> </Testing> </Site> diff --git a/build/Testing/Temporary/LastTest_20260129-1317.log b/build/Testing/Temporary/LastTest_20260129-1317.log index 0e73a26..9b9288c 100644 --- a/build/Testing/Temporary/LastTest_20260129-1317.log +++ b/build/Testing/Temporary/LastTest_20260129-1317.log @@ -1,3 +1,3 @@ -Start testing: Jan 29 14:17 CET +Start testing: Jan 29 14:25 CET ---------------------------------------------------------- -End testing: Jan 29 14:17 CET +End testing: Jan 29 14:25 CET diff --git a/build/minesweeper b/build/minesweeper Binary files differindex bdc8b3a..06b881e 100755 --- a/build/minesweeper +++ b/build/minesweeper |
