File: libwibble-check

package info (click to toggle)
libwibble 0.1.9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 500 kB
  • ctags: 1,183
  • sloc: cpp: 5,760; sh: 113; makefile: 71
file content (16 lines) | stat: -rwxr-xr-x 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