diff options
Diffstat (limited to 'cpp/src/tests/run_test')
-rwxr-xr-x | cpp/src/tests/run_test | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/cpp/src/tests/run_test b/cpp/src/tests/run_test index bfd6991481..deb22b4450 100755 --- a/cpp/src/tests/run_test +++ b/cpp/src/tests/run_test @@ -1,12 +1,15 @@ #!/bin/sh # -# Run a test executable. Output nothing if test passes, -# show the output if it fails. Leave output in <test>.log for -# examination. +# Set up environment and run a test executable or script. +# +# Output nothing if test passes, show the output if it fails and +# leave output in <test>.log for examination. +# +# If qpidd.port exists run test with QPID_PORT=`cat qpidd.port` # -# If $VALGRIND if is set run under valgrind. If there are -# valgrind erros show valgrind output, also leave it in -# <test>.valgrind for examination. +# If $VALGRIND if is set run under valgrind. If there are valgrind +# erros show valgrind output, also leave it in <test>.valgrind for +# examination. # vg_failed() { @@ -33,6 +36,9 @@ vg_check() # Export variables from makefile. export VALGRIND srcdir +# Export QPID_PORT if qpidd.port exists. +test -f qpidd.port && export QPID_PORT=`cat qpidd.port` + VG_LOG="$1.vglog" TEST_LOG="$1.log" rm -f $VG_LOG $TEST_LOG |