Commit c429b706 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

Release tag of version

git-svn-id: ae0415b3-e90b-0410-900d-d0be9363c56b
parents 1a6c8f26 af88281a
...@@ -5,10 +5,12 @@ testcase=$2 ...@@ -5,10 +5,12 @@ testcase=$2
tasks=$3 tasks=$3
services=$4 services=$4
runconsole="source ${OPENBUS_SDKLUA_TEST}/ $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> <tasks> <services>" busconsole="$busconsole -d"
elif [[ "$mode" != "RELEASE" ]]; then
echo "Usage: $0 <RELEASE|DEBUG> <args>"
exit 1 exit 1
fi fi
...@@ -16,19 +18,19 @@ cd $testcase ...@@ -16,19 +18,19 @@ 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
for task in $tasks; do for task in $tasks; do
echo -n "Executing task '$task' of test '$testcase' ... " echo -n "Executing task '$task' of test '$testcase' ... "
$runconsole $task.lua $testcase $busconsole $task.lua $testcase
echo "OK" echo "OK"
done done
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