OPENBUS-3011 Correção no runner de interops do SDK-Lua

A execução do runtest.sh do interop não pode ser por eval devido ao uso
da variável $0 para identificar o diretório de interops. Então mantive o
uso de /bin/bash e verifico o retorno da execução.
parent 6c08d438
#!/bin/bash
/bin/bash runtest.sh $1 protocol client server
/bin/bash runtest.sh $1 simple client server
/bin/bash runtest.sh $1 multiplexing client server
/bin/bash runtest.sh $1 sharedauth "sharing consuming"
/bin/bash runtest.sh $1 reloggedjoin client "server proxy"
/bin/bash runtest.sh $1 chaining client "server proxy"
/bin/bash runtest.sh $1 delegation client "messenger broadcaster forwarder"
mode=$1
function runner() {
/bin/bash runtest.sh "$@" || exit $?
}
runner $mode protocol client server
runner $mode simple client server
runner $mode multiplexing client server
runner $mode sharedauth "sharing consuming"
runner $mode reloggedjoin client "server proxy"
runner $mode chaining client "server proxy"
runner $mode delegation client "messenger broadcaster forwarder"
......@@ -32,12 +32,12 @@ done
for task in $tasks; do
echo -n "Executing task '$task' of test '$testcase' ... "
$busconsole $task.lua $testcase
echo "OK"
$busconsole $task.lua $testcase || exit $?
echo "OK"
done
cd ../../test
echo -n "Test protocol with server of test '$testcase' ... "
$busconsole openbus/test/Protocol.lua
$busconsole openbus/test/Protocol.lua || exit $?
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