164 lines
4.7 KiB
Makefile
164 lines
4.7 KiB
Makefile
#*************************************************************************
|
|
# Copyright (c) 2006 The University of Chicago, as Operator of Argonne
|
|
# National Laboratory.
|
|
# Copyright (c) 2002 The Regents of the University of California, as
|
|
# Operator of Los Alamos National Laboratory.
|
|
# EPICS BASE is distributed subject to a Software License Agreement found
|
|
# in file LICENSE that is included with this distribution.
|
|
#*************************************************************************
|
|
TOP=../../..
|
|
|
|
include $(TOP)/configure/CONFIG
|
|
|
|
PROD_LIBS += Com
|
|
|
|
TESTPROD_HOST += epicsUnitTestTest
|
|
epicsUnitTestTest_SRCS += epicsUnitTestTest.c
|
|
# Not much point running this on vxWorks or RTEMS...
|
|
TESTS += epicsUnitTestTest
|
|
|
|
TESTPROD_HOST += epicsCalcTest
|
|
epicsCalcTest_SRCS += epicsCalcTest.cpp
|
|
testHarness_SRCS += epicsCalcTest.cpp
|
|
TESTS += epicsCalcTest
|
|
|
|
TESTPROD_HOST += epicsAlgorithmTest
|
|
epicsAlgorithmTest_SRCS += epicsAlgorithmTest.cpp
|
|
testHarness_SRCS += epicsAlgorithmTest.cpp
|
|
TESTS += epicsAlgorithmTest
|
|
|
|
TESTPROD_HOST += epicsMathTest
|
|
epicsMathTest_SRCS += epicsMathTest.c
|
|
testHarness_SRCS += epicsMathTest.c
|
|
TESTS += epicsMathTest
|
|
|
|
TESTPROD_HOST += epicsStdioTest
|
|
epicsStdioTest_SRCS += epicsStdioTest.c
|
|
testHarness_SRCS += epicsStdioTest.c
|
|
TESTS += epicsStdioTest
|
|
|
|
TESTPROD_HOST += epicsStringTest
|
|
epicsStringTest_SRCS += epicsStringTest.c
|
|
testHarness_SRCS += epicsStringTest.c
|
|
TESTS += epicsStringTest
|
|
|
|
TESTPROD_HOST += epicsTimeTest
|
|
epicsTimeTest_SRCS += epicsTimeTest.cpp
|
|
testHarness_SRCS += epicsTimeTest.cpp
|
|
TESTS += epicsTimeTest
|
|
|
|
TESTPROD_HOST += epicsThreadTest
|
|
epicsThreadTest_SRCS += epicsThreadTest.cpp
|
|
testHarness_SRCS += epicsThreadTest.cpp
|
|
TESTS += epicsThreadTest
|
|
|
|
TESTPROD_HOST += epicsThreadPriorityTest
|
|
epicsThreadPriorityTest_SRCS += epicsThreadPriorityTest.cpp
|
|
testHarness_SRCS += epicsThreadPriorityTest.cpp
|
|
TESTS += epicsThreadPriorityTest
|
|
|
|
TESTPROD_HOST += epicsThreadPrivateTest
|
|
epicsThreadPrivateTest_SRCS += epicsThreadPrivateTest.cpp
|
|
testHarness_SRCS += epicsThreadPrivateTest.cpp
|
|
TESTS += epicsThreadPrivateTest
|
|
|
|
TESTPROD_HOST += epicsExitTest
|
|
epicsExitTest_SRCS += epicsExitTest.c
|
|
testHarness_SRCS += epicsExitTest.c
|
|
TESTS += epicsExitTest
|
|
|
|
TESTPROD_HOST += epicsTimerTest
|
|
epicsTimerTest_SRCS += epicsTimerTest.cpp
|
|
testHarness_SRCS += epicsTimerTest.cpp
|
|
# Some of this is doing measurement, tests fail...
|
|
TESTS += epicsTimerTest
|
|
|
|
TESTPROD_HOST += ringPointerTest
|
|
ringPointerTest_SRCS += ringPointerTest.c
|
|
testHarness_SRCS += ringPointerTest.c
|
|
TESTS += ringPointerTest
|
|
|
|
TESTPROD_HOST += epicsEventTest
|
|
epicsEventTest_SRCS += epicsEventTest.cpp
|
|
testHarness_SRCS += epicsEventTest.cpp
|
|
TESTS += epicsEventTest
|
|
|
|
TESTPROD_HOST += epicsMutexTest
|
|
epicsMutexTest_SRCS += epicsMutexTest.cpp
|
|
testHarness_SRCS += epicsMutexTest.cpp
|
|
TESTS += epicsMutexTest
|
|
|
|
TESTPROD_HOST += epicsExceptionTest
|
|
epicsExceptionTest_SRCS += epicsExceptionTest.cpp
|
|
testHarness_SRCS += epicsExceptionTest.cpp
|
|
TESTS += epicsExceptionTest
|
|
|
|
TESTPROD_HOST += epicsMessageQueueTest
|
|
epicsMessageQueueTest_SRCS += epicsMessageQueueTest.cpp
|
|
testHarness_SRCS += epicsMessageQueueTest.cpp
|
|
TESTS += epicsMessageQueueTest
|
|
|
|
TESTPROD_HOST += macEnvExpandTest
|
|
macEnvExpandTest_SRCS += macEnvExpandTest.c
|
|
testHarness_SRCS += macEnvExpandTest.c
|
|
TESTS += macEnvExpandTest
|
|
|
|
|
|
# The testHarness runs all the test programs in a known working order.
|
|
testHarness_SRCS += epicsRunLibComTests.c
|
|
|
|
PROD_vxWorks = vxTestHarness
|
|
vxTestHarness_SRCS += $(testHarness_SRCS)
|
|
vxTestHarness_OBJS += $(INSTALL_BIN)/vxComLibrary
|
|
|
|
PROD_RTEMS += rtemsTestHarness
|
|
rtemsTestHarness_SRCS += rtemsTestHarness.c
|
|
rtemsTestHarness_SRCS += $(testHarness_SRCS)
|
|
|
|
|
|
TEST_SCRIPTS += $(TESTS:%=%.t)
|
|
|
|
|
|
# The following are not test programs, they measure performance
|
|
|
|
TESTPROD_HOST += epicsThreadPerform
|
|
epicsThreadPerform_SRCS += epicsThreadPerform.cpp
|
|
testHarness_SRCS += epicsThreadPerform.cpp
|
|
|
|
TESTPROD_HOST += epicsMaxThreads
|
|
epicsMaxThreads_SRCS += epicsMaxThreads.c
|
|
testHarness_SRCS += epicsMaxThreads.c
|
|
|
|
TESTPROD_HOST += blockingSockTest
|
|
blockingSockTest_SRCS += blockingSockTest.cpp
|
|
testHarness_SRCS += blockingSockTest.cpp
|
|
# needed when its an object library build
|
|
blockingSockTest_SYS_LIBS_WIN32 = ws2_32 advapi32 user32
|
|
blockingSockTest_SYS_LIBS_solaris = socket
|
|
|
|
TESTPROD_HOST += buckTest
|
|
buckTest_SRCS += buckTest.c
|
|
testHarness_SRCS += buckTest.c
|
|
|
|
#TESTPROD_HOST += fdmgrTest
|
|
fdmgrTest_SRCS += fdmgrTest.c
|
|
fdmgrTest_LIBS += ca
|
|
# FIXME: program never exits.
|
|
|
|
|
|
include $(TOP)/configure/RULES
|
|
|
|
test: $(TEST_SCRIPTS)
|
|
perl -e 'use Test::Harness; runtests @ARGV;' $(TEST_SCRIPTS)
|
|
|
|
# If there's a perl test script (.plt) available, use it
|
|
%.t: ../%.plt
|
|
@$(RM) $@
|
|
@$(CP) $< $@
|
|
|
|
# Some versions of Test::Harness expect test programs in perl only.
|
|
# Generate a 1-line test program to run the real test binary
|
|
%.t: %$(EXE)
|
|
@$(RM) $@
|
|
@echo 'exec "./$<";' >$@
|