Skip to content

Commit

Permalink
Use GZoltar for the ignored TSE bugs
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
andre15silva committed Oct 25, 2021
1 parent 2244fb6 commit ce1521c
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public boolean testShouldBeRun() {
return true;
}

public void testTSEBug(String bug_id) throws Exception {
public void testTSEBug(String bud_id) throws Exception {
testTSEBug(bud_id, NopolContext.NopolLocalizer.FLACOCO);
}

public void testTSEBug(String bug_id, NopolContext.NopolLocalizer localizer) throws Exception {
String folder = "unknown";
if (bug_id.startsWith("cm") || bug_id.startsWith("pm")) {
folder = "math";
Expand Down Expand Up @@ -70,19 +74,19 @@ public void testTSEBug(String bug_id) throws Exception {
nopolContext.setType(RepairType.CONDITIONAL);
}
SolverFactory.setSolver("z3", TestUtility.solverPath);
nopolContext.setLocalizer(localizer);
NoPol nopol = new NoPol(nopolContext);
NopolResult result = nopol.build();

assertEquals(1, result.getPatches().size());
}

/**
* Ignored due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
* Uses GZoltar due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
*/
@Ignore
@Test(timeout = TIMEOUT)
public void test_cm1() throws Exception {
if (testShouldBeRun()) testTSEBug("cm1");
if (testShouldBeRun()) testTSEBug("cm1", NopolContext.NopolLocalizer.GZOLTAR);
}

@Test(timeout = TIMEOUT)
Expand Down Expand Up @@ -135,13 +139,12 @@ public void test_cl1() throws Exception {
}

/**
* Ignored due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
* Uses GZoltar due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
*/
@Ignore
@Test(timeout = TIMEOUT)
public void test_cl2() throws Exception {
if (testShouldBeRun())
testTSEBug("cl2");
testTSEBug("cl2", NopolContext.NopolLocalizer.GZOLTAR);
}

@Test(timeout = TIMEOUT)
Expand All @@ -151,13 +154,12 @@ public void test_cl3() throws Exception {
}

/**
* Ignored due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
* Uses GZoltar due to issue with flacoco (see https://github.com/SpoonLabs/nopol/pull/220#issuecomment-926641347)
*/
@Ignore
@Test(timeout = TIMEOUT)
public void test_cl4() throws Exception {
if (testShouldBeRun())
testTSEBug("cl4");
testTSEBug("cl4", NopolContext.NopolLocalizer.GZOLTAR);
}

@Test(timeout = TIMEOUT)
Expand Down

0 comments on commit ce1521c

Please sign in to comment.