Skip to content

Commit f8eb872

Browse files
committed
Run unit tests in release script
1 parent ca26e3e commit f8eb872

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/release_build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ cd git_thcrap
9292
| grep -v -e 'Number of'
9393
cd ..
9494

95+
# Run unit tests
96+
rm -rf "tmp_$DATE"
97+
mkdir "tmp_$DATE"
98+
cd "tmp_$DATE"
99+
../git_thcrap/bin/bin/thcrap_test.exe
100+
UNITTEST_STATUS=$?
101+
cd ..
102+
rm -rf "tmp_$DATE"
103+
test $UNITTEST_STATUS -eq 0 || confirm 'Unit tests failed! Continue anyway?'
104+
95105
# Prepare the release directory
96106
if [ "$(cd git_thcrap/bin && echo $(ls *.exe bin/cacert.pem bin/*.exe bin/*.dll bin/*.json | grep -vF '_d.dll'))" != "$FILES_LIST" ]; then
97107
echo "The list of files to copy doesn't match. Files list:"

0 commit comments

Comments
 (0)