add scripts and key
[tsan11-tsan11rec-docker.git] / scripts / test_all.sh
1 #!/bin/bash
2
3 TOTAL_RUN=$1
4
5 if [ -z "$1" ]; then
6         TOTAL_RUN=10
7 fi
8
9 # Clear data
10 rm *.log 2> /dev/null
11
12 echo "test application benchmarks"
13 # Run in all-core configuration
14 if [ ! -d "all-core" ]; then
15         mkdir all-core
16 fi
17
18 echo "running each benchmark with multiple cores for ${TOTAL_RUN} times"
19 rm all-core/*.log 2> /dev/null
20 ./run.sh $TOTAL_RUN
21 mv *.log all-core
22 echo "done"
23 python calculator.py all-core
24
25 # Run in single-core configuration
26 if [ ! -d "single-core" ]; then
27         mkdir single-core
28 fi
29
30 echo "running each benchmark with a single core for ${TOTAL_RUN} times"
31 rm single-core/*.log 2> /dev/null
32 taskset -c 0 ./run.sh $TOTAL_RUN
33 mv *.log single-core
34 echo "done"
35 python calculator.py single-core
36