mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-11-03 20:18:01 +00:00 
			
		
		
		
	* remove leftover progen files * remove Data sources and turn headers into forwards * add SQL files #2059 * Data2sql: adjust Travis, AppVeyor & Makefiles (#2069) * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * fix header forwarding * Data2sql: Fixes for complete Travis CI success (#2071) * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Restore DataFormatException * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * construct RowFilter from RecordSet reference instead of pointer * pass Container ref instead of ptr to Column * elimitate g++ warnings * SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate * tidy up Postgres * ODBC fixes
		
			
				
	
	
		
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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 poco-test-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 > /dev/null
 | 
						|
 | 
						|
echo "poco-test-mysql container up and running, sleeping $MYSQL_DB_START_WAIT seconds waiting for db to start ..."
 | 
						|
sleep $MYSQL_DB_START_WAIT
 | 
						|
 | 
						|
echo "running tests ..."
 | 
						|
./bin/Linux/x86_64/testrunner -all
 | 
						|
 | 
						|
echo "stopping poco-test-mysql docker container"
 | 
						|
docker stop poco-test-mysql > /dev/null
 | 
						|
 | 
						|
echo "removing poco-test-mysql docker container"
 | 
						|
docker rm poco-test-mysql > /dev/null
 |