Commit ee4a271f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Call separate regression script

parent a8a9d344
...@@ -13,10 +13,7 @@ c: test-parse-c # Polyorb_HI_C output ...@@ -13,10 +13,7 @@ c: test-parse-c # Polyorb_HI_C output
cp lift_model/* work/lift_model/SIMULINK/src cp lift_model/* work/lift_model/SIMULINK/src
make -C work make -C work
# Test the MSC converter tool and execute the MSC scenario # Test the MSC converter tool and execute the MSC scenario
cp MSC_TestCase.msc work/binaries/user_GUI ./regression.sh
cd work/binaries/user_GUI && taste-msc2py MSC_TestCase.msc && ../demo &
cd work/binaries/user_GUI && taste-msc2py MSC_TestCase.msc && python3 ./MSC_TestCase.py
pkill demo
test-parse-c: clean-c test-parse-c: clean-c
$(KAZOO) -p --gw \ $(KAZOO) -p --gw \
......
#!/bin/bash
cp MSC_TestCase.msc work/binaries/user_GUI
cd work/binaries/user_GUI
taste-msc2py MSC_TestCase.msc
../demo &
PID=$!
echo $PID
python3 ./MSC_TestCase.py || (kill $PID && echo 'TEST CASE FAILED' && exit 1 || echo 'FAILED killing demo')
kill $PID
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