runtests.sh 714 Bytes
Newer Older
1 2 3 4
#!/bin/bash

mode=$1

5
runconsole="source ${OPENBUS_SDKLUA_TEST}/runconsole.sh $mode"
6

7
if [[ "$mode" != "DEBUG" && "$mode" != "RELEASE" ]]; then
8 9 10 11 12 13 14 15 16
	echo "Usage: $0 <RELEASE|DEBUG>"
	exit 1
fi

cases="\
openbus/test/util/tickets \
openbus/test/util/database \
openbus/test/NoLoginIceptorCalls \
openbus/test/Concurrency \
17
openbus/test/OnCallDispatch \
18 19 20 21 22 23 24 25 26 27
openbus/test/MakeChainFor \
openbus/test/ChainExport \
openbus/test/LoginLogout \
openbus/test/assistant/Concurrency \
openbus/test/assistant/NoLoginIceptorCalls \
openbus/test/assistant/LoginLogout \
openbus/test/assistant/AssistantLoginLogout \
"
for case in $cases; do
	echo -n "Test '${case}' ... "
28
	$runconsole $case.lua ${@:2:${#@}} || exit $?
29 30
	echo "OK"
done