Skip to content

Commit

Permalink
Update unit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden authored Nov 17, 2023
1 parent c2fdaef commit 3dd9671
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,21 @@ jobs:
exit 1
fi
cd ..
cmake -DTE_FLOAT=1 ./
make -j4
cd bin
./TETestRunner --reporter JUnit::out=TE-junit2.xml
cat TE-junit2.xml
errors=$(cat TE-junit2.xml | grep -Po '(errors)="\K[^"]*')
failures=$(cat TE-junit2.xml | grep -Po '(failures)="\K[^"]*')
echo "Error count is: ${errors}"
echo "Failure count is: ${failures}"
if [ "$errors" -gt 0 ]; then
exit 1
fi
if [ "$failures" -gt 0 ]; then
exit 1
fi

0 comments on commit 3dd9671

Please sign in to comment.