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 f2db55f0c8
Fix basictests hostgroup hook: move instead of copy to avoid monitor conflicts
4 weeks ago
..
deprecated Move deprecated TAP test to test/tap/deprecated/ 2 months ago
groups Fix basictests hostgroup hook: move instead of copy to avoid monitor conflicts 4 weeks ago
noise integration: fix pre-CI issues in unified branch 2 months ago
tap Fix tap.cpp compilation on macOS: add ulong typedef 4 weeks ago
test_helpers Address review feedback on hostgroups unit tests (PR #5506) 4 weeks ago
tests Fix unit test Makefile: auto-detect feature flags from libproxysql.a 4 weeks ago
tests_with_deps Fix reg_test_4264-commit_rollback-t and add extra debugging for TAP tests 1 month ago
Makefile Pass MAKECMDGOALS to unit test submake 4 weeks ago
NOISE_TESTING.md integration: fix pre-CI issues in unified branch 2 months ago
README.md
constants

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