Skip to content

Commit

Permalink
waits for test to finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Jun 11, 2021
1 parent 804305a commit f31c09f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,25 @@ jobs:
- name: Run cFS
run: |
./core-cpu1 | tee cFS_startup_cpu1.txt &
sleep 20
../host/cmdUtil --pktid=0x1806 --cmdcode=4 --endian=LE --string="20:CFE_APP" --string="20:CFE_TestMain" --string="64:cfe_testcase" --uint32=16384 --uint8=0 --uint8=0 --uint16=100 &
sleep 10
../host/cmdUtil --pktid=0x1806 --cmdcode=4 --endian=LE --string="20:CFE_TEST_APP" --string="20:CFE_TestMain" --string="64:cfe_testcase" --uint32=16384 --uint8=0 --uint8=0 --uint16=100 &
sleep 30
counter=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
while [[ -z $(grep -i "SUMMARY" cFS_startup_cpu1.txt) ]]; do
echo "Waiting for CFE Tests"
sleep 60
temp=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
if [ $temp -eq $counter ];
then
echo "Test is frozen. Quiting"
break
fi
counter=$(grep -c "CFE_TEST_APP" cFS_startup_cpu1.txt)
done
../host/cmdUtil --endian=LE --pktid=0x1806 --cmdcode=2 --half=0x0002
working-directory: ./build/exe/cpu1/

Expand Down

0 comments on commit f31c09f

Please sign in to comment.