Commit 9bb7ca9d authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

(MERGE) sdk/lua/branches/02_00_00 [169264]


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_01@169265 ae0415b3-e90b-0410-900d-d0be9363c56b
parents 6e82a8c3 02b95da5
......@@ -5,10 +5,12 @@ testcase=$2
tasks=$3
services=$4
runconsole="source ${OPENBUS_SDKLUA_TEST}/runconsole.sh $mode"
busconsole="env LUA_PATH=${OPENBUS_SDKLUA_TEST}/?.lua ${OPENBUS_SDKLUA_HOME}/bin/busconsole"
if [[ "$mode" != "DEBUG" && "$mode" != "RELEASE" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <tasks> <services>"
if [[ "$mode" == "DEBUG" ]]; then
busconsole="$busconsole -d"
elif [[ "$mode" != "RELEASE" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <args>"
exit 1
fi
......@@ -16,19 +18,19 @@ cd $testcase
pid=
for service in $services; do
echo "Starting service '$service' of test '$testcase'"
$runconsole $service.lua $testcase &
$busconsole $service.lua $testcase &
pid="$pid $!"
trap "kill $pid > /dev/null 2>&1" 0
done
for task in $tasks; do
echo -n "Executing task '$task' of test '$testcase' ... "
$runconsole $task.lua $testcase
$busconsole $task.lua $testcase
echo "OK"
done
cd ../../test
echo -n "Test protocol with server of test '$testcase' ... "
$runconsole openbus/test/Protocol.lua
$busconsole openbus/test/Protocol.lua
echo "OK"
cd ../interop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment