Commit 02b95da5 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2881] Correção para que operações legadas lancem exceções corretas

- Correção nos ajustes para automação da execução dos testes dos serviços legados do núcleo sobre um barramento novo.



git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_00@169264 ae0415b3-e90b-0410-900d-d0be9363c56b
parent d4bea698
...@@ -4,10 +4,12 @@ mode=$1 ...@@ -4,10 +4,12 @@ mode=$1
testcase=$2 testcase=$2
services="server" services="server"
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 if [[ "$mode" == "DEBUG" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <test> [services...]" busconsole="$busconsole -d"
elif [[ "$mode" != "RELEASE" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <args>"
exit 1 exit 1
fi fi
...@@ -19,16 +21,16 @@ cd $testcase ...@@ -19,16 +21,16 @@ cd $testcase
pid= pid=
for service in $services; do for service in $services; do
echo "Starting service '$service' of test '$testcase'" echo "Starting service '$service' of test '$testcase'"
$runconsole $service.lua $testcase & $busconsole $service.lua $testcase &
pid="$pid $!" pid="$pid $!"
trap "kill $pid > /dev/null 2>&1" 0 trap "kill $pid > /dev/null 2>&1" 0
done done
echo -n "Executing test '$testcase' ... " echo -n "Executing test '$testcase' ... "
$runconsole client.lua $testcase $busconsole client.lua $testcase
echo "OK" echo "OK"
cd ../../test cd ../../test
echo -n "Test protocol with server of test '$testcase' ... " echo -n "Test protocol with server of test '$testcase' ... "
$runconsole openbus/test/Protocol.lua $busconsole openbus/test/Protocol.lua
echo "OK" echo "OK"
cd ../interop 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