blob: ff51593760a00e5cb28b3600ce945908d3e60275 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/sh
# Arguments:
# class-name unit test class name
#
sdir=`dirname $(readlink -f $0)`
rootdir=`dirname $sdir`
bname=`basename $0 .sh`
. $sdir/setup-machine-arch.sh
dist_dir=$rootdir/dist-$archabi
if [ ! -e $dist_dir/lib/java/direct_bt-test.jar ] ; then
echo "test exe $dist_dir/lib/java/direct_bt-test.jar not existing"
exit 1
fi
if [ ! -z "$1" ] ; then
logbasename=$1
else
logbasename=$bname.$archabi
fi
logfile=$rootdir/doc/test/$logbasename.0.log
rm -f $logfile
ulimit -c unlimited
# run 'dpkg-reconfigure locales' enable 'en_US.UTF-8'
export LANG=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
# export EXE_WRAPPER="nice -20"
runit() {
echo COMMANDLINE $0 $*
echo EXE_WRAPPER $EXE_WRAPPER
echo logbasename $logbasename
echo logfile $logfile
echo $EXE_WRAPPER java -cp /usr/share/java/junit4.jar:$dist_dir/lib/java/direct_bt-test.jar $*
# $EXE_WRAPPER java -Djau.debug=true -cp /usr/share/java/junit4.jar:$dist_dir/lib/java/direct_bt-test.jar $*
$EXE_WRAPPER java -cp /usr/share/java/junit4.jar:$dist_dir/lib/java/direct_bt-test.jar $*
}
runit $* 2>&1 | tee $logfile
|