diff options
Diffstat (limited to 'tikzit/src/test/testmain.cpp')
-rw-r--r-- | tikzit/src/test/testmain.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tikzit/src/test/testmain.cpp b/tikzit/src/test/testmain.cpp new file mode 100644 index 0000000..613be7a --- /dev/null +++ b/tikzit/src/test/testmain.cpp @@ -0,0 +1,19 @@ +#include "testtest.h" +#include "testparser.h" + +#include <QTest> +#include <QDebug> +#include <iostream> + +int main(int argc, char *argv[]) +{ + TestTest test; + TestParser parser; + int r = QTest::qExec(&test, argc, argv) | + QTest::qExec(&parser, argc, argv); + + if (r == 0) std::cout << "***************** All tests passed! *****************\n"; + else std::cout << "***************** Some tests failed. *****************\n"; + + return r; +} |