-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for mysql scripts and fix existing test script
- Loading branch information
1 parent
76021cb
commit 6c88af5
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
set -e | ||
|
||
wait_for_port 3306 | ||
|
||
# Wait for configure-mysql to finish. | ||
sleep 5 | ||
|
||
# through unix_socket | ||
mysql -e 'SELECT VERSION()' | ||
|
||
# through tcp/ip | ||
mysql -h 127.0.0.1 -udb -pdb -e 'SELECT VERSION()' | ||
mysql -h "127.0.0.1" -udb -pdb -e 'SELECT VERSION()' | ||
|
||
ping-mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,8 @@ | |
}; | ||
}; | ||
}; | ||
|
||
scripts.ping-mysql.exec = '' | ||
$DEVENV_PROFILE/bin/mysqladmin ping | ||
''; | ||
} |