OILS / spec / ysh-source.test.sh View on Github | oilshell.org

29 lines, 8 significant
1# spec/ysh-source
2
3## oils_failures_allowed: 0
4
5#### --builtin flag
6shopt --set ysh:upgrade
7
8source $LIB_YSH/math.ysh
9
10json write (max(1, 2))
11## STDOUT:
122
13## END
14
15#### no path passed with --builtin flag
16shopt --set ysh:upgrade
17
18source --builtin
19## status: 2
20## STDOUT:
21## END
22
23#### non-existant path passed to --builtin flag
24shopt --set ysh:upgrade
25
26source --builtin test/this-file-will-never-exist.ysh
27## status: 2
28## STDOUT:
29## END