]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/blob - test.sh
Merge branch 'release/0.7.0'
[hubacji1/iamcar.git] / test.sh
1 #!/bin/bash
2 NOFCE=999        # number of computational experiments
3 SC="lpar"       # scenario to test (without `.json`)
4 if [ -z $* ]; then
5         LOGDIR="log"    # directory where to store results
6 else
7         LOGDIR="log_$1"
8 fi
9
10 for p in `ls bin/`;
11 do
12         mkdir -p ${LOGDIR}/${p}
13 done
14
15 i=0
16 while [ ${i} -le ${NOFCE} ];
17 do
18         for p in `ls bin/`;
19         do
20                 ./bin/${p} < ${SC}.json > ${LOGDIR}/${p}/${i}.json
21         done
22         i=$(( ${i} + 1 ))
23 done