Results for ysh-builtins.test.sh

statusosh
FAIL 38
total38
caseoshdescription
0FAIL append onto BashArray a=(1 2)
details
1FAIL append onto var a = :| 1 2 |
details
2FAIL append onto var a = ['1', '2']
details
3FAIL append without typed arg
details
4FAIL append passed invalid type
details
5FAIL write --sep, --end, -n, varying flag syntax
details
6FAIL write --json
details
7FAIL write --j8
details
8FAIL write -e not supported
details
9FAIL write syntax error
details
10FAIL write --
details
11FAIL read flag usage
details
12FAIL read (&x) is usage error
details
13FAIL read --raw-line
details
14FAIL read --raw-line handles line without end, --with-eol
details
15FAIL Mixing read --raw-line with read -r
details
16FAIL read --raw-line --with-eol
details
17FAIL read --raw-line --j8
details
18FAIL echo builtin should disallow typed args - literal
details
19FAIL echo builtin should disallow typed args - variable
details
20FAIL read --all-lines
details
21FAIL read --all-lines --with-eol
details
22FAIL Can simulate read --all-lines with a proc and value.Place
details
23FAIL read --all
details
24FAIL read --all from directory is an error (EISDIR)
details
25FAIL read --num-bytes
details
26FAIL read -0 is like read -r -d ''
details
27FAIL read -0 myvar doesn't do anything with IFS
details
28FAIL simple_test_builtin
details
29FAIL long flags to test
details
30FAIL test --true; test --false
details
31FAIL More test --true --false
details
32FAIL Make sure [[ is not affected by --true --false
details
33FAIL push-registers
details
34FAIL push-registers usage
details
35FAIL redir
details
36FAIL type(x)
details
37FAIL source ///osh/two.sh and $LIB_OSH
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 38 failed, 0 timeouts, 0 cases skipped
38 failed under osh

Details on runs that didn't PASS

osh0 append onto BashArray a=(1 2)

[osh stdout] Expected "['1', '2', '3 4', '5']\n['1', '2', '3 4', '5', '6']\n" Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh1 append onto var a = :| 1 2 |

[osh stdout] Expected "['1', '2', '3 4', '5']\n", got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh2 append onto var a = ['1', '2']

[osh stdout] Expected "['1', '2', '3 4', '5']\n", got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh3 append without typed arg

[osh status] Expected 3, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh4 append passed invalid type

[osh status] Expected 3, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh5 write --sep, --end, -n, varying flag syntax

[osh stdout] Expected 'a b\nc d\n.\na b\nc d\n.\na bc d\n.\na b_c d\na b_c d END\na b_c d END\nxy\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh6 write --json

[osh stdout] Expected '"\xce\xbc"\n"x"\n"\xef\xbf\xbd\xef\xbf\xbd"\n"y"\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh7 write --j8

[osh stdout] Expected '"\xce\xbc"\n"x"\nb\'\\yfe\\yff\'\n"y"\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh8 write -e not supported

[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh9 write syntax error

[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh10 write --

[osh stdout] Expected '\n--\ndone\n', got ''
[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh11 read flag usage

[osh stdout] Expected 'status=2\nstatus=2\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh12 read (&x) is usage error

[osh stdout] Expected 'status=2\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh13 read --raw-line

[osh stdout] Expected 'reply=hi\nlen=2\npass\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh14 read --raw-line handles line without end, --with-eol

[osh stdout] Expected '(Str) "a"\n(Str) "b"\n\n(Str) "a"\n(Str) "b"\n\n(Str) "a\\n"\n(Str) "b\\n"\n\n(Str) "a\\n"\n(Str) "b"\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh15 Mixing read --raw-line with read -r

[osh stdout] Expected 'read -r\nREPLY=1\nREPLY=2\n\nread --raw-line\n_reply=1\n_reply=2\n\nMixed\nREPLY=1\nREPLY=2\n_reply=3\nREPLY=4\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh16 read --raw-line --with-eol

[osh stdout] Expected 'reply=1\nreply=2\nreply=3\nmyline=a\nmyline=b\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh17 read --raw-line --j8

[osh stdout] Expected 'foo\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh18 echo builtin should disallow typed args - literal

[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh19 echo builtin should disallow typed args - variable

[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh20 read --all-lines

[osh stdout] Expected '1 2 3\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh21 read --all-lines --with-eol

[osh stdout] Expected '1\n2\n3\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh22 Can simulate read --all-lines with a proc and value.Place

[osh stdout] Expected '[\n "1",\n "2",\n "3"\n]\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh23 read --all

[osh stdout] Expected '[foo\n]\n[bad\n]\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh24 read --all from directory is an error (EISDIR)

[osh stdout] Expected 'status=1\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh25 read --num-bytes

[osh stdout] Expected 'reply=[ a ]\nreply=[ a b]\nx=[ a ]\nx=[ a b]\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh26 read -0 is like read -r -d ''

[osh stdout] Expected '[./a\\b\\c\\d]\n[./a\\b\\c\\d]\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh27 read -0 myvar doesn't do anything with IFS

[osh stdout] Expected '[./foo bar ]\n[./foo bar ]\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh28 simple_test_builtin

[osh stdout] Expected 'status=0\nstatus=0\nstatus=0\nstatus=2\nstatus=2\nstatus=1\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh29 long flags to test

[osh stdout] Expected 'status=0\nstatus=0\nstatus=0\nstatus=1\nstatus=2\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh30 test --true; test --false

[osh stdout] Expected '(Bool) true\ntrue=0\nfalse=1\n\n(Bool) false\ntrue=1\nfalse=0\n\n(Str) ""\ntrue=1\nfalse=1\n\n(Str) "other"\ntrue=1\nfalse=1\n\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh31 More test --true --false

[osh stdout] Expected 'dict=1\ndict=0\n\nAndOr\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh32 Make sure [[ is not affected by --true --false

[osh stdout] Expected 'dbracket=0\ndbracket=0\nparse error 2\nparse error 2\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh33 push-registers

[osh stdout] Expected 'status=43\nbar bar\nstatus=42\nfoo foo\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh34 push-registers usage

[osh stdout] Expected 'status=2\nstatus=2\nhi\nstatus=0\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh35 redir

[osh stdout] Expected 'proc\nbuiltin\n---\nbuiltin\nproc\n---\n3\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh36 type(x)

[osh stdout] Expected 'Int\nStr\nBool\nFloat\nList\nDict\nNull\nFunc\nBuiltinFunc\nBoundFunc\nBoundFunc\nRange\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh37 source ///osh/two.sh and $LIB_OSH

[osh stdout] Expected 'status=0\nstatus=0\nstatus=1\nstatus=1\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_