forked from TruX-DTF/TBar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkoutD4JBugs.sh
84 lines (75 loc) · 1.5 KB
/
checkoutD4JBugs.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
#!/bin/bash
export PATH=$(pwd)/D4J/defects4j/framework/bin/:$PATH
dir=D4J/projects/ # Store the buggy projects.
proj=Chart
for bug in $(seq 1 26)
do
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done
proj=Lang
lang_deprecated=( 2 )
for bug in $(seq 1 65)
do
for deprecated in "${lang_deprecated[@]}"
do
if [ $bug == $deprecated ]
then
continue 2
fi
done
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done
proj=Math
for bug in $(seq 1 106)
do
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done
proj=Closure
closure_deprecated=( 63 93 )
for bug in $(seq 1 133)
do
for deprecated in "${closure_deprecated[@]}"
do
if [ $bug == $deprecated ]
then
continue 2
fi
done
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done
proj=Mockito
for bug in $(seq 1 38)
do
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done
proj=Time
time_deprecated=( 21 )
for bug in $(seq 1 27)
do
for deprecated in "${time_deprecated[@]}"
do
if [ $bug == $deprecated ]
then
continue 2
fi
done
defects4j checkout -p $proj -v ${bug}b -w ${dir}${proj}_${bug}
cd ${dir}${proj}_${bug}
defects4j compile
cd ../../../
done