mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
20 lines
529 B
Bash
20 lines
529 B
Bash
#!/usr/bin/env bash
|
|
|
|
TESTS=4
|
|
|
|
TEST_NAME="ps-mysqld-001.txt"
|
|
res=$(find_my_cnf_file samples/ps-mysqld-001.txt)
|
|
is "$res" "/tmp/12345/my.sandbox.cnf"
|
|
|
|
TEST_NAME="ps-mysqld-001.txt with port"
|
|
res=$(find_my_cnf_file samples/ps-mysqld-001.txt 12346)
|
|
is "$res" "/tmp/12346/my.sandbox.cnf"
|
|
|
|
TEST_NAME="ps-mysqld-004.txt"
|
|
res=$(find_my_cnf_file samples/ps-mysqld-004.txt)
|
|
is "$res" "/var/lib/mysql/my.cnf"
|
|
|
|
TEST_NAME="ps-mysqld-004.txt with port"
|
|
res=$(find_my_cnf_file samples/ps-mysqld-004.txt 12345)
|
|
is "$res" "/var/lib/mysql/my.cnf"
|