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