mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-13 12:01:16 +01:00
add some comments
This commit is contained in:
parent
574fc131db
commit
19417c57a9
@ -1,12 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# in order for this script to work, docker must be installed
|
||||
MYSQL_DOCKER_VER=latest
|
||||
|
||||
# trying to conect prematurely will fail, 10s should be enough wait time
|
||||
MYSQL_DB_START_WAIT=10
|
||||
|
||||
echo "running mysql docker container"
|
||||
docker run -p 3306:3306 --name poco-test-mysql -e MYSQL_ROOT_PASSWORD=poco -e MYSQL_DATABASE=pocotestdb -d mysql:$MYSQL_DOCKER_VER
|
||||
|
||||
echo "container up and running, sleeping $MYSQL_DB_START_WAIT seconds waiting for mysql db to start ..."
|
||||
sleep $MYSQL_DB_START_WAIT
|
||||
|
||||
./bin/Linux/x86_64/testrunner -all
|
||||
|
||||
echo "stopping mysql docker container"
|
||||
docker stop poco-test-mysql
|
||||
|
||||
echo "removing mysql docker container"
|
||||
docker rm poco-test-mysql
|
||||
|
@ -49,7 +49,7 @@ Poco::SharedPtr<SQLExecutor> MySQLTest::_pExecutor = 0;
|
||||
|
||||
std::string MySQLTest::getHost()
|
||||
{
|
||||
return "127.0.0.1"; //localhost";
|
||||
return "127.0.0.1"; //do not change to "localhost"!
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user