add test groups

pull/4614/head
Miro Stauder 2 years ago
parent 270850eba4
commit b2c13874fb

@ -3,3 +3,23 @@
- `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
```

@ -0,0 +1,4 @@
# proxysql settings
SET mysql-auto_increment_delay_multiplex=0;
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# make sure we have correct cwd
pushd $(dirname $0)
# symlink all files from ../tests
for T in $(ls -1 ../tests/); do
# echo "ln -fsT ../tests/$T $T"
ln -fsT ../tests/$T $T
done
# remove irelevant
#rm -f test_*-t

@ -0,0 +1,4 @@
# proxysql settings
SET mysql-multiplexing='false';
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# make sure we have correct cwd
pushd $(dirname $0)
# symlink all files from ../tests
for T in $(ls -1 ../tests/); do
# echo "ln -fsT ../tests/$T $T"
ln -fsT ../tests/$T $T
done
# remove irelevant
#rm -f test_*-t

@ -0,0 +1,4 @@
# proxysql settings
SET mysql-query_digests=0;
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# make sure we have correct cwd
pushd $(dirname $0)
# symlink all files from ../tests
for T in $(ls -1 ../tests/); do
# echo "ln -fsT ../tests/$T $T"
ln -fsT ../tests/$T $T
done
# remove irelevant
#rm -f test_*-t

@ -0,0 +1,4 @@
# proxysql settings
SET mysql-query_digests_keep_comment=1;
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# make sure we have correct cwd
pushd $(dirname $0)
# symlink all files from ../tests
for T in $(ls -1 ../tests/); do
# echo "ln -fsT ../tests/$T $T"
ln -fsT ../tests/$T $T
done
# remove irelevant
#rm -f test_*-t
Loading…
Cancel
Save