fixup tests for RTEMS

This commit is contained in:
Michael Davidsaver
2020-11-22 11:53:44 -08:00
parent 01637cfbbe
commit 597f168b9c
5 changed files with 20 additions and 12 deletions

View File

@ -16,6 +16,8 @@ PROD_SYS_LIBS_WIN32 += netapi32 ws2_32
include $(PVACCESS_TEST)/utils/Makefile
include $(PVACCESS_TEST)/remote/Makefile
PROD_SRCS_RTEMS += rtemsTestData.c
# pvAccessAllTests runs all the test programs in a known working order.
testHarness_SRCS += pvAccessAllTests.c
@ -34,4 +36,9 @@ TESTSPEC_RTEMS = pvaTestHarness.$(MUNCH_SUFFIX); pvAccessAllTests
# Build test scripts for hosts
TESTSCRIPTS_HOST += $(TESTS:%=%.t)
ifneq ($(filter $(T_A),$(CROSS_COMPILER_RUNTEST_ARCHS)),)
TESTPROD = $(TESTPROD_HOST)
TESTSCRIPTS += $(filter-out showauth,$(TESTS:%=%.t))
endif
include $(TOP)/configure/RULES

View File

@ -2819,7 +2819,7 @@ int main(int argc, char *argv[])
.build()));
TestServer::ctx = srv;
srv->context->printInfo();
srv->context->run(epics::pvData::castUnsafe<epicsUInt32>(timeToRun));
srv->context->run(epics::pvData::castUnsafe<uint32>(timeToRun));
cout << "Done" << endl;

View File

@ -8,6 +8,8 @@
#include <epicsUnitTest.h>
namespace {
using namespace epics::pvAccess;
using namespace epics::pvData;
using namespace std;
@ -61,8 +63,12 @@ public:
}
};
void testServerContext()
} // namespace
MAIN(testServerContext)
{
testPlan(2);
ChannelProvider::shared_pointer prov(new TestChannelProvider);
ServerContext::shared_pointer ctx(ServerContext::create(ServerContext::Config()
.provider(prov)));
@ -77,13 +83,6 @@ void testServerContext()
ctx.reset();
testOk(!wctx.lock(), "# ServerContext cleanup leaves use_count=%u", (unsigned)wctx.use_count());
}
MAIN(testServerContext)
{
testPlan(2);
testServerContext();
return testDone();
}

2
testApp/rtemsTestData.c Normal file
View File

@ -0,0 +1,2 @@
/* no test data */
const void* epicsRtemsFSImage = 0;

View File

@ -8,12 +8,12 @@ testHarness_SRCS += testAtomicBoolean.cpp
TESTS += testAtomicBoolean
TESTPROD_HOST += testHexDump
testHexDump = testHexDump.cpp
testHexDump_SRCS = testHexDump.cpp
testHarness_SRCS += testHexDump.cpp
TESTS += testHexDump
TESTPROD_HOST += testInetAddressUtils
testInetAddressUtils = testInetAddressUtils.cpp
testInetAddressUtils_SRCS = testInetAddressUtils.cpp
testHarness_SRCS += testInetAddressUtils.cpp
TESTS += testInetAddressUtils
@ -27,7 +27,7 @@ testFairQueue_SRCS += testFairQueue
TESTS += testFairQueue
TESTPROD_HOST += testWildcard
testWildcard = testWildcard.cpp
testWildcard_SRCS = testWildcard.cpp
testHarness_SRCS += testWildcard.cpp
TESTS += testWildcard