Files
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

30 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
status=0
run_bats() {
bats "$@" --print-output-on-failure || status=1
}
echo "Updating dolt config for tests:"
dolt config --global --add metrics.disabled true
dolt config --global --add metrics.host localhost
dolt config --global --add user.name mysql-test-runner
dolt config --global --add user.email mysql-test-runner@liquidata.co
echo "Running mysql-client-tests:"
run_bats /build/bin/bats/mysql-client-tests.bats
# We need to test that setting the version variable is reflected in the info received
# when a client connects. Many drivers ignore this info, including go's SQL driver.
# So we need to use a client test to check this.
echo "Running custom-version-string-test"
run_bats /build/bin/bats/custom-version-string-test.bats
# We run mariadb-binlog integration in this suite same as with mysqldump in mysql-client-tests.bats.
# However, there's a bit more setup necessary to pipe the output from the dump in a mariadb client, so it's been
# separated into a separate bats.
echo "Running mariadb-binlog tests:"
run_bats /build/bin/bats/mariadb-binlog.bats
exit "$status"