Mercurial > hg > svcore
comparison base/test/svcore-base-test.cpp @ 1742:52705a328b34 by-id
Rejig ById so as to put everything in a single pool, so that at the core you can go from numeric id (untyped) to anything the object can be dynamic_cast to. Useful for building other abstractions like PlayParameter-type registrations that don't know about e.g. Models. Probably some more tweaking needed. Also add tests
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:36:30 +0100 |
parents | 172bd3374adf |
children |
comparison
equal
deleted
inserted
replaced
1741:9d82b164f264 | 1742:52705a328b34 |
---|---|
18 #include "TestStringBits.h" | 18 #include "TestStringBits.h" |
19 #include "TestOurRealTime.h" | 19 #include "TestOurRealTime.h" |
20 #include "TestVampRealTime.h" | 20 #include "TestVampRealTime.h" |
21 #include "TestColumnOp.h" | 21 #include "TestColumnOp.h" |
22 #include "TestMovingMedian.h" | 22 #include "TestMovingMedian.h" |
23 #include "TestById.h" | |
23 #include "TestEventSeries.h" | 24 #include "TestEventSeries.h" |
24 #include "StressEventSeries.h" | 25 #include "StressEventSeries.h" |
25 | 26 |
26 #include "system/Init.h" | 27 #include "system/Init.h" |
27 | 28 |
89 { | 90 { |
90 TestEventSeries t; | 91 TestEventSeries t; |
91 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 92 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
92 else ++bad; | 93 else ++bad; |
93 } | 94 } |
94 /* | 95 { |
96 TestById t; | |
97 if (QTest::qExec(&t, argc, argv) == 0) ++good; | |
98 else ++bad; | |
99 } | |
100 | |
101 #ifdef NOT_DEFINED | |
95 { | 102 { |
96 StressEventSeries t; | 103 StressEventSeries t; |
97 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 104 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
98 else ++bad; | 105 else ++bad; |
99 } | 106 } |
100 */ | 107 #endif |
101 | 108 |
102 if (bad > 0) { | 109 if (bad > 0) { |
103 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; | 110 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
104 return 1; | 111 return 1; |
105 } else { | 112 } else { |