Conversation
|
+900/-2800 looks good :) |
|
I think you can also delete the unused Btw. in if (exitCode != 0) {
String error = new String(process.getErrorStream().readAllBytes());
logger.warn("Dartagnan finished with exit code {}. Error:", exitCode, error); // Missing "{}" at the end.
}Also, why is the |
|
I would rather do the opposite. As I see it, the
|
|
I didn't know that the unit tests use the same packages as the main code... |
|
How about moving the test utilities into a new package |
|
That's fine with me. |
2a7548a to
21686a7
Compare
Merge AbstractProvider into Provider Remove unused utilities Refactor TestHelper.runDartagnanApplication(Path,Path,String...)
e831566 to
89f1d59
Compare
Performance comparisonLinux x64Benchmark detailsMemory model: vmm
Memory model: power
Memory model: aarch64
Total
7 benchmark(s) omitted because both averages were below 5 seconds. macOS ARM64Benchmark detailsMemory model: vmm
Memory model: aarch64
Memory model: power
Total
|
(Originally, there was no general timeout on these tests.)
Changes multiple parts in the testing package of Dartagnan.
testAssumeandtestRefinement. Those who had just one enabled before failorg.junit.Assume.assumeTrueto skip the other method. (This can be undone.)Providerclass, only leavingProvider<ShutdownManager>.Changes to the test suite hierarchy
AbstractComparisonTestAbstractCompilationTestAbstractVerificationTaskSolverTest(new)AbstractAsmTest(new, 6 existing subclasses)AbstractCTestAbstractLitmusTestArrayValidTest,BranchTest(+ existing subclasses)AbstractSpirvTest(new)AbstractSpirvOpenclTest(new, 11 existing subclasses)AbstractSpirvVulkanTest(new, 12 existing subclasses)Changes to the test utilities
com.dat3m.dartagnan.testProgram TestHelper.parseProgram(Path)Wmm TestHelper.parseWmm(Path)Path ResourceHelper.getCatPath(Arch,String)Ideas for further changes
AbstractComparisonTestandAbstractCompilationTestcould extendAbstractVerificationTaskSolverTest. The source task solver would provide an optionalexpectedvalue for the target task solver.