Skip to content

Commit

Permalink
MDL-32323 add windows test database init script
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 10, 2012
1 parent e370154 commit 27f27eb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions admin/tool/phpunit/cli/init.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27f27eb

Please sign in to comment.