Results for regex.test.sh

statusoshosh_.pyosh_.cc
pass 26233
FAIL 2525
total282828
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL BASH_REMATCH
detailsdetails
1pass pass FAIL Match is unanchored at both ends
details
2pass pass FAIL Failed match
details
3pass pass FAIL Regex quoted with \ -- preferred in bash
details
4pass pass FAIL Regex quoted with single quotes
details
5pass pass FAIL Regex quoted with double quotes
details
6pass pass FAIL Fix single quotes by storing in variable
details
7pass pass FAIL Fix single quotes by storing in variable
details
8pass pass FAIL Double quoting pat variable -- again bash doesn't like it.
details
9pass pass FAIL Mixing quoted and unquoted parts
details
10pass pass pass Regex with == and not =~ is parse error, different lexer mode required
11pass pass pass Omitting ( )
12pass pass FAIL Malformed regex
details
13FAIL FAIL FAIL Regex with char class containing space
detailsdetailsdetails
14FAIL FAIL FAIL Operators and space lose meaning inside ()
detailsdetailsdetails
15pass pass FAIL Regex with |
details
16pass pass FAIL Regex to match literal brackets []
details
17pass pass FAIL Regex to match literals . ^ $ etc.
details
18pass pass FAIL Unquoted { is a regex parse error
details
19pass pass pass Fatal error inside [[ =~ ]]
20pass pass FAIL Quoted { and +
details
21pass FAIL FAIL Escaped {
detailsdetails
22pass FAIL FAIL Escaped { stored in variable first
detailsdetails
23pass pass FAIL regex with ?
details
24pass pass FAIL regex with unprintable characters
details
25pass pass FAIL pattern $f(x) -- regression
details
26pass pass FAIL pattern a=(1)
details
27pass pass FAIL pattern @f(x)
details
52 passed, 0 OK, 0 not implemented, 0 BUG, 32 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh_.py0 BASH_REMATCH

[osh_.py stdout] Expected "['foo123', 'foo', '123']\n", got '(cmd_value.Argv argv:[argv.py foo123 foo 123] arg_spids:[21 23 23 23])\n'

stdout:
(cmd_value.Argv argv:[argv.py foo123 foo 123] arg_spids:[21 23 23 23])
stderr:
Unhandled SimpleCommand
osh_.cc0 BASH_REMATCH

[osh_.cc stdout] Expected "['foo123', 'foo', '123']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc1 Match is unanchored at both ends

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc2 Failed match

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc3 Regex quoted with \ -- preferred in bash

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc4 Regex quoted with single quotes

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc5 Regex quoted with double quotes

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc6 Fix single quotes by storing in variable

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc7 Fix single quotes by storing in variable

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc8 Double quoting pat variable -- again bash doesn't like it.

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc9 Mixing quoted and unquoted parts

[osh_.cc stdout] Expected 'true\ntrue\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc12 Malformed regex

[osh_.cc status] Expected 2, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh13 Regex with char class containing space

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh_.py13 Regex with char class containing space

[osh_.py stdout] Expected 'true\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh_.cc13 Regex with char class containing space

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh14 Operators and space lose meaning inside ()

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]
osh_.py14 Operators and space lose meaning inside ()

[osh_.py stdout] Expected 'true\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]
osh_.cc14 Operators and space lose meaning inside ()

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]
osh_.cc15 Regex with |

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc16 Regex to match literal brackets []

[osh_.cc stdout] Expected 'true\ntrue\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc17 Regex to match literals . ^ $ etc.

[osh_.cc stdout] Expected 'false\ntrue\nfalse\ntrue\nfalse\ntrue\nfalse\ntrue\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc18 Unquoted { is a regex parse error

[osh_.cc status] Expected 2, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc20 Quoted { and +

[osh_.cc stdout] Expected 'yes {\nyes +\nyes *\nyes ?\nyes ^\nyes $\nyes (\nyes )\nyes |\nyes \\\n---\nyes .\nno .\n---\na 0\n- 1\nb 0\nz 0\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.py21 Escaped {

[osh_.py stdout] Expected "['$PA', '$', 'PA']\n", got "(cmd_value.Argv argv:[argv.py '$PA' '$' PA] arg_spids:[26 28 28 28])\n"

stdout:
(cmd_value.Argv argv:[argv.py '$PA' '$' PA] arg_spids:[26 28 28 28])
stderr:
Unhandled SimpleCommand
osh_.cc21 Escaped {

[osh_.cc stdout] Expected "['$PA', '$', 'PA']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.py22 Escaped { stored in variable first

[osh_.py stdout] Expected "['$PA', '$', 'PA']\n", got "(cmd_value.Argv argv:[argv.py '$PA' '$' PA] arg_spids:[19 21 21 21])\n"

stdout:
(cmd_value.Argv argv:[argv.py '$PA' '$' PA] arg_spids:[19 21 21 21])
stderr:
Unhandled SimpleCommand
osh_.cc22 Escaped { stored in variable first

[osh_.cc stdout] Expected "['$PA', '$', 'PA']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc23 regex with ?

[osh_.cc stdout] Expected 'true\ntrue\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc24 regex with unprintable characters

[osh_.cc stdout] Expected 'status=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc25 pattern $f(x) -- regression

[osh_.cc stdout] Expected 'status=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc26 pattern a=(1)

[osh_.cc stdout] Expected 'status=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.
osh_.cc27 pattern @f(x)

[osh_.cc stdout] Expected 'status=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:43: List<Str *> *libc::regex_match(Str *, Str *): Assertion `0' failed.