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 = 1840
	gNumDelete = 130
	gMemPos = 64016

	gNumMalloc = 86
	gNumFree = 0
	gMemPos2 = 9968
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 = 1829
	gNumDelete = 128
	gMemPos = 63776

	gNumMalloc = 86
	gNumFree = 0
	gMemPos2 = 9968
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 = 1853
	gNumDelete = 134
	gMemPos = 65088

	gNumMalloc = 98
	gNumFree = 0
	gMemPos2 = 10160
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 = 1832
	gNumDelete = 129
	gMemPos = 63776

	gNumMalloc = 81
	gNumFree = 0
	gMemPos2 = 9888
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:74: 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 = 1930
	gNumDelete = 151
	gMemPos = 65952

	gNumMalloc = 111
	gNumFree = 0
	gMemPos2 = 10368
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 = 1913
	gNumDelete = 145
	gMemPos = 65424

	gNumMalloc = 100
	gNumFree = 0
	gMemPos2 = 10192
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 = 2254
	gNumDelete = 216
	gMemPos = 77440

	gNumMalloc = 261
	gNumFree = 0
	gMemPos2 = 12768