spec test index / oilshell.org
51 passed, 3 OK, 0 not implemented, 0 BUG, 15 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 2 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:3: Signal 'KILL' can't be handled trap 'echo hi' STOP ^~~~ [ stdin ]:5: Signal 'STOP' can't be handled |
osh_.py | 2 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:3: Signal 'KILL' can't be handled trap 'echo hi' STOP ^~~~ [ stdin ]:5: Signal 'STOP' can't be handled |
osh_.cc | 2 trap 'echo hi' KILL (regression test, caught by smoosh suite) stdout: status=1 status=1 status=1 status=0stderr: trap 'echo hi' 9 ^ [ stdin ]:1: Signal '9' can't be handled trap 'echo hi' KILL ^~~~ [ stdin ]:3: Signal 'KILL' can't be handled trap 'echo hi' STOP ^~~~ [ stdin ]:5: Signal 'STOP' can't be handled |
osh | 14 trap DEBUG [osh stdout] Expected 'debuglog [x y]\n1\ndebuglog [x y]\n2\n', got '1\n2\n' stdout: 1 2stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.py | 14 trap DEBUG [osh_.py stdout] Expected 'debuglog [x y]\n1\ndebuglog [x y]\n2\n', got '1\n2\n' stdout: 1 2stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.cc | 14 trap DEBUG [osh_.cc stdout] Expected 'debuglog [x y]\n1\ndebuglog [x y]\n2\n', got '1\n2\n' stdout: 1 2stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh | 15 trap DEBUG and pipeline [osh stdout] Expected ' [8]\na\n [8]\nb\n [10]\n2\n [12]\n [12]\n1\n [14]\n [15]\n1\n', got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.py | 15 trap DEBUG and pipeline [osh_.py stdout] Expected ' [8]\na\n [8]\nb\n [10]\n2\n [12]\n [12]\n1\n [14]\n [15]\n1\n', got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.cc | 15 trap DEBUG and pipeline [osh_.cc stdout] Expected ' [8]\na\n [8]\nb\n [10]\n2\n [12]\n [12]\n1\n [14]\n [15]\n1\n', got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: osh warning: The 'DEBUG' hook isn't implemented |
osh | 16 trap DEBUG with compound commands [osh stdout] Expected ' [16]\n-- assign --\n [17]\n [19]\n-- function call --\n [20]\n [23]\n-- for --\n [24]\n [25]\nfor1 1\n [26]\nfor2 1\n [24]\n [25]\nfor1 2\n [26]\nfor2 2\n [29]\n-- while --\n [30]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [37]\n-- if --\n [38]\n [39]\nIF\n [42]\n-- case --\n [43]\n [45]\nCASE\n', got '-- assign --\n-- function call --\n-- for --\nfor1 1\nfor2 1\nfor1 2\nfor2 2\n-- while --\nwhile1\nwhile2\nwhile1\nwhile2\n-- if --\nIF\n-- case --\nCASE\n' stdout: -- assign -- -- function call -- -- for -- for1 1 for2 1 for1 2 for2 2 -- while -- while1 while2 while1 while2 -- if -- IF -- case -- CASEstderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.py | 16 trap DEBUG with compound commands [osh_.py stdout] Expected ' [16]\n-- assign --\n [17]\n [19]\n-- function call --\n [20]\n [23]\n-- for --\n [24]\n [25]\nfor1 1\n [26]\nfor2 1\n [24]\n [25]\nfor1 2\n [26]\nfor2 2\n [29]\n-- while --\n [30]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [37]\n-- if --\n [38]\n [39]\nIF\n [42]\n-- case --\n [43]\n [45]\nCASE\n', got '-- assign --\n-- function call --\n-- for --\nfor1 1\nfor2 1\nfor1 2\nfor2 2\n-- while --\nwhile1\nwhile2\nwhile1\nwhile2\n-- if --\nIF\n-- case --\nCASE\n' stdout: -- assign -- -- function call -- -- for -- for1 1 for2 1 for1 2 for2 2 -- while -- while1 while2 while1 while2 -- if -- IF -- case -- CASEstderr: osh warning: The 'DEBUG' hook isn't implemented |
osh_.cc | 16 trap DEBUG with compound commands [osh_.cc stdout] Expected ' [16]\n-- assign --\n [17]\n [19]\n-- function call --\n [20]\n [23]\n-- for --\n [24]\n [25]\nfor1 1\n [26]\nfor2 1\n [24]\n [25]\nfor1 2\n [26]\nfor2 2\n [29]\n-- while --\n [30]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [32]\nwhile1\n [33]\nwhile2\n [34]\n [31]\n [37]\n-- if --\n [38]\n [39]\nIF\n [42]\n-- case --\n [43]\n [45]\nCASE\n', got '-- assign --\n-- function call --\n-- for --\nfor1 1\nfor2 1\nfor1 2\nfor2 2\n-- while --\nwhile1\nwhile2\nwhile1\nwhile2\n-- if --\nIF\n-- case --\nCASE\n' stdout: -- assign -- -- function call -- -- for -- for1 1 for2 1 for1 2 for2 2 -- while -- while1 while2 while1 while2 -- if -- IF -- case -- CASEstderr: osh warning: The 'DEBUG' hook isn't implemented |
osh | 17 trap RETURN [osh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n', got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |
osh_.py | 17 trap RETURN [osh_.py stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n', got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |
osh_.cc | 17 trap RETURN [osh_.cc stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n', got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |
osh | 18 trap ERR and disable it [osh stdout] Expected '1\nerr [x y] 1\n2\n3\n', got '1\n2\n3\n' stdout: 1 2 3stderr: osh warning: The 'ERR' hook isn't implemented |
osh_.py | 18 trap ERR and disable it [osh_.py stdout] Expected '1\nerr [x y] 1\n2\n3\n', got '1\n2\n3\n' stdout: 1 2 3stderr: osh warning: The 'ERR' hook isn't implemented |
osh_.cc | 18 trap ERR and disable it [osh_.cc stdout] Expected '1\nerr [x y] 1\n2\n3\n', got '1\n2\n3\n' stdout: 1 2 3stderr: osh warning: The 'ERR' hook isn't implemented |