OILS / data_lang / TEST.sh View on Github | oilshell.org

35 lines, 20 significant
1#!/usr/bin/env bash
2#
3# Usage:
4# data_lang/TEST.sh <function name>
5
6set -o nounset
7set -o pipefail
8set -o errexit
9
10REPO_ROOT=$(cd "$(dirname $0)/.."; pwd)
11
12source build/dev-shell.sh # python3 in $PATH
13source test/common.sh # run-one-test
14
15unit() {
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"$@"