Skip to content

Commit

Permalink
Run unit tests in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
brliron committed May 27, 2021
1 parent ca26e3e commit f8eb872
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/release_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ cd git_thcrap
| grep -v -e 'Number of'
cd ..

# Run unit tests
rm -rf "tmp_$DATE"
mkdir "tmp_$DATE"
cd "tmp_$DATE"
../git_thcrap/bin/bin/thcrap_test.exe
UNITTEST_STATUS=$?
cd ..
rm -rf "tmp_$DATE"
test $UNITTEST_STATUS -eq 0 || confirm 'Unit tests failed! Continue anyway?'

# Prepare the release directory
if [ "$(cd git_thcrap/bin && echo $(ls *.exe bin/cacert.pem bin/*.exe bin/*.dll bin/*.json | grep -vF '_d.dll'))" != "$FILES_LIST" ]; then
echo "The list of files to copy doesn't match. Files list:"
Expand Down

0 comments on commit f8eb872

Please sign in to comment.