You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap
Rene Cannao 2a1b19916e
test(tap): register pgsql_query_logging_autodump-t in test groups
1 week ago
..
groups test(tap): register pgsql_query_logging_autodump-t in test groups 1 week ago
tap TAP MCP client: port PR5372 coverage to MCP profiles/target_id routing model 1 week ago
tests test(pgsql-eventslog): improve autodump assertion diagnostics and runtime cleanup 1 week ago
tests_with_deps reduce duplication in makefiles, use include for common stuff 4 months ago
Makefile Fix cpp-dotenv preservation in clean target and add proper cleanall support 2 months ago
README.md add test groups 2 years ago
constants Remove config test from TAP 6 years ago
proxysql-ca.pem Initialize MySQL Tool Handler and fix default MySQL port 2 months ago
proxysql-cert.pem Initialize MySQL Tool Handler and fix default MySQL port 2 months ago
proxysql-key.pem Initialize MySQL Tool Handler and fix default MySQL port 2 months ago

README.md

Folder structure

  • tap: Contains TAP helper library for testing, and general utilities used across all tests.

  • tests: General test folder for either unitary or functional tests.

  • tests_with_deps: Test folder that holds all the tests that require special dependencies for being build.

  • tests_grp_*: tap test groups of specific tests with special configs applied via

    • pre-tests_grp_*.bash script run before tests
    • pre-tests_grp_*.sql script run before tests
    • post-tests_grp_*.bash script run after tests
    • post-tests_grp_*.sql script run after tests

example test group tests_grp_mytests can be created by

TG='mytests'
mkdir -p test/tap/tests_grp_$TG
cd test/tap/tests_grp_$TG
for T in $(ls -1 ../tests/); do ln -fsT ../tests/$T $T; done
cat > pre-test_grp_$TG-proxysql.sql << EOF
# run this test group with:
SET mysql-multiplexing='false';
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;
EOF