File: testMem

package info (click to toggle)
par2cmdline 0.6.11-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,388 kB
  • ctags: 955
  • sloc: cpp: 8,941; sh: 3,797; makefile: 89
file content (20 lines) | stat: -rwxr-xr-x 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

cd $(dirname $0)

testname=$(basename $0)
rm -f $testname.log

mkdir run$testname && cd run$testname || { echo "ERROR: Could not change to test directory" ; exit 1; } >&2

tar -xf ../subdirdata.tar.gz || { echo "ERROR: Could not extract data test files" ; exit 1; } >&2
tar -xf ../subdirdata-par2files-unix.tar.gz || { echo "ERROR: Could not extract par test files" ; exit 1; } >&2

rm -f subdir1/test-2.data subdir2/test-7.data
valgrind --tool=memcheck --leak-check=yes ../../par2 r testdata.par2

cd ..
rm -rf run$testname

exit 0;