-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_all.sh
executable file
·107 lines (90 loc) · 2.35 KB
/
run_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env bash
#Title : run_all.sh
#Usage : bash run_all.sh
#Author : pmorvalho
#Date : June 20, 2024
#Description : This scripts executes all the commands used for CFaults (FM 2024 paper) evaluation
#Notes :
# (C) Copyright 2024 Pedro Orvalho.
#==============================================================================
chmod +x *.sh *.py
if [[ ! -d logs ]];
then
mkdir logs
fi
TIMEOUT=3600
if [[ $1 != "" ]];
then
TIMEOUT=$1
fi
# CFaults
echo
echo "------------------ CFaults ------------------"
echo
# run CFaults on TCAS
echo
echo "===== TCAS ====="
echo
time bash run_CFaults_on_benchmark.sh --tcas --timeout $TIMEOUT | tee logs/CFaults-TCAS.log
# run CFaults on C-Pack-IPAs
echo
echo "===== C-Pack-IPAs ====="
echo
time bash run_CFaults_on_benchmark.sh --timeout $TIMEOUT | tee logs/CFaults-CPackIPAs.log
# CFaults-Refined
echo
echo "------------------ CFaults-Refined ------------------"
echo
# run CFaults-Refined on TCAS
echo
echo "===== TCAS ====="
echo
time bash run_CFaults_on_benchmark.sh --tcas -ss --timeout $TIMEOUT | tee logs/CFaults-TCAS.log
# run CFaults-Refined on C-Pack-IPAs
echo
echo "===== C-Pack-IPAs ====="
echo
time bash run_CFaults_on_benchmark.sh -ss --timeout $TIMEOUT | tee logs/CFaults-CPackIPAs.log
# BugAssist
echo
echo "------------------ BugAssist ------------------"
echo
# run BugAssist on TCAS
echo
echo "===== TCAS ====="
echo
time bash run_BugAssist_on_benchmark.sh -t --timeout $TIMEOUT | tee logs/BugAssist-TCAS.log
# run BugAssist on C-Pack-IPAs
echo
echo "===== C-Pack-IPAs ====="
echo
time bash run_BugAssist_on_benchmark.sh --timeout $TIMEOUT | tee logs/BugAssist-CPackIPAs.log
# SNIPER
echo
echo "------------------ SNIPER ------------------"
echo
# run SNIPER on TCAS
echo
echo "===== TCAS ====="
echo
time bash run_SNIPER_on_benchmark.sh -t --timeout $TIMEOUT | tee logs/SNIPER-TCAS.log
# run SNIPER on C-Pack-IPAs
echo
echo "===== C-Pack-IPAs ====="
echo
time bash run_SNIPER_on_benchmark.sh --timeout $TIMEOUT | tee logs/SNIPER-CPackIPAs.log
echo
echo "------------------ DEALING WITH RESULTS ------------------"
echo
cd database
time ./gen_database.sh
cd ..
echo
echo
echo "CSV files can be found at 'database/csvs/'"
echo
echo "Plots can be found at 'database/plots/'"
echo
echo "SQLITE3 database can be found at 'database/results.db'"
echo
echo "------------------ THE END ------------------"