Results for brace-expansion.test.sh

statusoshosh_.pyosh_.cc
pass 484847
ok 777
FAIL 001
total555555
caseoshosh_.pyosh_.ccdescription
0pass pass pass no expansion
1ok ok ok incomplete trailing expansion
detailsdetailsdetails
2ok ok ok partial leading expansion
detailsdetailsdetails
3ok ok ok partial leading expansion 2
detailsdetailsdetails
4ok ok ok } in expansion
detailsdetailsdetails
5pass pass pass single expansion
6pass pass pass double expansion
7pass pass pass triple expansion
8pass pass pass double expansion with single and double quotes
9pass pass pass expansion with mixed quotes
10pass pass pass expansion with simple var
11pass pass pass double expansion with simple var -- bash bug
12pass pass pass double expansion with braced variable
13pass pass pass double expansion with literal and simple var
14pass pass FAIL expansion with command sub
details
15pass pass pass expansion with arith sub
16pass pass pass double expansion with escaped literals
17pass pass pass { in expansion
18pass pass pass quoted { in expansion
19pass pass pass Empty expansion
20pass pass pass Empty alternative
21pass pass pass Empty alternative with empty string suffix
22pass pass pass nested brace expansion
23pass pass pass triple nested brace expansion
24pass pass pass nested and double brace expansion
25pass pass pass expansion on RHS of assignment
26pass pass pass no expansion with RHS assignment
27pass pass pass Tilde expansion
28ok ok ok Tilde expansion with brace expansion
detailsdetailsdetails
29ok ok ok Two kinds of tilde expansion
detailsdetailsdetails
30pass pass pass Tilde expansion come before var expansion
31pass pass pass Number range expansion
32pass pass pass Ascending number range expansion with negative step is invalid
33pass pass pass regression: -1 step disallowed
34pass pass pass regression: 0 step disallowed
35pass pass pass Descending number range expansion with positive step is invalid
36pass pass pass Descending number range expansion with negative step
37pass pass pass Singleton ranges
38pass pass pass Singleton char ranges with steps
39pass pass pass Char range expansion
40pass pass pass Char range expansion with step
41pass pass pass Char ranges with steps of the wrong sign
42pass pass pass Mixed case char expansion is invalid
43pass pass pass Descending char range expansion
44pass pass pass Fixed width number range expansion
45pass pass pass Inconsistent fixed width number range expansion
46pass pass pass Inconsistent fixed width number range expansion
47pass pass pass Adjacent comma and range works
48pass pass pass Range inside comma works
49pass pass pass Mixed comma and range doesn't work
50ok ok ok comma and invalid range (adjacent and nested)
detailsdetailsdetails
51pass pass pass OSH provides an alternative to invalid syntax
52pass pass pass Side effect in expansion
53pass pass pass Invalid brace expansions don't expand
54pass pass pass Invalid brace expansions mixing characters and numbers
143 passed, 21 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh1 incomplete trailing expansion

stdout:
{a,b}_{
stderr:
osh_.py1 incomplete trailing expansion

stdout:
{a,b}_{
stderr:
osh_.cc1 incomplete trailing expansion

stdout:
{a,b}_{
stderr:
dumb_alloc:
	gNumNew = 1769
	gNumDelete = 127
	gMemPos = 61792

	gNumMalloc = 85
	gNumFree = 0
	gMemPos2 = 9952
osh2 partial leading expansion

stdout:
}_{a,b}
stderr:
osh_.py2 partial leading expansion

stdout:
}_{a,b}
stderr:
osh_.cc2 partial leading expansion

stdout:
}_{a,b}
stderr:
dumb_alloc:
	gNumNew = 1758
	gNumDelete = 125
	gMemPos = 61552

	gNumMalloc = 85
	gNumFree = 0
	gMemPos2 = 9952
osh3 partial leading expansion 2

stdout:
{x}_{a,b}
stderr:
osh_.py3 partial leading expansion 2

stdout:
{x}_{a,b}
stderr:
osh_.cc3 partial leading expansion 2

stdout:
{x}_{a,b}
stderr:
dumb_alloc:
	gNumNew = 1781
	gNumDelete = 130
	gMemPos = 62736

	gNumMalloc = 97
	gNumFree = 0
	gMemPos2 = 10144
osh4 } in expansion

stdout:
{a,b}}
stderr:
osh_.py4 } in expansion

stdout:
{a,b}}
stderr:
osh_.cc4 } in expansion

stdout:
{a,b}}
stderr:
dumb_alloc:
	gNumNew = 1761
	gNumDelete = 126
	gMemPos = 61552

	gNumMalloc = 80
	gNumFree = 0
	gMemPos2 = 9872
osh_.cc14 expansion with command sub

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

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh28 Tilde expansion with brace expansion

stdout:
foo~/bar ~/bar
stderr:
osh_.py28 Tilde expansion with brace expansion

stdout:
foo~/bar ~/bar
stderr:
osh_.cc28 Tilde expansion with brace expansion

stdout:
foo~/bar ~/bar
stderr:
dumb_alloc:
	gNumNew = 1858
	gNumDelete = 148
	gMemPos = 63760

	gNumMalloc = 110
	gNumFree = 0
	gMemPos2 = 10352
osh29 Two kinds of tilde expansion

stdout:
~/src ~root
stderr:
osh_.py29 Two kinds of tilde expansion

stdout:
~/src ~root
stderr:
osh_.cc29 Two kinds of tilde expansion

stdout:
~/src ~root
stderr:
dumb_alloc:
	gNumNew = 1842
	gNumDelete = 143
	gMemPos = 63264

	gNumMalloc = 99
	gNumFree = 0
	gMemPos2 = 10176
osh50 comma and invalid range (adjacent and nested)

stdout:
-{a,b}{1...3}-
-{a,{1...3}}-
{a,b}{}
stderr:
osh_.py50 comma and invalid range (adjacent and nested)

stdout:
-{a,b}{1...3}-
-{a,{1...3}}-
{a,b}{}
stderr:
osh_.cc50 comma and invalid range (adjacent and nested)

stdout:
-{a,b}{1...3}-
-{a,{1...3}}-
{a,b}{}
stderr:
dumb_alloc:
	gNumNew = 2171
	gNumDelete = 205
	gMemPos = 74672

	gNumMalloc = 260
	gNumFree = 0
	gMemPos2 = 12752