Skip to content

Commit

Permalink
Test new compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden authored Mar 3, 2024
1 parent fafc231 commit 7c0ef59
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/macos-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,39 @@ jobs:
if [ "$failures" -gt 0 ]; then
exit 1
fi
cd ..
cmake --build . --target clean
cmake -DTE_LONG_DOUBLE=1 ./
make -j4
cd bin
./TETestRunner --reporter JUnit::out=TE-junit2.xml
cat TE-junit2.xml
errors=$(cat TE-junit2.xml | ggrep -Po '(errors)="\K[^"]*')
failures=$(cat TE-junit2.xml | ggrep -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
cd ..
cmake --build . --target clean
cmake -DTE_BITWISE_OPERATORS=1 ./
make -j4
cd bin
./TETestRunner --reporter JUnit::out=TE-junit2.xml
cat TE-junit2.xml
errors=$(cat TE-junit2.xml | ggrep -Po '(errors)="\K[^"]*')
failures=$(cat TE-junit2.xml | ggrep -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 7c0ef59

Please sign in to comment.