Mercurial > hg > svcore
diff base/test/svcore-base-test.cpp @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 48e9f538e6e9 |
children | f04038819c26 |
line wrap: on
line diff
--- a/base/test/svcore-base-test.cpp Mon Dec 12 15:18:52 2016 +0000 +++ b/base/test/svcore-base-test.cpp Mon Sep 17 13:51:14 2018 +0100 @@ -11,8 +11,10 @@ COPYING included with this distribution for more information. */ +#include "TestLogRange.h" #include "TestRangeMapper.h" #include "TestPitch.h" +#include "TestScaleTickIntervals.h" #include "TestStringBits.h" #include "TestOurRealTime.h" #include "TestVampRealTime.h" @@ -27,45 +29,55 @@ int good = 0, bad = 0; QCoreApplication app(argc, argv); - app.setOrganizationName("Sonic Visualiser"); + app.setOrganizationName("sonic-visualiser"); app.setApplicationName("test-svcore-base"); { - TestRangeMapper t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + TestRangeMapper t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } { - TestPitch t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + TestPitch t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } { TestOurRealTime t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } { TestVampRealTime t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } { - TestStringBits t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + TestStringBits t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } { - TestColumnOp t; - if (QTest::qExec(&t, argc, argv) == 0) ++good; - else ++bad; + TestColumnOp t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; + } + { + TestLogRange t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; + } + { + TestScaleTickIntervals t; + if (QTest::qExec(&t, argc, argv) == 0) ++good; + else ++bad; } if (bad > 0) { - cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; - return 1; + SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; + return 1; } else { - cerr << "All tests passed" << endl; - return 0; + SVCERR << "All tests passed" << endl; + return 0; } }