Move init and test results data to separate repo.

This commit is contained in:
go-jet 2019-08-16 12:43:41 +02:00
parent 96cc6d15b5
commit d5466a91e6
21 changed files with 21 additions and 414048 deletions

View file

@ -50,7 +50,7 @@ func initMySQLDB() {
for _, dbName := range mySQLDBs {
cmdLine := fmt.Sprintf("mysql -h 127.0.0.1 -u %s -p%s %s < %s",
dbconfig.MySQLUser, dbconfig.MySQLPassword, dbName, "./init/data/mysql/"+dbName+".sql")
dbconfig.MySQLUser, dbconfig.MySQLPassword, dbName, "./testdata/init/mysql/"+dbName+".sql")
fmt.Println(cmdLine)
@ -74,7 +74,6 @@ func initMySQLDB() {
panicOnError(err)
}
}
func initPostgresDB() {
@ -96,7 +95,7 @@ func initPostgresDB() {
for _, schemaName := range schemaNames {
execFile(db, "./init/data/postgres/"+schemaName+".sql")
execFile(db, "./testdata/init/postgres/"+schemaName+".sql")
err = postgres.Generate("./.gentestdata", postgres.DBConnection{
Host: dbconfig.Host,