spot/bench/dtgbasat/stats.sh
Alexandre GBAGUIDI AISSE 042c7a0f5b Update dtgbasat benchmark
* bench/dtgbasat/config.bench: Configuration file sample used by gen.py
* bench/dtgbasat/gen.py: Script that can generate both bench script and
pdf results.
* bench/dtgbasat/stats.sh: Change stat.sh into stat-gen.sh that will be
generated by gen.py script.
* bench/dtgbasat/Makefile.am: Add new files.
* bench/dtgbasat/README: Update README.
* bench/dtgbasat/stat-gen.sh: Add stat script generated by gen.py and
default config.bench file.
2017-01-09 22:46:43 +01:00

42 lines
867 B
Bash
Executable file

#!/bin/sh
ltlfilt=../../bin/ltlfilt
ltl2tgba=../../bin/ltl2tgba
dstar2tgba=../../bin/dstar2tgba
timeout='timeout -sKILL 1h'
stats=--stats="%s, %e, %t, %a, %c, %d, %p, %r"
empty='-, -, -, -, -, -, -, -'
rm -f stats.mk stats.tmp
n=1
all=
while IFS=, read f type accmax accmin; do
unset IFS
case $type in
*TCONG*)
echo "$n.log:; ./stat-gen.sh $n '$f' $type $accmax >\$@" >> stats.tmp
all="$all $n.log"
n=`expr $n + 1`
echo "$n.log:; ./stat-gen.sh $n '$f' DRA-CONG $accmax >\$@" >> stats.tmp
all="$all $n.log"
n=`expr $n + 1`
;;
*)
echo "$n.log:; ./stat-gen.sh $n '$f' $type $accmax >\$@" >> stats.tmp
all="$all $n.log"
n=`expr $n + 1`
;;
esac
done < info.ltl
cat > stats.mk <<EOF
ALL = $all
all.csv: \$(ALL)
cat \$(ALL) >\$@
EOF
cat stats.tmp >> stats.mk
echo "Now, run something like: make -j8 -f stats.mk"