Support more than one target
This commit is contained in:
parent
ebfcdc6b9a
commit
96724fd042
|
@ -81,7 +81,7 @@ _test()
|
|||
#usage
|
||||
_usage()
|
||||
{
|
||||
echo "Usage: $PROGNAME [-c][-P prefix] target" 1>&2
|
||||
echo "Usage: $PROGNAME [-c][-P prefix] target..." 1>&2
|
||||
return 1
|
||||
}
|
||||
|
||||
|
@ -103,11 +103,14 @@ while getopts "cP:" name; do
|
|||
esac
|
||||
done
|
||||
shift $((OPTIND - 1))
|
||||
if [ $# -ne 1 ]; then
|
||||
if [ $# -eq 0 ]; then
|
||||
_usage
|
||||
exit $?
|
||||
fi
|
||||
|
||||
while [ $# -ne 0 ]; do
|
||||
target="$1"
|
||||
shift
|
||||
|
||||
[ "$clean" -ne 0 ] && exit 0
|
||||
|
||||
|
@ -124,9 +127,11 @@ APPINTERFACE_Dummy=../data/Dummy.interface \
|
|||
_test "appserver" "appserver" -a "Dummy"
|
||||
_test "includes" "includes"
|
||||
APPINTERFACE_Test=Test.interface \
|
||||
_test "lookup" "lookup Test tcp" -a "Test" -n "tcp:localhost:4242"
|
||||
_test "lookup" "lookup Test tcp" -a "Test" \
|
||||
-n "tcp:localhost:4242"
|
||||
APPINTERFACE_Test=Test.interface \
|
||||
_test "lookup" "lookup Test tcp4" -a "Test" -n "tcp4:localhost:4242"
|
||||
_test "lookup" "lookup Test tcp4" -a "Test" \
|
||||
-n "tcp4:localhost:4242"
|
||||
APPSERVER_Session="tcp:localhost:4242" _test "lookup" "lookup Session" \
|
||||
-a "Session"
|
||||
_test "pkgconfig.sh" "pkg-config"
|
||||
|
@ -157,3 +162,4 @@ if [ -n "$FAILED" ]; then
|
|||
exit 2
|
||||
fi
|
||||
echo "All tests completed" 1>&2
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user