File: libwibble-check

package info (click to toggle)
libwibble 1.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,040 kB
  • ctags: 2,721
  • sloc: cpp: 14,542; makefile: 196; perl: 87; sh: 26
file content (16 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Uncomment to use root privileges to enable more accurate timings
# run USE_ROOT=1 make check for better timings

MAIN="libwibble-test"

id=`date +%y%m%d%H%M%S`
if [ "$USE_ROOT"x = x ]
then
	$DEBUGGER ./$MAIN $ARGS 2>&1 | tee `pwd`/testrun-$id
else
	sudo nice --5 su $LOGNAME -c \
	"`pwd`/$MAIN $ARGS 2>&1 | tee `pwd`/testrun-$id"
fi
echo Output saved in `pwd`/testrun-$id