File: runtests

package info (click to toggle)
re2 20190101+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,832 kB
  • sloc: cpp: 20,111; makefile: 281; python: 281; sh: 246; perl: 224; ansic: 9
file content (33 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env sh

# System Integrity Protection on Darwin complicated these matters somewhat.
# See https://github.com/google/re2/issues/175 for details.
if [ "x$1" = "x-shared-library-path" ]; then
	if [ "x$(uname)" = "xDarwin" ]; then
		DYLD_LIBRARY_PATH="$2:$DYLD_LIBRARY_PATH"
		export DYLD_LIBRARY_PATH
	else
		LD_LIBRARY_PATH="$2:$LD_LIBRARY_PATH"
		export LD_LIBRARY_PATH
	fi
	shift 2
fi

success=true
for i; do
	printf "%-40s" $i
	if $($i >$i.log 2>&1) 2>/dev/null; then
		echo PASS
	else
		echo FAIL';' output in $i.log
		success=false
	fi
done

if $success; then
	echo 'ALL TESTS PASSED.'
	exit 0
else
	echo 'TESTS FAILED.'
	exit 1
fi