Commit 8f97a2b2 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Build for both Ada and C runtimes - and regression-check the result.

parent 28d6920f
......@@ -18,7 +18,7 @@ then
fi
# Use PolyORB-HI-C runtime
USE_POHIC=1
# USE_POHIC=1
# Detect models from Ellidiss tools v2, and convert them to 1.3
INTERFACEVIEW=InterfaceView.aadl
......@@ -78,6 +78,18 @@ assert-builder-ocarina.py \
--keep-case \
--interfaceView "$INTERFACEVIEW" \
--deploymentView "$DEPLOYMENTVIEW" \
-o "$OUTPUTDIR" \
-o binary.ada \
--subC simple_c_function:"$SKELS"/simple_c_function.zip \
$ORCHESTRATOR_OPTIONS
assert-builder-ocarina.py \
--fast \
--debug \
-p \
--aadlv2 \
--keep-case \
--interfaceView "$INTERFACEVIEW" \
--deploymentView "$DEPLOYMENTVIEW" \
-o binary.c \
--subC simple_c_function:"$SKELS"/simple_c_function.zip \
$ORCHESTRATOR_OPTIONS
#!/usr/bin/env python2
import sys
timeout = 5
binaries = [
"taste-simulate-leon3 binary.ada/binaries/leon_partition.exe",
"taste-simulate-leon3 binary.c/binaries/leon_partition"]
expected = [
'\[Startup\] Expected output: "Hello, world..." every 2 seconds',
'Hello, world...',
'Hello, world...',
'Hello, world...',
'Hello, world...'
]
sys.path.append("..")
import commonRegression
result = commonRegression.test(binaries, expected, timeout)
sys.exit(result)
......@@ -14,8 +14,12 @@ void simple_c_function_startup()
void simple_c_function_PI_cyclic_operation()
{
static cnt = 0;
printf ("Hello, world...\n");
fflush(stdout);
if (cnt++ == 5) {
exit(0);
}
// extern void rtems_stack_checker_report_usage();
// rtems_stack_checker_report_usage();
}
......
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