Files
tidb/parser/test.sh
Daniël van Eeden 8d23ad21c9 [parser] auth: add the caching sha2 algorithm for authentication (#1232)
This allows validating passwords against the `authentication_string`
data that MySQL stores for caching_sha2 passwords.

Related:
- https://github.com/pingcap/tidb/issues/9411
2021-10-09 14:53:23 +08:00

15 lines
399 B
Bash

#!/bin/sh
# If 'check.TestingT' is not used in any of the *_test.go files in a subdir no tests will run.
for f in $(git grep -l 'github.com/pingcap/check' | grep '/' | cut -d/ -f1 | uniq)
do
if ! grep -r TestingT "$f" > /dev/null
then
echo "check.TestingT missing from $f"
exit 1
fi
done
GO111MODULE=on go test -p 1 -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=./... ./...