diff options
author | vnugent <public@vaughnnugent.com> | 2024-11-03 14:03:07 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-11-03 14:03:07 -0500 |
commit | dcc65c2cacf2261eb705ff8ac7d1a0263ced79f4 (patch) | |
tree | c898c02f7e5b081c64932ce1ab5ebde9b27bdace /Taskfile.yaml | |
parent | 44044eb0fb28b774773e3284fd147c91d59d64e3 (diff) | |
parent | e0d30c1d8f407bfef05a9cc36398bb0894a96c39 (diff) |
merge develop
Diffstat (limited to 'Taskfile.yaml')
-rw-r--r-- | Taskfile.yaml | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml index b19a135..ea12599 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -37,7 +37,19 @@ tasks: cmds: - task: build-debug - cmd: cd {{ .CMAKE_BUILD_DIR }} && ctest -C Debug --verbose - + + dev: + watch: true + sources: + - include/* + - src/* + - src/*/* + - tests/* + - CMakelists.txt + - vendor/* + cmds: + - task: test-dev + test-mbedtls: desc: "Builds and runs tests for noscrypt using the mbedtls crypto library for the current platform" cmds: @@ -55,6 +67,7 @@ tasks: - task: compile vars: { BUILD_CONFIG: 'Debug' } - cmd: cd {{ .CMAKE_BUILD_DIR }} && ctest -C Debug --verbose --output-on-failure + - task: memcheck build-internal: internal: true @@ -84,7 +97,24 @@ tasks: - cmd: echo "Installing noscrypt globally" silent: true - cmd: cmake --install {{ .CMAKE_BUILD_DIR }} {{ .CLI_ARGS }} - + + #Test executable and library must be built for tests to run + memcheck: + desc: 'Runs Valgrind memcheck in debug mode against the nctest executable (Linux only)' + platforms: + - linux + preconditions: + - which valgrind + cmds: + - cmd: echo "Running valgrind memory check on test executable" + silent: true + - cmd: + valgrind + --tool=memcheck + --leak-check=full + --show-leak-kinds=all + --track-origins=yes + {{ .CMAKE_BUILD_DIR }}/{{ .TEST_EXE_NAME }} #CI ONLY!! |