mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Fixed AsyncTask memory leak (#922)
* Added PocketMine-TesterPlugin submodule with regression test
This commit is contained in:
@ -17,7 +17,11 @@ if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp -r tests/plugins plugins
|
||||
rm server.log 2> /dev/null
|
||||
mkdir -p ./plugins
|
||||
|
||||
cp -r tests/plugins/PocketMine-DevTools ./plugins
|
||||
|
||||
"$PHP_BINARY" ./plugins/PocketMine-DevTools/src/DevTools/ConsoleScript.php --make ./plugins/PocketMine-DevTools --relative ./plugins/PocketMine-DevTools --out ./plugins/DevTools.phar
|
||||
rm -rf ./plugins/PocketMine-DevTools
|
||||
|
||||
@ -28,3 +32,15 @@ else
|
||||
echo No phar created!
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp -r tests/plugins/PocketMine-TesterPlugin ./plugins
|
||||
"$PHP_BINARY" src/pocketmine/PocketMine.php --no-wizard --disable-ansi --disable-readline --debug.level=2
|
||||
|
||||
result=$(grep 'TesterPlugin' server.log | grep 'Finished' | grep -v 'PASS')
|
||||
if [ "$result" != "" ]; then
|
||||
echo "$result"
|
||||
echo Some tests did not complete successfully, changing build status to failed
|
||||
exit 1
|
||||
else
|
||||
echo All tests passed
|
||||
fi
|
||||
|
Reference in New Issue
Block a user