Skip to content

Commit a2b6793

Browse files
authored
First commit
Setting up and testing Defects4J with GZoltar
1 parent 5001caf commit a2b6793

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,47 @@
11
# FaultLocalizationResearch
2+
3+
4+
5+
For Mac
6+
7+
Step 1: Set up Defects4J
8+
9+
Refer https://github.com/rjust/defects4j
10+
Clone the repository
11+
Follow documentation steps
12+
Error:Can't Locate DBI.pm
13+
Resolution: perl -MCPAN -e 'install DBI'
14+
Install Postgres if required.
15+
16+
Step 2: Clone the repo https://bitbucket.org/rjust/fault-localization-data/overview
17+
18+
Step 3: Download and install JDK 1.6 and JDK 1.8.
19+
20+
Step 4: Set evnironment variables
21+
22+
The path of defects4j installed in step 1
23+
export D4J_HOME=/Users/{username}/Downloads/defects4j
24+
25+
The path to this root directory of the cloned repo fault-localization-data and append 'gzoltar/gzoltar.jar'
26+
export GZOLTAR_JAR=/Users/{username}/Downloads/fault-localization-data/gzoltar/gzoltar.jar
27+
28+
Set JAVA_HOME to point to JDK1.6 Home if you have a different Java default version
29+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
30+
31+
Add to PATH variable
32+
export PATH=$PATH:$D4J_HOME/framework/bin
33+
34+
35+
Step 6:
36+
Replace the run_gzoltar.sh provided in this repository in fault-localization-data/gzoltar/gzoltar
37+
38+
Step 5: Test if set up works
39+
40+
Test defects4j
41+
42+
defects4j info -p Lang
43+
44+
Test Gzoltar
45+
46+
`bash run_gzoltar.sh Lang 37 . developer`
47+

0 commit comments

Comments
 (0)