mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-32323 add windows test database init script
This commit is contained in:
parent
e370154157
commit
27f27eb4f4
20
admin/tool/phpunit/cli/init.bat
Normal file
20
admin/tool/phpunit/cli/init.bat
Normal file
@ -0,0 +1,20 @@
|
||||
@ECHO OFF
|
||||
CALL php %~dp0\util.php --diag > NUL 2>&1
|
||||
|
||||
IF ERRORLEVEL 133 GOTO drop
|
||||
IF ERRORLEVEL 132 GOTO install
|
||||
IF ERRORLEVEL 1 GOTO unknown
|
||||
GOTO done
|
||||
|
||||
:drop
|
||||
CALL php %~dp0\util.php --drop
|
||||
IF ERRORLEVEL 1 GOTO done
|
||||
|
||||
:install
|
||||
CALL php %~dp0\util.php --install
|
||||
GOTO done
|
||||
|
||||
:unknown
|
||||
CALL php %~dp0\util.php --diag
|
||||
|
||||
:done
|
Loading…
x
Reference in New Issue
Block a user