vxWork tests for all subtests; still need to combine them all to one

This commit is contained in:
Matej Sekoranja
2014-10-31 07:57:20 -04:00
parent 2a8a1d3736
commit 80a537bc4c
12 changed files with 164 additions and 24 deletions
+14 -1
View File
@@ -2,11 +2,24 @@ TOP=../..
include $(TOP)/configure/CONFIG
PROD_LIBS = pvData Com
TESTPROD_HOST += testProperty
testProperty_SRCS += testProperty.cpp
testHarness_SRCS += testProperty.cpp
TESTS += testProperty
testProperty_LIBS += pvData Com
# The testHarness runs all the test programs in a known working order.
testHarness_SRCS += epicsRunPVDataTests.c
PROD_vxWorks = vxTestHarness
vxTestHarness_SRCS += $(testHarness_SRCS)
TESTSPEC_vxWorks = vxTestHarness.$(MUNCH_SUFFIX); epicsRunPVDataTests
#PROD_RTEMS += rtemsTestHarness
#rtemsTestHarness_SRCS += rtemsTestHarness.c
#rtemsTestHarness_SRCS += $(testHarness_SRCS)
#TESTSPEC_RTEMS = rtemsTestHarness.boot; epicsRunPVDataTests
TESTSCRIPTS_HOST += $(TESTS:%=%.t)
+20
View File
@@ -0,0 +1,20 @@
/*
* Run pvData tests as a batch.
*
* Do *not* include performance measurements here, they don't help to
* prove functionality (which is the point of this convenience routine).
*/
#include <stdio.h>
#include <epicsThread.h>
#include <epicsUnitTest.h>
int testCreateRequest(void);
void epicsRunPVDataTests(void)
{
testHarness();
runTest(testCreateRequest);
}