Skip to content

Commit 5581450

Browse files
committed
documentation: add description of running tests
1 parent 5fc55f7 commit 5581450

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ make
2727
make install
2828
```
2929

30+
#### Run tests
31+
32+
To run the tests, the following preparatory steps must be completed:
33+
* Run mysql instance.
34+
* Connect a client to the instance and execute the commands:
35+
* `CREATE USER 'test_user' IDENTIFIED WITH mysql_native_password BY 'pass';`
36+
* `CREATE DATABASE tarantool_mysql_test;`
37+
* `GRANT ALL PRIVILEGES ON *.* TO 'test_user';`
38+
* Define MYSQL environment variable using the following format:<br/>
39+
`ip:port:user:user_pass:db_name:`<br/>
40+
Example:<br/>
41+
`export MYSQL=127.0.0.1:3306:test_user:pass:tarantool_mysql_test:`
42+
43+
The tests can now be run by `make check`.
44+
3045
#### tarantoolctl rocks
3146

3247
You can also use tarantoolctl rocks:

0 commit comments

Comments
 (0)