Skip to content

Commit df6a1ba

Browse files
committed
🔥 Remove tests
1 parent 922493b commit df6a1ba

5 files changed

Lines changed: 0 additions & 96 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ file(GLOB SOURCES
1616
src/utils/*.c
1717
src/parsing/*.c)
1818

19-
if (CMAKE_BUILD_TYPE STREQUAL "Tests")
20-
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/main.c")
21-
list(APPEND SOURCES
22-
tests/tests_parsing.c
23-
tests/tests_corewar.c)
24-
find_package(criterion REQUIRED)
25-
endif()
26-
2719
find_package(PkgConfig REQUIRED)
2820
pkg_check_modules(SDL2 REQUIRED sdl2)
2921
pkg_check_modules(SDL2_MIXER REQUIRED SDL2_mixer)
@@ -42,11 +34,6 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
4234
add_link_options(-fsanitize=address)
4335
endif()
4436

45-
if(CMAKE_BUILD_TYPE STREQUAL "Tests")
46-
add_compile_options(--coverage)
47-
add_link_options(--coverage)
48-
endif()
49-
5037
add_executable(corewar ${SOURCES})
5138

5239
target_link_libraries(corewar PRIVATE
@@ -55,7 +42,3 @@ target_link_libraries(corewar PRIVATE
5542
${SDL2_LIBRARIES}
5643
${SDL2_MIXER_LIBRARIES}
5744
m pthread dl rt X11)
58-
59-
if(CMAKE_BUILD_TYPE STREQUAL "Tests")
60-
target_link_libraries(corewar PRIVATE criterion)
61-
endif()

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ debug:
1919
@cmake --build $(BUILD_DIR) --parallel 12
2020
@cp $(BUILD_DIR)/$(NAME) .
2121

22-
.PHONY: tests
23-
tests:
24-
@mkdir -p $(BUILD_DIR)
25-
@cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=Tests ..
26-
@cmake --build $(BUILD_DIR) --parallel 12
27-
@cp $(BUILD_DIR)/$(NAME) .
28-
@./$(NAME)
29-
3022
.PHONY: clean
3123
clean:
3224
@rm -rf $(BUILD_DIR)

installer.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ cmake -DBUILD_EXAMPLES=ON ..
2424
make -j$(nproc)
2525
sudo make install
2626
cd ../.. && rm -rf raylib
27-
28-
# Uncomment to install criterion (for testing purposes only)
29-
# sudo apt install libcriterion-dev

tests/tests_corewar.c

Lines changed: 0 additions & 51 deletions
This file was deleted.

tests/tests_parsing.c

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)