summaryrefslogtreecommitdiffstats
path: root/tests/shell/helpers/nft-valgrind-wrapper.sh
blob: 9da50d4d9d1d0efa716ab5068627ac40f3fab444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

SUFFIX="$(date '+%Y%m%d-%H%M%S.%6N')"

rc=0
libtool \
	--mode=execute \
	valgrind \
		--log-file="$NFT_TEST_TESTTMPDIR/valgrind.$SUFFIX.%p.log" \
		--trace-children=yes \
		--leak-check=full \
		--show-leak-kinds=all \
		"$NFT_REAL" \
		"$@" \
	|| rc=$?

exit $rc