X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/iamcar.git/blobdiff_plain/71ea7543a079b9c3120a68aefb31a43f3e37d9e5..HEAD:/test.sh diff --git a/test.sh b/test.sh index 8a9cb94..65d8f20 100644 --- a/test.sh +++ b/test.sh @@ -1,15 +1,23 @@ #!/bin/bash -LOGDIR="log" -mkdir -p ${LOGDIR}/{T2,T3} -#for SC in {lpar,rpar,lper,rper}; do for p in `ls bin/`; -for i in {0..19999}; do -for SC in {lpar,}; do for p in `ls bin/`; +NOFCE=999 # number of computational experiments +SC="lpar" # scenario to test (without `.json`) +if [ -z $* ]; then + LOGDIR="log" # directory where to store results +else + LOGDIR="log_$1" +fi + +for p in `ls bin/`; do - #cat $SC.json | \ - # valgrind \ - # --tool=callgrind \ - # --callgrind-out-file=log/${p}_${SC}.callgrind \ - ./bin/$p < ${SC}.json > ${LOGDIR}/${p}/${i}.json \ - #&& python plot.py $SC.json log/${p}_${SC}.json -done done + mkdir -p ${LOGDIR}/${p} +done + +i=0 +while [ ${i} -le ${NOFCE} ]; +do + for p in `ls bin/`; + do + ./bin/${p} < ${SC}.json > ${LOGDIR}/${p}/${i}.json + done + i=$(( ${i} + 1 )) done