OILS / test / manual.sh View on Github | oils.pub

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