Hostnames that begin with one or more digits were not being looked up by name, causing problems at BNL. This commit also changes the vxWorks implementation of hostToIPAddr() to use inet_aton() instead of inet_addr().
117 lines
2.5 KiB
C
117 lines
2.5 KiB
C
/*************************************************************************\
|
|
* Copyright (c) 2010 UChicago Argonne LLC, as Operator of Argonne
|
|
* National Laboratory.
|
|
* EPICS BASE is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
\*************************************************************************/
|
|
|
|
/*
|
|
* Run libCom 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 epicsThreadTest(void);
|
|
int epicsTimerTest(void);
|
|
int epicsAlgorithm(void);
|
|
int epicsEllTest(void);
|
|
int epicsErrlogTest(void);
|
|
int epicsCalcTest(void);
|
|
int epicsEventTest(void);
|
|
int epicsExceptionTest(void);
|
|
int epicsMathTest(void);
|
|
int epicsMessageQueueTest(void);
|
|
int epicsMutexTest(void);
|
|
int epicsStdioTest(void);
|
|
int epicsStdlibTest(void);
|
|
int epicsStringTest(void);
|
|
int epicsThreadOnceTest(void);
|
|
int epicsThreadPriorityTest(void);
|
|
int epicsThreadPrivateTest(void);
|
|
int epicsThreadHooksTest(void);
|
|
int epicsTimeTest(void);
|
|
int epicsTypesTest(void);
|
|
int macLibTest(void);
|
|
int macEnvExpandTest(void);
|
|
int ringPointerTest(void);
|
|
int ringBytesTest(void);
|
|
int blockingSockTest(void);
|
|
int epicsSockResolveTest(void);
|
|
int taskwdTest(void);
|
|
int epicsExitTest(void);
|
|
|
|
void epicsRunLibComTests(void)
|
|
{
|
|
testHarness();
|
|
|
|
/*
|
|
* Thread startup sets some internal variables so do it first
|
|
*/
|
|
runTest(epicsThreadTest);
|
|
|
|
/*
|
|
* Timer tests get confused if run after some of the other tests
|
|
*/
|
|
runTest(epicsTimerTest);
|
|
|
|
runTest(epicsAlgorithm);
|
|
|
|
runTest(epicsEllTest);
|
|
|
|
runTest(epicsErrlogTest);
|
|
|
|
runTest(epicsCalcTest);
|
|
|
|
runTest(epicsEventTest);
|
|
|
|
runTest(epicsExceptionTest);
|
|
|
|
runTest(epicsMathTest);
|
|
|
|
runTest(epicsMessageQueueTest);
|
|
|
|
runTest(epicsMutexTest);
|
|
|
|
runTest(epicsStdioTest);
|
|
|
|
runTest(epicsStdlibTest);
|
|
|
|
runTest(epicsStringTest);
|
|
|
|
runTest(epicsThreadOnceTest);
|
|
|
|
runTest(epicsThreadPriorityTest);
|
|
|
|
runTest(epicsThreadPrivateTest);
|
|
|
|
runTest(epicsThreadHooksTest);
|
|
|
|
runTest(epicsTimeTest);
|
|
|
|
runTest(epicsTypesTest);
|
|
|
|
runTest(macLibTest);
|
|
|
|
runTest(macEnvExpandTest);
|
|
|
|
runTest(ringPointerTest);
|
|
|
|
runTest(ringBytesTest);
|
|
|
|
runTest(blockingSockTest);
|
|
|
|
runTest(epicsSockResolveTest);
|
|
|
|
runTest(taskwdTest);
|
|
|
|
/*
|
|
* Exit must come last as it never returns
|
|
*/
|
|
runTest(epicsExitTest);
|
|
}
|