1 | #!/usr/bin/env bash |
2 | # |
3 | # Run tests in this directory. |
4 | # |
5 | # Usage: |
6 | # stdlib/TEST.sh <function name> |
7 | |
8 | set -o nounset |
9 | set -o pipefail |
10 | set -o errexit |
11 | |
12 | soil-run() { |
13 | SH=bin/ysh |
14 | test/byo-client.sh run-tests $SH stdlib/stream.ysh |
15 | |
16 | test/byo-client.sh run-tests $SH stdlib/table.ysh |
17 | |
18 | # I guess this needs tests, with an assertion library for stdout? |
19 | |
20 | # test/byo-client.sh run-tests $SH stdlib/two.sh |
21 | } |
22 | |
23 | "$@" |