run_test_sdp 412 Bytes
Newer Older
1 2 3 4 5 6 7 8
#! /bin/sh
#
# Run the sdp tests
#
# usage: run_test_sdp [test_program] [test-directory]
#

test_sdp="${1:-./test_sdp}"
9 10
sdp_path=`dirname $0`
tests="${2:-${sdp_path}/tests}"
11 12 13

if test -r $tests/message-1.sdp ; then

14
for n in 1 2 3 4 5 6 7 8 9 10 11;
15
do
16 17 18 19
    echo -n "$n: "
    "$test_sdp" < "$tests/message-$n.sdp" && echo OK
done

20
else
21 22
    echo "sdp run-tests: no tests found in $tests, skipping."
    exit 77
23
fi