Commit 7febc678 authored by Maxime Perrotin's avatar Maxime Perrotin

Update test-air-multiports

Now it passes regression
parent 9c0c9903
...@@ -27,6 +27,10 @@ PROPERTIES ...@@ -27,6 +27,10 @@ PROPERTIES
END PI_s.others; END PI_s.others;
SUBPROGRAM RI_new SUBPROGRAM RI_new
FEATURES
c : IN PARAMETER DataView::TASTE_Boolean {
Taste::encoding => NATIVE;
};
END RI_new; END RI_new;
SUBPROGRAM IMPLEMENTATION RI_new.others SUBPROGRAM IMPLEMENTATION RI_new.others
...@@ -74,26 +78,30 @@ PROPERTIES ...@@ -74,26 +78,30 @@ PROPERTIES
Compute_Execution_Time => 0 ms .. 3 ms; Compute_Execution_Time => 0 ms .. 3 ms;
END PI_h.others; END PI_h.others;
SUBPROGRAM RI_s SUBPROGRAM PI_new
FEATURES FEATURES
t : IN PARAMETER DataView::TASTE_Boolean { c : IN PARAMETER DataView::TASTE_Boolean {
Taste::encoding => NATIVE; Taste::encoding => NATIVE;
}; };
END RI_s;
SUBPROGRAM IMPLEMENTATION RI_s.others
END RI_s.others;
SUBPROGRAM PI_new
PROPERTIES PROPERTIES
Taste::Associated_Queue_Size => 4; Taste::Associated_Queue_Size => 1;
END PI_new; END PI_new;
SUBPROGRAM IMPLEMENTATION PI_new.others SUBPROGRAM IMPLEMENTATION PI_new.others
PROPERTIES PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms; Compute_Execution_Time => 0 ms .. 2 ms;
END PI_new.others; END PI_new.others;
SUBPROGRAM RI_s
FEATURES
t : IN PARAMETER DataView::TASTE_Boolean {
Taste::encoding => NATIVE;
};
END RI_s;
SUBPROGRAM IMPLEMENTATION RI_s.others
END RI_s.others;
SYSTEM read SYSTEM read
FEATURES FEATURES
PI_h : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::read::PI_h.others { PI_h : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::read::PI_h.others {
...@@ -103,12 +111,6 @@ FEATURES ...@@ -103,12 +111,6 @@ FEATURES
Taste::Deadline => 10 ms; Taste::Deadline => 10 ms;
Taste::InterfaceName => "h"; Taste::InterfaceName => "h";
}; };
RI_s : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::hello::PI_s.others {
Taste::coordinates => "154957 53700";
Taste::RCMoperationKind => any;
Taste::InterfaceName => "s";
Taste::labelInheritance => "true";
};
PI_new : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::read::PI_new.others { PI_new : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::read::PI_new.others {
Taste::coordinates => "154957 65025"; Taste::coordinates => "154957 65025";
Taste::RCMoperationKind => sporadic; Taste::RCMoperationKind => sporadic;
...@@ -116,6 +118,12 @@ FEATURES ...@@ -116,6 +118,12 @@ FEATURES
Taste::Deadline => 10 ms; Taste::Deadline => 10 ms;
Taste::InterfaceName => "new"; Taste::InterfaceName => "new";
}; };
RI_s : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::hello::PI_s.others {
Taste::coordinates => "154957 53700";
Taste::RCMoperationKind => any;
Taste::InterfaceName => "s";
Taste::labelInheritance => "true";
};
PROPERTIES PROPERTIES
Source_Language => (C); Source_Language => (C);
Taste::Active_Interfaces => any; Taste::Active_Interfaces => any;
...@@ -140,10 +148,14 @@ END PI_cycl; ...@@ -140,10 +148,14 @@ END PI_cycl;
SUBPROGRAM IMPLEMENTATION PI_cycl.others SUBPROGRAM IMPLEMENTATION PI_cycl.others
PROPERTIES PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms; Compute_Execution_Time => 0 ms .. 2 ms;
END PI_cycl.others; END PI_cycl.others;
SUBPROGRAM RI_t SUBPROGRAM RI_t
FEATURES
t : IN PARAMETER DataView::TASTE_Boolean {
Taste::encoding => NATIVE;
};
END RI_t; END RI_t;
SUBPROGRAM IMPLEMENTATION RI_t.others SUBPROGRAM IMPLEMENTATION RI_t.others
...@@ -154,8 +166,8 @@ FEATURES ...@@ -154,8 +166,8 @@ FEATURES
PI_cycl : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Function1::PI_cycl.others { PI_cycl : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Function1::PI_cycl.others {
Taste::coordinates => "153242 17605"; Taste::coordinates => "153242 17605";
Taste::RCMoperationKind => cyclic; Taste::RCMoperationKind => cyclic;
Taste::RCMperiod => 10 ms; Taste::RCMperiod => 1000 ms;
Taste::Deadline => 0 ms; Taste::Deadline => 10 ms;
Taste::InterfaceName => "cycl"; Taste::InterfaceName => "cycl";
}; };
RI_t : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Function2::PI_t.others { RI_t : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Function2::PI_t.others {
...@@ -181,13 +193,17 @@ WITH Taste; ...@@ -181,13 +193,17 @@ WITH Taste;
WITH DataView; WITH DataView;
WITH TASTE_IV_Properties; WITH TASTE_IV_Properties;
SUBPROGRAM PI_t SUBPROGRAM PI_t
FEATURES
t : IN PARAMETER DataView::TASTE_Boolean {
Taste::encoding => NATIVE;
};
PROPERTIES PROPERTIES
Taste::Associated_Queue_Size => 2; Taste::Associated_Queue_Size => 1;
END PI_t; END PI_t;
SUBPROGRAM IMPLEMENTATION PI_t.others SUBPROGRAM IMPLEMENTATION PI_t.others
PROPERTIES PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms; Compute_Execution_Time => 0 ms .. 2 ms;
END PI_t.others; END PI_t.others;
SYSTEM Function2 SYSTEM Function2
...@@ -195,8 +211,8 @@ FEATURES ...@@ -195,8 +211,8 @@ FEATURES
PI_t : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Function2::PI_t.others { PI_t : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Function2::PI_t.others {
Taste::coordinates => "124920 25835"; Taste::coordinates => "124920 25835";
Taste::RCMoperationKind => sporadic; Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 0 ms; Taste::RCMperiod => 10 ms;
Taste::Deadline => 0 ms; Taste::Deadline => 10 ms;
Taste::InterfaceName => "t"; Taste::InterfaceName => "t";
}; };
PROPERTIES PROPERTIES
......
...@@ -3,6 +3,8 @@ KAZOO=../../kazoo ...@@ -3,6 +3,8 @@ KAZOO=../../kazoo
all: test-parse all: test-parse
cp input_data/hello.c output/hello/C/src && \ cp input_data/hello.c output/hello/C/src && \
cp input_data/read.c output/read/C/src && \ cp input_data/read.c output/read/C/src && \
cp input_data/function1.c output/function1/C/src && \
cp input_data/function2.c output/function2/C/src && \
cd output && make air cd output && make air
test-parse: clean test-parse: clean
......
/* User code: This file will not be overwritten by TASTE. */
#include "function1.h"
void function1_startup()
{
/* Write your initialization code here,
but do not make any call to a required interface. */
}
void function1_PI_cycl()
{
static asn1SccT_Boolean someBool = true;
/* Write your code here! */
printf("function1_RI_t is sending %s\n", someBool?"TRUE":"FALSE");
function1_RI_t(&someBool);
someBool = someBool?false:true;
}
/* User code: This file will not be overwritten by TASTE. */
#include "function2.h"
void function2_startup()
{
/* Write your initialization code here,
but do not make any call to a required interface. */
}
void function2_PI_t(const asn1SccTASTE_Boolean *IN_t)
{
/* Write your code here! */
printf("function1.c got %s ", *IN_t?"TRUE\n":"FALSE\n");
}
...@@ -12,5 +12,7 @@ void hello_PI_s(const asn1SccTASTE_Boolean *IN_t) ...@@ -12,5 +12,7 @@ void hello_PI_s(const asn1SccTASTE_Boolean *IN_t)
{ {
/* Write your code here! */ /* Write your code here! */
printf("hello.c got %s ", *IN_t?"TRUE\n":"FALSE\n"); printf("hello.c got %s ", *IN_t?"TRUE\n":"FALSE\n");
hello_RI_new(IN_t);
} }
...@@ -17,3 +17,11 @@ void read_PI_h() ...@@ -17,3 +17,11 @@ void read_PI_h()
someBool = someBool?false:true; someBool = someBool?false:true;
} }
void read_PI_new(const asn1SccTASTE_Boolean *IN_c)
{
/* Write your code here! */
printf("read.c got %s ", *IN_c?"TRUE\n":"FALSE\n");
}
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