-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmodels.sh
executable file
·142 lines (126 loc) · 3.98 KB
/
models.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/usr/bin/env bash
_MUALLOY_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
EXPERIMENT_DIR="${_MUALLOY_DIR}/experiments"
MODEL_DIR="${EXPERIMENT_DIR}/models"
GEN_DIR="${EXPERIMENT_DIR}/gen"
TEST_GEN_DIR="${GEN_DIR}/tests"
TEST_DIR="${EXPERIMENT_DIR}/test-suite"
MODELS=(
"addr"
"bempl"
"binaryTree"
"ctree"
"dijkstra"
"farmer"
"fullTree"
"grade"
"grand"
"handshake"
"nqueens"
"other"
"singlyLinkedList"
)
declare -g -A addr=(
[model_name]="addr"
[model_path]="${MODEL_DIR}/addr.als"
[mutant_dir_path]="${GEN_DIR}/addr"
[scope]="4"
[test_gen_path]="${TEST_GEN_DIR}/addr.als"
[test_path]="${TEST_DIR}/addr.als"
)
declare -g -A bempl=(
[model_name]="bempl"
[model_path]="${MODEL_DIR}/bempl.als"
[mutant_dir_path]="${GEN_DIR}/bempl"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/bempl.als"
[test_path]="${TEST_DIR}/bempl.als"
)
declare -g -A binaryTree=(
[model_name]="binaryTree"
[model_path]="${MODEL_DIR}/binaryTree.als"
[mutant_dir_path]="${GEN_DIR}/binaryTree"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/binaryTree.als"
[test_path]="${TEST_DIR}/binaryTree.als"
)
declare -g -A ctree=(
[model_name]="ctree"
[model_path]="${MODEL_DIR}/ctree.als"
[mutant_dir_path]="${GEN_DIR}/ctree"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/ctree.als"
[test_path]="${TEST_DIR}/ctree.als"
)
declare -g -A dijkstra=(
[model_name]="dijkstra"
[model_path]="${MODEL_DIR}/dijkstra.als"
[mutant_dir_path]="${GEN_DIR}/dijkstra"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/dijkstra.als"
[test_path]="${TEST_DIR}/dijkstra.als"
)
declare -g -A farmer=(
[model_name]="farmer"
[model_path]="${MODEL_DIR}/farmer.als"
[mutant_dir_path]="${GEN_DIR}/farmer"
[scope]="4"
[test_gen_path]="${TEST_GEN_DIR}/farmer.als"
[test_path]="${TEST_DIR}/farmer.als"
)
declare -g -A fullTree=(
[model_name]="fullTree"
[model_path]="${MODEL_DIR}/fullTree.als"
[mutant_dir_path]="${GEN_DIR}/fullTree"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/fullTree.als"
[test_path]="${TEST_DIR}/fullTree.als"
)
declare -g -A grade=(
[model_name]="grade"
[model_path]="${MODEL_DIR}/grade.als"
[mutant_dir_path]="${GEN_DIR}/grade"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/grade.als"
[test_path]="${TEST_DIR}/grade.als"
)
declare -g -A grand=(
[model_name]="grand"
[model_path]="${MODEL_DIR}/grand.als"
[mutant_dir_path]="${GEN_DIR}/grand"
[scope]="4"
[test_gen_path]="${TEST_GEN_DIR}/grand.als"
[test_path]="${TEST_DIR}/grand.als"
)
declare -g -A handshake=(
[model_name]="handshake"
[model_path]="${MODEL_DIR}/handshake.als"
[mutant_dir_path]="${GEN_DIR}/handshake"
[scope]="5"
[test_gen_path]="${TEST_GEN_DIR}/handshake.als"
[test_path]="${TEST_DIR}/handshake.als"
)
declare -g -A nqueens=(
[model_name]="nqueens"
[model_path]="${MODEL_DIR}/nqueens.als"
[mutant_dir_path]="${GEN_DIR}/nqueens"
[scope]="4"
[test_gen_path]="${TEST_GEN_DIR}/nqueens.als"
[test_path]="${TEST_DIR}/nqueens.als"
)
declare -g -A other=(
[model_name]="other"
[model_path]="${MODEL_DIR}/other.als"
[mutant_dir_path]="${GEN_DIR}/other"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/other.als"
[test_path]="${TEST_DIR}/other.als"
)
declare -g -A singlyLinkedList=(
[model_name]="singlyLinkedList"
[model_path]="${MODEL_DIR}/singlyLinkedList.als"
[mutant_dir_path]="${GEN_DIR}/singlyLinkedList"
[scope]="3"
[test_gen_path]="${TEST_GEN_DIR}/singlyLinkedList.als"
[test_path]="${TEST_DIR}/singlyLinkedList.als"
)