File tree Expand file tree Collapse file tree 4 files changed +20
-12
lines changed
Expand file tree Collapse file tree 4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -470,24 +470,26 @@ jobs:
470470 cd src
471471 export CHANGEDCOMPS=`git diff --name-only HEAD HEAD~1| grep \.comp\$ | grep mcstas-comps | xargs -n1 basename | sed s/\.comp//g | xargs echo`
472472 export NUMCHANGEDCOMPS=`git diff --name-only HEAD HEAD~1|grep \.comp\$ | grep mcstas-comps | wc -l | xargs echo`
473+ cd -
473474 if [ "$NUMCHANGEDCOMPS" != "0" ];
474475 then
475476 for comp in $CHANGEDCOMPS;
476477 do
477478 echo Finding tests including component $comp
478- NUMMATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
479+ NUMMATCH=`find src/ mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
479480 if [ "$NUMMATCH" -gt "0" ];
480481 then
481482 if [ "$RUNNER_OS" != "Windows" ]; then
482- mctest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES $PERMISSIVE
483+ mctest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES $PERMISSIVE --verbose
483484 else
484- echo .\\install\\bin\\mctest --verbose --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES --permissive >> ..\\ changedinstr.bat
485+ echo .\\install\\bin\\mctest --verbose --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES --permissive --verbose >> changedinstr.bat
485486 fi
486487 else
487488 echo No matching tests found
488489 fi
489490 done
490491 fi
492+ cd src
491493 export RUNALL="NO"
492494 export CHANGEDINSTR=`git diff --name-only HEAD HEAD~1| grep \.instr\$ | grep mcstas-comps | xargs -n1 basename | sed s/\.instr//g | xargs echo`
493495 export CHANGEDINSTR=`echo $CHANGEDINSTR | xargs -n1 echo | sort | uniq | xargs echo | sed s/\ /,/g`
Original file line number Diff line number Diff line change @@ -224,24 +224,26 @@ jobs:
224224 cd src
225225 export CHANGEDCOMPS=`git diff --name-only HEAD HEAD~1| grep \.comp\$ | grep mcstas-comps | xargs -n1 basename | sed s/\.comp//g | xargs echo`
226226 export NUMCHANGEDCOMPS=`git diff --name-only HEAD HEAD~1|grep \.comp\$ | grep mcstas-comps | wc -l | xargs echo`
227+ cd -
227228 if [ "$NUMCHANGEDCOMPS" != "0" ];
228229 then
229230 for comp in $CHANGEDCOMPS;
230231 do
231232 echo Finding tests including component $comp
232- NUMMATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
233+ NUMMATCH=`find src/ mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
233234 if [ "$NUMMATCH" -gt "0" ];
234235 then
235236 if [ "$RUNNER_OS" != "Windows" ]; then
236- mctest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE
237+ mctest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE --verbose
237238 else
238- mctest.bat --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE
239+ mctest.bat --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE --verbose
239240 fi
240241 else
241242 echo No matching tests found
242243 fi
243244 done
244245 fi
246+ cd src
245247 export RUNALL="NO"
246248 export CHANGEDINSTR=`git diff --name-only HEAD HEAD~1| grep \.instr\$ | grep mcstas-comps | xargs -n1 basename | sed s/\.instr//g | xargs echo`
247249 export CHANGEDINSTR=`echo $CHANGEDINSTR | xargs -n1 echo | sort | uniq | xargs echo | sed s/\ /,/g`
Original file line number Diff line number Diff line change @@ -403,24 +403,26 @@ jobs:
403403 cd src
404404 export CHANGEDCOMPS=`git diff --name-only HEAD HEAD~1| grep \.comp\$ | grep mcxtrace-comps | xargs -n1 basename | sed s/\.comp//g | xargs echo`
405405 export NUMCHANGEDCOMPS=`git diff --name-only HEAD HEAD~1|grep \.comp\$ | grep mcxtrace-comps | wc -l | xargs echo`
406+ cd -
406407 if [ "$NUMCHANGEDCOMPS" != "0" ];
407408 then
408409 for comp in $CHANGEDCOMPS;
409410 do
410411 echo Finding tests including component $comp
411- NUMMATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
412+ NUMMATCH=`find src/ mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
412413 if [ "$NUMMATCH" -gt "0" ];
413414 then
414415 if [ "$RUNNER_OS" != "Windows" ]; then
415- mxtest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES $PERMISSIVE
416+ mxtest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES $PERMISSIVE --verbose
416417 else
417- echo .\\install\\bin\\mxtest --verbose --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES --permissive >> ..\\ changedinstr.bat
418+ echo .\\install\\bin\\mxtest --verbose --testdir run_${comp} --comp=${comp} --suffix=${{ matrix.CC }}_CHANGES --permissive --verbose >> changedinstr.bat
418419 fi
419420 else
420421 echo No matching tests found
421422 fi
422423 done
423424 fi
425+ cd src
424426 export RUNALL="NO"
425427 export CHANGEDINSTR=`git diff --name-only HEAD HEAD~1| grep \.instr\$ | grep mcxtrace-comps | xargs -n1 basename | sed s/\.instr//g | xargs echo`
426428 export CHANGEDINSTR=`echo $CHANGEDINSTR | xargs -n1 echo | sort | uniq | xargs echo | sed s/\ /,/g`
Original file line number Diff line number Diff line change @@ -205,24 +205,26 @@ jobs:
205205 cd src
206206 export CHANGEDCOMPS=`git diff --name-only HEAD HEAD~1| grep \.comp\$ | grep mcxtrace-comps | xargs -n1 basename | sed s/\.comp//g | xargs echo`
207207 export NUMCHANGEDCOMPS=`git diff --name-only HEAD HEAD~1|grep \.comp\$ | grep mcxtrace-comps | wc -l | xargs echo`
208+ cd -
208209 if [ "$NUMCHANGEDCOMPS" != "0" ];
209210 then
210211 for comp in $CHANGEDCOMPS;
211212 do
212213 echo Finding tests including component $comp
213- NUMMATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
214+ NUMMATCH=`find src/ mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
214215 if [ "$NUMMATCH" -gt "0" ];
215216 then
216217 if [ "$RUNNER_OS" != "Windows" ]; then
217- mxtest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE
218+ mxtest --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE --verbose
218219 else
219- mxtest.bat --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE
220+ mxtest.bat --mpi=2 --testdir run_${comp} --comp=${comp} --suffix=CHANGES $PERMISSIVE --verbose
220221 fi
221222 else
222223 echo No matching tests found
223224 fi
224225 done
225226 fi
227+ cd src
226228 export RUNALL="NO"
227229 export CHANGEDINSTR=`git diff --name-only HEAD HEAD~1| grep \.instr\$ | grep mcxtrace-comps | xargs -n1 basename | sed s/\.instr//g | xargs echo`
228230 export CHANGEDINSTR=`echo $CHANGEDINSTR | xargs -n1 echo | sort | uniq | xargs echo | sed s/\ /,/g`
You can’t perform that action at this time.
0 commit comments