Results for ysh-word-eval.test.sh

statusoshosh_ALT
pass 108
FAIL 13
total1111
caseoshosh_ALTdescription
0pass pass Splice in array
1pass pass Assoc array can't be spliced directly
2pass pass Can't splice string
3pass pass Can't splice undefined
4pass FAIL echo $[f(x)] for various types
details
5pass pass echo $f (x) with space is runtime error
6pass pass echo @f (x) with space is runtime error
7pass pass echo $x for various types
8pass pass Wrong sigil with $range() is runtime error
9FAIL FAIL Serializing type in a list
detailsdetails
10pass FAIL Wrong sigil @[max(3, 4)]
details
18 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_ALT4 echo $[f(x)] for various types

[osh_ALT stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    return status
  File "/home/uke/oil/osh/cmd_eval.py", line 1957, in ExecuteAndCatch
    raise  # 'eval break' and 'source return.sh', etc.
  File "/home/uke/oil/osh/cmd_eval.py", line 1829, in _Execute
    errexit_loc = process_sub_st.locs[i]
  File "/home/uke/oil/osh/cmd_eval.py", line 1540, in _Dispatch
    status = self._DoExpandedAlias(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple
    status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand
    run_flags)
  File "/home/uke/oil/core/executor.py", line 327, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 211, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/uke/oil/builtin/meta_osh.py", line 158, in Run
    resolved = path_arg
IndexError: list index out of range
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh9 Serializing type in a list

[osh status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'
osh_ALT9 Serializing type in a list

[osh_ALT status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'
osh_ALT10 Wrong sigil @[max(3, 4)]

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    return status
  File "/home/uke/oil/osh/cmd_eval.py", line 1957, in ExecuteAndCatch
    raise  # 'eval break' and 'source return.sh', etc.
  File "/home/uke/oil/osh/cmd_eval.py", line 1829, in _Execute
    errexit_loc = process_sub_st.locs[i]
  File "/home/uke/oil/osh/cmd_eval.py", line 1540, in _Dispatch
    status = self._DoExpandedAlias(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple
    status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand
    run_flags)
  File "/home/uke/oil/core/executor.py", line 327, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 211, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/uke/oil/builtin/meta_osh.py", line 158, in Run
    resolved = path_arg
IndexError: list index out of range
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47