use of org.btrplace.safeplace.testing.TestCampaign in project scheduler by btrplace.
the class DSN method fuzzingSizing.
// //@Test
public void fuzzingSizing() throws Exception {
TestScanner sc = newScanner();
Path path = Paths.get(root, "fuzz.csv");
Files.deleteIfExists(path);
for (int p = 100; p <= 1000; p += 100) {
for (int s = 2; s <= 20; s += 2) {
System.out.println("--- Population: " + p + " scale: " + s + " ---");
Bench.report = new CSVReport(path, Integer.toString(p));
Bench.population = p;
Bench.scale = s;
List<TestCampaign> campaigns = sc.testGroups("sides");
if (campaigns.isEmpty()) {
Assert.fail("Nothing to test");
}
campaigns.stream().forEach(c -> System.out.println(c.go().toString()));
}
}
}
Aggregations