Skip to content

Commit 59fac1a

Browse files
elena-volkova-hclGitHub Enterprise
authored andcommitted
RIC-1122: test with Art samples - build (#75)
* RIC-1122: Add all remaining samples to test chain, build only * RIC-1122: Check if top.tcjs exists * RIC-1122: Search for tcjs * RIC-1122: search under art-samples * typo * RIC-1122: Do not build TcpServer standalone * RIC-1122: Skip Qt and gRPC samples that use third party libraries
1 parent 699b2d1 commit 59fac1a

1 file changed

Lines changed: 21 additions & 0 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

0 commit comments

Comments
 (0)