forked from pool/libmicro
48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
|
diff -pur libmicro-0.4.0/bench.sh libmicro-0.4.0-fixed/bench.sh
|
||
|
--- libmicro-0.4.0/bench.sh 2007-07-02 23:17:45.000000000 +0200
|
||
|
+++ libmicro-0.4.0-fixed/bench.sh 2008-03-17 12:25:00.000000000 +0100
|
||
|
@@ -30,8 +30,9 @@
|
||
|
# Use is subject to license terms.
|
||
|
#
|
||
|
|
||
|
+BIN="/usr/lib/libMicro/bin"
|
||
|
bench_version=0.4.0
|
||
|
-libmicro_version=`bin/tattle -V`
|
||
|
+libmicro_version=`$BIN/tattle -V`
|
||
|
|
||
|
case $libmicro_version in
|
||
|
$bench_version)
|
||
|
@@ -96,14 +97,14 @@ printf "!CPU_NAME: %30s\n" "$p_type"
|
||
|
printf "!IP_address: %30s\n" `getent hosts $hostname | awk '{print $1}'`
|
||
|
printf "!Run_by: %30s\n" $LOGNAME
|
||
|
printf "!Date: %30s\n" "`date '+%D %R'`"
|
||
|
-printf "!Compiler: %30s\n" `bin/tattle -c`
|
||
|
-printf "!Compiler Ver.:%30s\n" "`bin/tattle -v`"
|
||
|
-printf "!sizeof(long): %30s\n" `bin/tattle -s`
|
||
|
-printf "!extra_CFLAGS: %30s\n" "`bin/tattle -f`"
|
||
|
-printf "!TimerRes: %30s\n" "`bin/tattle -r`"
|
||
|
+printf "!Compiler: %30s\n" `$BIN/tattle -c`
|
||
|
+printf "!Compiler Ver.:%30s\n" "`$BIN/tattle -v`"
|
||
|
+printf "!sizeof(long): %30s\n" `$BIN/tattle -s`
|
||
|
+printf "!extra_CFLAGS: %30s\n" "`$BIN/tattle -f`"
|
||
|
+printf "!TimerRes: %30s\n" "`$BIN/tattle -r`"
|
||
|
|
||
|
mkdir -p $TMPROOT/bin
|
||
|
-cp bin-$ARCH/exec_bin $TMPROOT/bin/$A
|
||
|
+cp $BIN/exec_bin $TMPROOT/bin/$A
|
||
|
|
||
|
while read A B
|
||
|
do
|
||
|
@@ -125,9 +126,9 @@ do
|
||
|
|
||
|
if [ ! -f $TMPROOT/bin/$A ]
|
||
|
then
|
||
|
- cp bin-$ARCH/$A $TMPROOT/bin/$A
|
||
|
+ cp $BIN/$A $TMPROOT/bin/$A
|
||
|
fi
|
||
|
- (cd $TMPROOT && eval "bin/$A $B")
|
||
|
+ (cd $TMPROOT && eval "$BIN/$A $B")
|
||
|
done <<.
|
||
|
#
|
||
|
# Obligatory null system call: use very short time
|