Cross-compile macOS and Windows builds (#89)

Adds support for cross-compiling macOS and Windows builds with cgo (using https://github.com/techknowlogick/xgo).

Closes #41
This commit is contained in:
Adrian Macneil 2019-09-18 22:30:59 +12:00 committed by GitHub
parent 23d48e48aa
commit aa72a39a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 22 deletions

View file

@ -133,8 +133,10 @@ func TestMySQLDumpSchema(t *testing.T) {
u.Path = "/fakedb"
schema, err = drv.DumpSchema(u, db)
require.Nil(t, schema)
require.EqualError(t, err, "mysqldump: Got error: 1049: "+
"\"Unknown database 'fakedb'\" when selecting the database")
require.EqualError(t, err, "mysqldump: [Warning] Using a password "+
"on the command line interface can be insecure.\n"+
"mysqldump: Got error: 1049: "+
"Unknown database 'fakedb' when selecting the database")
}
func TestMySQLDatabaseExists(t *testing.T) {