File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ TEST_CONFIG_SQLITE_PATH=./../../common/config_sqlite.json
11
11
TEST_CONFIG_MS_PATH =./../../common/config_ms.json
12
12
TEST_FRAMEWORK_DIR =./tests/frameworks
13
13
14
+ # # database configs
15
+ MYSQL_HOST = 127.0.0.1
16
+ MYSQL_PORT = 3306
17
+ MYSQL_USER = root
18
+ MYSQL_PWD = root
19
+
14
20
all : test
15
21
16
22
# # tests
@@ -73,8 +79,8 @@ import-sqlite:
73
79
cp ./tests/data/admin.db ./tests/common/admin.db
74
80
75
81
import-mysql :
76
- mysql -uroot -proot -e " create database if not exists \` go-admin-test\` "
77
- mysql -uroot -proot go-admin-test < ./tests/data/admin.sql
82
+ mysql -h $( MYSQL_HOST ) -P ${MYSQL_PORT} -u ${MYSQL_USER} -p ${MYSQL_PWD} -e " create database if not exists \` go-admin-test\` "
83
+ mysql -h $( MYSQL_HOST ) -P ${MYSQL_PORT} -u ${MYSQL_USER} -p ${MYSQL_PWD} go-admin-test < ./tests/data/admin.sql
78
84
79
85
import-postgresql :
80
86
dropdb -U postgres go-admin-test
148
154
cp ./adm/build/windows/i386/adm_windows_i386_$(VERSION ) .zip ./adm/build/zip/
149
155
cp ./adm/build/mac/adm_darwin_x86_64_$(VERSION ) .zip ./adm/build/zip/
150
156
151
- .PHONY : all fmt golint govet cp-mod restore-mod test black-box-test mysql-test sqlite-test import-sqlite import-mysql import-postgresql pg-test fix-gf lint cilint cli
157
+ .PHONY : all fmt golint govet cp-mod restore-mod test black-box-test mysql-test sqlite-test import-sqlite import-mysql import-postgresql pg-test fix-gf lint cilint cli
You can’t perform that action at this time.
0 commit comments