aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yaml
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-10-23 21:59:03 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-10-23 21:59:03 -0400
commitf938617d45d1ef62a3315591174a7dc6862aa8b7 (patch)
tree5803833b41997943c946f72380a3aa400f03f364 /Taskfile.yaml
parentdc47d096400e7a4d95dd9516c72876c8ad016dcb (diff)
fix: Add Valgrind to testing suite, openssl fixes
Diffstat (limited to 'Taskfile.yaml')
-rw-r--r--Taskfile.yaml33
1 files changed, 31 insertions, 2 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml
index b19a135..7430244 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,23 @@ tasks:
- cmd: echo "Installing noscrypt globally"
silent: true
- cmd: cmake --install {{ .CMAKE_BUILD_DIR }} {{ .CLI_ARGS }}
-
+
+ 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!!