3
3
# This is a generic script for firing up a server, waiting for it to write
4
4
# its stringified IOR to a file, then firing up a server
6
# We had issues creating this once, and it gives us a 'clean' slate.
7
rm -Rf "/tmp/orbit-$USER"
9
for params in '--ORBIIOPIPv4=0 --ORBIIOPUSock=1' '--ORBIIOPIPv4=1 --ORBIIOPUSock=0' ; do
6
if test "z$ORBIT_TMPDIR" = "z"; then
7
ORBIT_TMPDIR="/tmp/orbit-$USER/tst"
14
# 100: socket path max - Posix.1g
15
SAMPLE_NAME="$ORBIT_TMPDIR/orbit-$USER/linc-78fe-0-14c0fc671d5b4";
16
echo "Sample name: '$SAMPLE_NAME'"
17
if (test ${#SAMPLE_NAME} -gt 100); then
18
echo "Socket directory path '$ORBIT_TMPDIR' too long for bind";
21
echo "Running with socketdir: '$ORBIT_TMPDIR'";
13
30
until test -s iorfile; do sleep 1; done
15
if ./client $params; then
16
33
echo "============================================================="
17
echo "Test passed with params: $params"
34
echo "Test passed with params: $1"
18
35
echo "============================================================="
21
38
echo "============================================================="
22
echo "Test failed with params: $params"
39
echo "Test failed with params: $1"
40
echo " if this is an IPv4 test, can you ping `hostname` ?"
23
41
echo "============================================================="
43
test x"$DONT_EXIT" = x && exit 1
48
for params in '--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --ORBCorbaloc=1' \
49
'--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --thread-tests' \
50
'--ORBIIOPIPv4=1 --ORBIIOPUSock=0' \
51
'--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --thread-safe' \
52
'--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --gen-imodule'
58
# Don't run the Unix domain socket tests on Windows
59
if test x"$WINDIR" = x; then
60
for params in '--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --ORBCorbaloc=1' \
61
'--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --thread-tests' \
62
'--ORBIIOPIPv4=0 --ORBIIOPUSock=1' \
63
'--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --thread-safe' \
64
'--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --gen-imodule'