File: tstest_valgrind

package info (click to toggle)
tsdecrypt 10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,288 kB
  • sloc: ansic: 14,377; makefile: 245; sh: 166
file content (21 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

ulimit -c unlimited

valgrind \
	--log-file=tstest-$(date +%F-%H:%M:%S)-valgrind.log \
	--leak-check=full \
	--show-reachable=yes \
	--undef-value-errors=no \
	--trace-children=yes \
	--run-libc-freeres=yes \
	--time-stamp=yes \
		-- \
	./tstest > tstest.test.now
diff -u tstest.test.expect tstest.test.now
if [ $? != 0 ]
then
	echo "DIFFERENCE!"
else
	echo "OK"
fi