File tree Expand file tree Collapse file tree
send_to_owner_in_initial_transition Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,6 +104,27 @@ def prepareTests() {
104104 echo -e '---\n group: sanity\n allow_stderr_printouts: true\n ---\n Sanity check with Art sample PiComputer' > testcase.md
105105 cd $WORKSPACE
106106
107+ for ff in $(find ./art-samples -name '*.tcjs' -type f | xargs dirname)
108+ do
109+ folder=$(basename $ff)
110+ [[ $folder == *_target ]] && continue
111+ [ $folder == HelloWorld ] && continue
112+ [ $folder == PiComputer ] && continue
113+ [[ $folder == Qt* ]] && continue
114+ [[ $folder == gRPC* ]] && continue
115+ if [ $folder == TcpServer ]
116+ then
117+ cp -r $ff ./art-comp-test/tests/
118+ continue
119+ fi
120+ cp -r $ff ./art-comp-test/tests/sample_$folder
121+ cd ./art-comp-test/tests/sample_$folder
122+ [ -f top.tcjs ] || mv *.tcjs top.tcjs
123+ echo -e "\n tc.targetProject = 'sample_${folder}_target';" >> top.tcjs
124+ echo -e "---\n group: samples\n steps: generate-build\n ---\n Building Art sample $folder" > testcase.md
125+ cd $WORKSPACE
126+ done
127+
107128 cp -r ./git/rsarte-tests-mc-exe/runner/ ./art-comp-test/
108129 mkdir -p test-results
109130 cd ./art-comp-test/runner
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ class MyClass {
1919 y = 1;
2020 ASSERT(b, "Value of b is not true");
2121 `;
22+ S2 -> S3 on foo(`bool`)
23+ `
24+ x = 0;
25+ y = 0;
26+ `;
2227 S1 -> S3 on foo(`bool`) [`x == 1`] when `y == 1`
2328 `
2429 x = 2;
@@ -46,6 +51,9 @@ capsule Top {
4651 p.foo(b);
4752 ASSERT(p.x == 1, "Unexpected value of x");
4853 ASSERT(p.y == 1, "Unexpected value of y");
54+ p.foo(false);
55+ ASSERT(p.x == 0, "Unexpected value of x");
56+ ASSERT(p.y == 0, "Unexpected value of y");
4957 PASS();
5058 `;
5159 };
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ capsule Top {
3838
3939 behavior port p~ : Prot[100];
4040 behavior port frame : Frame;
41- optional part a : A[100];
41+ optional part a [[rt::properties(rule_config="X0039")]] : A[100];
4242
4343 connect a.p with p;
4444 statemachine {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class Light {
3434 `
3535 theLogger->logMsg("Yellow");
3636 `;
37- goRed: Yellow -> Red when `true `
37+ goRed: Yellow -> Red on switchLights()
3838 `
3939 theLogger->logMsg("Red");
4040 `;
You can’t perform that action at this time.
0 commit comments