#!/bin/sh

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

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