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
testcase=$2
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
echo "Usage: $0 <RELEASE|DEBUG> <test> [services...]"
if [[ "$mode" == "DEBUG" ]]; then
busconsole="$busconsole -d"
elif [[ "$mode" != "RELEASE" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <args>"
exit 1
fi
......@@ -19,16 +21,16 @@ 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
echo -n "Executing test '$testcase' ... "
$runconsole client.lua $testcase
$busconsole client.lua $testcase
echo "OK"
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