Skip to content

Commit

Permalink
Exit with status code on tests failed
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Aug 30, 2024
1 parent edada0e commit 0e7d657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jesse.make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
# ./make.sh RunPoof
# [ $? -ne 0 ] && exit 1

./make.sh $OPT BuildAll
# ./make.sh $OPT BuildAll

./make.sh RunTests
# exit $?

# ./make.sh $OPT \
# BuildSingleExample examples/blank_project \
Expand Down
4 changes: 4 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,20 @@ function RunEntireBuild {

if [ $RunPoof == 1 ]; then
RunPoof
[ $? -ne 0 ] && exit 1
fi

if [ $EMCC == 1 ]; then
BuildWithEMCC
[ $? -ne 0 ] && exit 1
else
BuildWithClang
[ $? -ne 0 ] && exit 1
fi

if [ $RunTests == 1 ]; then
$stdlib_build_scripts/run_tests.sh
[ $? -ne 0 ] && exit 1
fi

}
Expand Down

0 comments on commit 0e7d657

Please sign in to comment.