Skip to content

Commit f82dd49

Browse files
Merge branch 'main' of github01.hclpnp.com:Modeling/rtistic-pub-doc
2 parents 99f7d6f + 117c263 commit f82dd49

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

art-comp-test/Jenkinsfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,27 @@ def prepareTests() {
104104
echo -e '---\ngroup: sanity\nallow_stderr_printouts: true\n---\nSanity 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 "\ntc.targetProject = 'sample_${folder}_target';" >> top.tcjs
124+
echo -e "---\ngroup: samples\nsteps: generate-build\n---\nBuilding 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

art-comp-test/tests/class_trigger_guard/class_trigger_guard.art

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
};

art-comp-test/tests/send_to_owner_in_initial_transition/send_to_owner_in_initial_transition.art

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

art-samples/TrafficLight/Light.art

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
`;

0 commit comments

Comments
 (0)