Fix main cmake and tests cmake
Some checks failed
CI/CD Pipeline / Code Linting (push) Failing after 16s
CI/CD Pipeline / Build and Test (Debug, clang, ubuntu-latest) (push) Failing after 5m10s
CI/CD Pipeline / Build and Test (Debug, gcc, ubuntu-latest) (push) Failing after 5m27s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-20.04) (push) Failing after 5m38s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-latest) (push) Failing after 5m19s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-20.04) (push) Failing after 5m29s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-latest) (push) Failing after 5m33s
CI/CD Pipeline / Docker Build Test (push) Failing after 23s
CI/CD Pipeline / Performance Benchmarks (push) Has been skipped
CI/CD Pipeline / Build Documentation (push) Failing after 12s
CI/CD Pipeline / Create Release Package (push) Has been skipped
Some checks failed
CI/CD Pipeline / Code Linting (push) Failing after 16s
CI/CD Pipeline / Build and Test (Debug, clang, ubuntu-latest) (push) Failing after 5m10s
CI/CD Pipeline / Build and Test (Debug, gcc, ubuntu-latest) (push) Failing after 5m27s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-20.04) (push) Failing after 5m38s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-latest) (push) Failing after 5m19s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-20.04) (push) Failing after 5m29s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-latest) (push) Failing after 5m33s
CI/CD Pipeline / Docker Build Test (push) Failing after 23s
CI/CD Pipeline / Performance Benchmarks (push) Has been skipped
CI/CD Pipeline / Build Documentation (push) Failing after 12s
CI/CD Pipeline / Create Release Package (push) Has been skipped
This commit is contained in:
@@ -98,7 +98,7 @@ endif()
|
||||
# Add memory check with valgrind if available
|
||||
find_program(VALGRIND_EXECUTABLE valgrind)
|
||||
if(VALGRIND_EXECUTABLE)
|
||||
add_custom_target(test_memcheck
|
||||
add_custom_target(tests_memcheck
|
||||
COMMAND ${VALGRIND_EXECUTABLE} --tool=memcheck --leak-check=full --show-leak-kinds=all
|
||||
--track-origins=yes --verbose --error-exitcode=1
|
||||
$<TARGET_FILE:svm_classifier_tests>
|
||||
@@ -106,20 +106,20 @@ if(VALGRIND_EXECUTABLE)
|
||||
COMMENT "Running tests with valgrind memory check"
|
||||
)
|
||||
|
||||
message(STATUS "Memory check target 'test_memcheck' available")
|
||||
message(STATUS "Memory check target 'tests_memcheck' available")
|
||||
endif()
|
||||
|
||||
# Performance profiling with perf if available
|
||||
find_program(PERF_EXECUTABLE perf)
|
||||
if(PERF_EXECUTABLE)
|
||||
add_custom_target(test_profile
|
||||
add_custom_target(tests_profile
|
||||
COMMAND ${PERF_EXECUTABLE} record -g $<TARGET_FILE:svm_classifier_tests> [performance]
|
||||
COMMAND ${PERF_EXECUTABLE} report
|
||||
DEPENDS svm_classifier_tests
|
||||
COMMENT "Running performance tests with profiling"
|
||||
)
|
||||
|
||||
message(STATUS "Performance profiling target 'test_profile' available")
|
||||
message(STATUS "Performance profiling target 'tests_profile' available")
|
||||
endif()
|
||||
|
||||
# Set test properties
|
||||
|
Reference in New Issue
Block a user