MCPcopy Create free account
hub / github.com/Singular/Singular / main

Function main

tests/main.cpp:45–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#include <tests/Suite.hpp>
44
45int main(int /* argc */, char ** /*argv*/)
46{
47 // Informiert Test-Listener ueber Testresultate
48 CPPUNIT_NS::TestResult testresult;
49 CPPUNIT_NS::TestResultCollector collectedresults;
50 testresult.addListener (&collectedresults);
51
52 // Test-Suite ueber die Registry im Test-Runner einfuegen
53 CPPUNIT_NS :: TestRunner runner;
54 runner.addTest ( Singular::tests::Suite::suite() );
55
56 std::cout << "running testsuite" << std::endl;
57
58 runner.run (testresult);
59
60 std::cout << "running testsuite done" << std::endl;
61 // print and save results
62 std::ofstream outStream("out.xml");
63 CPPUNIT_NS::XmlOutputter xmloutputter (&collectedresults, outStream);
64 xmloutputter.write ();
65
66 return collectedresults.wasSuccessful () ? 0 : 1;
67}

Callers

nothing calls this directly

Calls 3

addListenerMethod · 0.80
runMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected