1 | #!/usr/bin/env bash |
2 | # |
3 | # Manual tests |
4 | # |
5 | # Usage: |
6 | # test/manual.sh <function name> |
7 | |
8 | : ${LIB_OSH=stdlib/osh} |
9 | source $LIB_OSH/bash-strict.sh |
10 | source $LIB_OSH/task-five.sh |
11 | |
12 | readonly OSHRC=_tmp/manual-oshrc |
13 | |
14 | setup() { |
15 | cat >$OSHRC <<EOF |
16 | OILS_COMP_UI=nice |
17 | EOF |
18 | } |
19 | |
20 | test-osh() { |
21 | # Test it manually |
22 | bin/osh --rcfile $OSHRC |
23 | } |
24 | |
25 | test-ysh() { |
26 | # same OSHRC? Should it respect ENV.OILS_COMP_UI? |
27 | bin/ysh --rcfile $OSHRC |
28 | } |
29 | |
30 | task-five "$@" |