File: libwibble-check

package info (click to toggle)
libwibble 0.1.19
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 832 kB
  • ctags: 1,940
  • sloc: cpp: 9,798; makefile: 163; perl: 84; sh: 11
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