File: upstream-tests

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

set -e -u

# copy tests and test data
cp --verbose --archive tests/ "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
# symlink the packaged par2 executable
ln --verbose --symbolic /usr/bin/par2 "$AUTOPKGTEST_TMP"

# disarm -e to ensure all tests are run even if some fail
set +e
RETVAL=0

for t in $(find tests/ -name 'test*' -executable -type f | sort -V); do
	echo "$t:"
	/bin/sh "$t" 2>&1
	RETVAL=$((RETVAL + $?))
done

exit $RETVAL