diff --git a/script/build/test_db_config.sh b/script/build/test_db_config.sh new file mode 100755 index 000000000..78e174a21 --- /dev/null +++ b/script/build/test_db_config.sh @@ -0,0 +1,14 @@ +#!/bin/bash +DBNAME=$1 +DBFILE=config/database.yml2 + +echo "Creating $DBFILE for tests with dbname $DBNAME" + +echo "test:" > $DBFILE +echo " adapter: mysql2" >> $DBFILE +echo " database: $DBNAME" >> $DBFILE +echo " pool: 50" >> $DBFILE +echo " timeout: 5000" >> $DBFILE +echo " encoding: utf8" >> $DBFILE +echo " username: root" >> $DBFILE +echo " password:" >> $DBFILE