OILS / data_lang / TEST.sh View on Github | oils.pub

35 lines, 21 significant
1#!/usr/bin/env bash
2#
3# Usage:
4# data_lang/TEST.sh <function name>
5
6: ${LIB_OSH=stdlib/osh}
7source $LIB_OSH/bash-strict.sh
8source $LIB_OSH/task-five.sh
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
35task-five "$@"