File: memory.test

package info (click to toggle)
eccodes 2.41.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 409,472 kB
  • sloc: cpp: 152,723; sh: 19,388; ansic: 12,671; f90: 6,707; python: 2,948; perl: 2,790; javascript: 1,427; yacc: 854; fortran: 468; lex: 359; makefile: 111
file content (14 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/ksh
exit
nice valgrind --num-callers=999999 --leak-check=full --leak-resolution=high -v ./memory $@ 2> mem
status=$?

grep "blocks are definitely lost" mem && status=1
grep "ERROR SUMMARY"              mem | grep -v ": 0 errors" && status=1
if [[ $status -ne 0 ]]
then
	cat mem
	exit 1
else
	echo OK
fi