added test server start script

This commit is contained in:
Matej Sekoranja
2012-11-19 11:17:19 +01:00
parent 33b8117c72
commit cd43aec39f
2 changed files with 20 additions and 1 deletions

2
TODO
View File

@@ -19,5 +19,5 @@ readSize checks if size is in limits of size_t?
void transportUnresponsive() { not implemented (also in Java)
socket termination - usage of epicsSocketSystemCallInterruptMechanismQuery() API

19
startTestServer Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
if [ "X$EPICS_BASE" = "X" ]; then
echo "Environment variable EPICS_BASE not set."
exit 1
fi
if [ "X$EPICS_HOST_ARCH" = "X" ]; then
EPICS_HOST_ARCH=`$EPICS_BASE/startup/EpicsHostArch`
if [ "X$EPICS_HOST_ARCH" = "X" ]; then
echo "Environment variable EPICS_HOST_ARCH not set, failed to auto-detect."
exit 1
fi
echo "Environment variable EPICS_HOST_ARCH not set, detected $EPICS_HOST_ARCH."
fi
# testServer
echo "Starting pvAccess C++ test server..."
./bin/$EPICS_HOST_ARCH/testServer