Skip to content

Commit

Permalink
CI: Add tests to the valgrind check (#207)
Browse files Browse the repository at this point in the history
- This add several missing tests to the valgrind memcheck runs in the CI.
- Complete and sort test builds.
  • Loading branch information
wenzeslaus authored Nov 27, 2023
1 parent b5d4ab8 commit edabd4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,24 @@ jobs:
run: |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_date
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_deterministic
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_distributions
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_environment
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_generator_provider
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_model
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_mortality
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_movements
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network_helpers
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network_kernel
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_overpopulation_movements
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_quarantine
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_random
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_raster
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_scheduling
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_simulation
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_simulation_kernels
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_soils
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_spread_rate
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_statistics
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_survival_rate
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_treatments
13 changes: 7 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ add_pops_test(test_generator_provider)
add_pops_test(test_model)
add_pops_test(test_mortality)
add_pops_test(test_movements)
add_pops_test(test_survival_rate)
add_pops_test(test_network)
add_pops_test(test_network_helpers)
add_pops_test(test_network_kernel)
add_pops_test(test_overpopulation_movements)
add_pops_test(test_quarantine)
add_pops_test(test_random)
add_pops_test(test_raster)
add_pops_test(test_scheduling)
add_pops_test(test_simulation)
add_pops_test(test_simulation_kernels)
add_pops_test(test_soils)
add_pops_test(test_spread_rate)
add_pops_test(test_statistics)
add_pops_test(test_survival_rate)
add_pops_test(test_treatments)
add_pops_test(test_overpopulation_movements)
add_pops_test(test_quarantine)
add_pops_test(test_network)
add_pops_test(test_network_helpers)
add_pops_test(test_network_kernel)

0 comments on commit edabd4d

Please sign in to comment.