1 | #!/usr/bin/env bash
|
2 | #
|
3 | # Usage:
|
4 | # data_lang/TEST.sh <function name>
|
5 |
|
6 | set -o nounset
|
7 | set -o pipefail
|
8 | set -o errexit
|
9 |
|
10 | REPO_ROOT=$(cd "$(dirname $0)/.."; pwd)
|
11 |
|
12 | source build/dev-shell.sh # python3 in $PATH
|
13 | source test/common.sh # run-one-test
|
14 |
|
15 | unit() {
|
16 | ### Run unit tests
|
17 |
|
18 | for variant in asan opt; do
|
19 | # This test needs to be faster
|
20 | run-one-test 'data_lang/utf8_test' '' $variant
|
21 | echo
|
22 | done
|
23 |
|
24 | for variant in asan ubsan; do
|
25 | run-one-test 'data_lang/j8_test' '' $variant
|
26 | echo
|
27 | done
|
28 |
|
29 | for variant in asan ubsan; do
|
30 | run-one-test 'data_lang/j8_libc_test' '' $variant
|
31 | echo
|
32 | done
|
33 | }
|
34 |
|
35 | "$@"
|