Search in sources :

Example 1 with TestCampaign

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()));
        }
    }
}
Also used : Path(java.nio.file.Path) TestScanner(org.btrplace.safeplace.testing.TestScanner) CSVReport(org.btrplace.safeplace.testing.reporting.CSVReport) TestCampaign(org.btrplace.safeplace.testing.TestCampaign) Constraint(org.btrplace.safeplace.spec.Constraint)

Aggregations

Path (java.nio.file.Path)1 Constraint (org.btrplace.safeplace.spec.Constraint)1 TestCampaign (org.btrplace.safeplace.testing.TestCampaign)1 TestScanner (org.btrplace.safeplace.testing.TestScanner)1 CSVReport (org.btrplace.safeplace.testing.reporting.CSVReport)1