We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9227866 commit 72df543Copy full SHA for 72df543
.github/workflows/test.yml
@@ -15,7 +15,7 @@ jobs:
15
- uses: actions/checkout@v4
16
17
- name: install dependencies
18
- run: sudo apt-get update && sudo apt-get install -y libcriterion-dev
+ run: sudo apt-get update && sudo apt-get install -y libcriterion-dev valgrind
19
20
- name: run test build
21
run: ./build/test.sh
build/test.sh
@@ -3,4 +3,13 @@ export WORKDIR=$(mktemp -d)
3
4
set -e
5
cc -DTEST -lcriterion -o "${WORKDIR}/libion_test" ./src/*.c
6
+
7
+echo "running tests"
8
"${WORKDIR}/libion_test" --verbose
9
10
+if [ -x "$(command -v valgrind)" ]; then
11
+ echo "valgrind found"
12
+ valgrind "${WORKDIR}/libion_test"
13
+else
14
+ echo "valgrind not found"
+fi
0 commit comments