fixup tests for RTEMS
This commit is contained in:
@ -16,6 +16,8 @@ PROD_SYS_LIBS_WIN32 += netapi32 ws2_32
|
|||||||
include $(PVACCESS_TEST)/utils/Makefile
|
include $(PVACCESS_TEST)/utils/Makefile
|
||||||
include $(PVACCESS_TEST)/remote/Makefile
|
include $(PVACCESS_TEST)/remote/Makefile
|
||||||
|
|
||||||
|
PROD_SRCS_RTEMS += rtemsTestData.c
|
||||||
|
|
||||||
# pvAccessAllTests runs all the test programs in a known working order.
|
# pvAccessAllTests runs all the test programs in a known working order.
|
||||||
testHarness_SRCS += pvAccessAllTests.c
|
testHarness_SRCS += pvAccessAllTests.c
|
||||||
|
|
||||||
@ -34,4 +36,9 @@ TESTSPEC_RTEMS = pvaTestHarness.$(MUNCH_SUFFIX); pvAccessAllTests
|
|||||||
# Build test scripts for hosts
|
# Build test scripts for hosts
|
||||||
TESTSCRIPTS_HOST += $(TESTS:%=%.t)
|
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
|
include $(TOP)/configure/RULES
|
||||||
|
@ -2819,7 +2819,7 @@ int main(int argc, char *argv[])
|
|||||||
.build()));
|
.build()));
|
||||||
TestServer::ctx = srv;
|
TestServer::ctx = srv;
|
||||||
srv->context->printInfo();
|
srv->context->printInfo();
|
||||||
srv->context->run(epics::pvData::castUnsafe<epicsUInt32>(timeToRun));
|
srv->context->run(epics::pvData::castUnsafe<uint32>(timeToRun));
|
||||||
|
|
||||||
cout << "Done" << endl;
|
cout << "Done" << endl;
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include <epicsUnitTest.h>
|
#include <epicsUnitTest.h>
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
using namespace epics::pvAccess;
|
using namespace epics::pvAccess;
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@ -61,8 +63,12 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void testServerContext()
|
} // namespace
|
||||||
|
|
||||||
|
MAIN(testServerContext)
|
||||||
{
|
{
|
||||||
|
testPlan(2);
|
||||||
|
|
||||||
ChannelProvider::shared_pointer prov(new TestChannelProvider);
|
ChannelProvider::shared_pointer prov(new TestChannelProvider);
|
||||||
ServerContext::shared_pointer ctx(ServerContext::create(ServerContext::Config()
|
ServerContext::shared_pointer ctx(ServerContext::create(ServerContext::Config()
|
||||||
.provider(prov)));
|
.provider(prov)));
|
||||||
@ -77,13 +83,6 @@ void testServerContext()
|
|||||||
ctx.reset();
|
ctx.reset();
|
||||||
|
|
||||||
testOk(!wctx.lock(), "# ServerContext cleanup leaves use_count=%u", (unsigned)wctx.use_count());
|
testOk(!wctx.lock(), "# ServerContext cleanup leaves use_count=%u", (unsigned)wctx.use_count());
|
||||||
}
|
|
||||||
|
|
||||||
MAIN(testServerContext)
|
|
||||||
{
|
|
||||||
testPlan(2);
|
|
||||||
|
|
||||||
testServerContext();
|
|
||||||
|
|
||||||
return testDone();
|
return testDone();
|
||||||
}
|
}
|
||||||
|
2
testApp/rtemsTestData.c
Normal file
2
testApp/rtemsTestData.c
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/* no test data */
|
||||||
|
const void* epicsRtemsFSImage = 0;
|
@ -8,12 +8,12 @@ testHarness_SRCS += testAtomicBoolean.cpp
|
|||||||
TESTS += testAtomicBoolean
|
TESTS += testAtomicBoolean
|
||||||
|
|
||||||
TESTPROD_HOST += testHexDump
|
TESTPROD_HOST += testHexDump
|
||||||
testHexDump = testHexDump.cpp
|
testHexDump_SRCS = testHexDump.cpp
|
||||||
testHarness_SRCS += testHexDump.cpp
|
testHarness_SRCS += testHexDump.cpp
|
||||||
TESTS += testHexDump
|
TESTS += testHexDump
|
||||||
|
|
||||||
TESTPROD_HOST += testInetAddressUtils
|
TESTPROD_HOST += testInetAddressUtils
|
||||||
testInetAddressUtils = testInetAddressUtils.cpp
|
testInetAddressUtils_SRCS = testInetAddressUtils.cpp
|
||||||
testHarness_SRCS += testInetAddressUtils.cpp
|
testHarness_SRCS += testInetAddressUtils.cpp
|
||||||
TESTS += testInetAddressUtils
|
TESTS += testInetAddressUtils
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ testFairQueue_SRCS += testFairQueue
|
|||||||
TESTS += testFairQueue
|
TESTS += testFairQueue
|
||||||
|
|
||||||
TESTPROD_HOST += testWildcard
|
TESTPROD_HOST += testWildcard
|
||||||
testWildcard = testWildcard.cpp
|
testWildcard_SRCS = testWildcard.cpp
|
||||||
testHarness_SRCS += testWildcard.cpp
|
testHarness_SRCS += testWildcard.cpp
|
||||||
TESTS += testWildcard
|
TESTS += testWildcard
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user