bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test suite failures under MacOS X


From: Jonathan Deber
Subject: test suite failures under MacOS X
Date: Fri, 15 Jun 2001 19:32:10 -0400

Hi All,

I have been trying to get bash 2.05 working under MacOS X. Everything compiles without trouble, and the resulting binary seems to be run just fine in my informal tests. However, when I run the included test suite, I get failures in the following tests:

run-cond, run-extglob, run-extglob2, run-glob-test, run-posixpat

Now, I'm more of a Mac developer and have very little unix system programming under my belt. I was wondering if someone could enlighten me as to the reasons for these failures, and if they are significant. I've included the output of the failed tests. My apologies for including an extra 400 extra lines in this message, but I thought the actual errors might be useful in diagnosing the problem(s). :)

Thanks very much.

Jonathan Deber




run-cond
warning: all of these tests will fail if the conditional command has not
warning: been compiled into the shell
warning: some of these tests will fail if extended pattern matching has not
warning: been compiled into the shell
31a32
 returns: 0
33,34c34
< returns: 1
< returns: 1
---
 returns: 0

run-extglob
1,2c1,2
< bad 1
< bad 2
---
 ok 1
 ok 2
4,6c4,6
< bad 4
< bad 5
< bad 6
---
 ok 4
 ok 5
 ok 6
8c8
< bad 8
---
 ok 8
10c10
< bad 10
---
 ok 10
13,14c13,14
< bad 13
< bad 14
---
 ok 13
 ok 14
17,23c17,23
< bad 17
< bad 18
< bad 19
< bad 20
< bad 21
< bad 22
< bad 23
---
 ok 17
 ok 18
 ok 19
 ok 20
 ok 21
 ok 22
 ok 23
25c25
< bad 25
---
 ok 25
27c27
< bad 27
---
 ok 27
29c29
< bad 29
---
 ok 29
31,32c31,32
< bad 31
< bad 32
---
 ok 31
 ok 32
35c35
< bad 35
---
 ok 35
42c42
< +(*)c
---
 abc
44c44
< @(*)
---
 abc
47,48c47,48
< a+(b|c)d
< a!(@(b|B))d
---
 abd acd
 acd
52,58c52,58
< no
< 1: abcdef
< 2: abcdef
< 3: abcdef
< 4: abcdef
< 5: abcdef
< 6: abcdef
---
 yes
 1: bcdef
 2: def
 3: abcde
 4: abc
 5: ef
 6: ef
60,65c60,66
< ab*(e|f)
< ab?*(e|f)
< ab*d+(e|f)
< ab**(e|f)
< ab*+(e|f)
< bad 37
---
 ab abef
 abcfef abef
 abcdef
 ab abcdef abcfef abef
 abcdef abcfef abef
 ok 37
 ok 38
69d69
< a[^[:alnum:]]b
71,77c71,78
< a@([^[:alnum:]])b
< a@([-.,:; _])b
< a@([.])b
< a@([^.])b
< a@([^x])b
< a+([^[:alnum:]])b
< a@(.|[^[:alnum:]])b
---
 a b a,b a-b a.b a:b a;b a_b
 a b a,b a-b a.b a:b a;b a_b
 a b a,b a-b a.b a:b a;b a_b
 a.b
 a b a,b a-b a:b a;b a_b
 a b a,b a-b a.b a:b a;b a_b
 a b a,b a-b a.b a:b a;b a_b
 a b a,b a-b a.b a:b a;b a_b

run-extglob2
1,10c1,5
< 1:  [[ fofo = *(f*(o)) ]]
< Test failed:  [[ fofo = *(f*(o)) ]]
< 1:  [[ ffo = *(f*(o)) ]]
< Test failed:  [[ ffo = *(f*(o)) ]]
< 1:  [[ foooofo = *(f*(o)) ]]
< Test failed:  [[ foooofo = *(f*(o)) ]]
< 1:  [[ foooofof = *(f*(o)) ]]
< Test failed:  [[ foooofof = *(f*(o)) ]]
< 1:  [[ fooofoofofooo = *(f*(o)) ]]
< Test failed:  [[ fooofoofofooo = *(f*(o)) ]]
---
 0:  [[ fofo = *(f*(o)) ]]
 0:  [[ ffo = *(f*(o)) ]]
 0:  [[ foooofo = *(f*(o)) ]]
 0:  [[ foooofof = *(f*(o)) ]]
 0:  [[ fooofoofofooo = *(f*(o)) ]]
14,15c9
< 1:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
---
 0:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
17,18c11
< 1:  [[ foooxfooxfoxfooox = *(f*(o)x) ]]
< Test failed:  [[ foooxfooxfoxfooox = *(f*(o)x) ]]
---
 0:  [[ foooxfooxfoxfooox = *(f*(o)x) ]]
20,29c13,17
< 1:  [[ foooxfooxfxfooox = *(f*(o)x) ]]
< Test failed:  [[ foooxfooxfxfooox = *(f*(o)x) ]]
< 1:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
< 1:  [[ ofoooxoofxo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofoooxoofxo = *(*(of*(o)x)o) ]]
< 1:  [[ ofoooxoofxoofoooxoofxo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofoooxoofxoofoooxoofxo = *(*(of*(o)x)o) ]]
< 1:  [[ ofoooxoofxoofoooxoofxoo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofoooxoofxoofoooxoofxoo = *(*(of*(o)x)o) ]]
---
 0:  [[ foooxfooxfxfooox = *(f*(o)x) ]]
 0:  [[ ofxoofxo = *(*(of*(o)x)o) ]]
 0:  [[ ofoooxoofxo = *(*(of*(o)x)o) ]]
 0:  [[ ofoooxoofxoofoooxoofxo = *(*(of*(o)x)o) ]]
 0:  [[ ofoooxoofxoofoooxoofxoo = *(*(of*(o)x)o) ]]
31,36c19,21
< 1:  [[ ofoooxoofxoofoooxoofxooofxofxo = *(*(of*(o)x)o) ]]
< Test failed:  [[ ofoooxoofxoofoooxoofxooofxofxo = *(*(of*(o)x)o) ]]
< 1:  [[ aac = *(@(a))a@(c) ]]
< Test failed:  [[ aac = *(@(a))a@(c) ]]
< 1:  [[ ac = *(@(a))a@(c) ]]
< Test failed:  [[ ac = *(@(a))a@(c) ]]
---
 0:  [[ ofoooxoofxoofoooxoofxooofxofxo = *(*(of*(o)x)o) ]]
 0:  [[ aac = *(@(a))a@(c) ]]
 0:  [[ ac = *(@(a))a@(c) ]]
38,39c23
< 1:  [[ aaac = *(@(a))a@(c) ]]
< Test failed:  [[ aaac = *(@(a))a@(c) ]]
---
 0:  [[ aaac = *(@(a))a@(c) ]]
41,56c25,32
< 1:  [[ abcd = ?@(a|b)*@(c)d ]]
< Test failed:  [[ abcd = ?@(a|b)*@(c)d ]]
< 1:  [[ abcd = @(ab|a*@(b))*(c)d ]]
< Test failed:  [[ abcd = @(ab|a*@(b))*(c)d ]]
< 1:  [[ acd = @(ab|a*(b))*(c)d ]]
< Test failed:  [[ acd = @(ab|a*(b))*(c)d ]]
< 1:  [[ abbcd = @(ab|a*(b))*(c)d ]]
< Test failed:  [[ abbcd = @(ab|a*(b))*(c)d ]]
< 1:  [[ effgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< Test failed:  [[ effgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< 1:  [[ efgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< Test failed:  [[ efgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< 1:  [[ egz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< Test failed:  [[ egz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< 1:  [[ egzefffgzbcdij = *(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
< Test failed:  [[ egzefffgzbcdij = *(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
---
 0:  [[ abcd = ?@(a|b)*@(c)d ]]
 0:  [[ abcd = @(ab|a*@(b))*(c)d ]]
 0:  [[ acd = @(ab|a*(b))*(c)d ]]
 0:  [[ abbcd = @(ab|a*(b))*(c)d ]]
 0:  [[ effgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
 0:  [[ efgz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
 0:  [[ egz = @(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
 0:  [[ egzefffgzbcdij = *(b+(c)d|e*(f)g?|?(h)i@(j|k)) ]]
58,61c34,35
< 1:  [[ ofoofo = *(of+(o)) ]]
< Test failed:  [[ ofoofo = *(of+(o)) ]]
< 1:  [[ oxfoxoxfox = *(oxf+(ox)) ]]
< Test failed:  [[ oxfoxoxfox = *(oxf+(ox)) ]]
---
 0:  [[ ofoofo = *(of+(o)) ]]
 0:  [[ oxfoxoxfox = *(oxf+(ox)) ]]
63,76c37,43
< 1:  [[ ofoofo = *(of+(o)|f) ]]
< Test failed:  [[ ofoofo = *(of+(o)|f) ]]
< 1:  [[ foofoofo = @(foo|f|fo)*(f|of+(o)) ]]
< Test failed:  [[ foofoofo = @(foo|f|fo)*(f|of+(o)) ]]
< 1:  [[ oofooofo = *(of|oof+(o)) ]]
< Test failed:  [[ oofooofo = *(of|oof+(o)) ]]
< 1:  [[ fffooofoooooffoofffooofff = *(*(f)*(o)) ]]
< Test failed:  [[ fffooofoooooffoofffooofff = *(*(f)*(o)) ]]
< 1:  [[ fofoofoofofoo = *(fo|foo) ]]
< Test failed:  [[ fofoofoofofoo = *(fo|foo) ]]
< 1:  [[ foo = !(x) ]]
< Test failed:  [[ foo = !(x) ]]
< 1:  [[ foo = !(x)* ]]
< Test failed:  [[ foo = !(x)* ]]
---
 0:  [[ ofoofo = *(of+(o)|f) ]]
 0:  [[ foofoofo = @(foo|f|fo)*(f|of+(o)) ]]
 0:  [[ oofooofo = *(of|oof+(o)) ]]
 0:  [[ fffooofoooooffoofffooofff = *(*(f)*(o)) ]]
 0:  [[ fofoofoofofoo = *(fo|foo) ]]
 0:  [[ foo = !(x) ]]
 0:  [[ foo = !(x)* ]]
78,85c45,48
< 1:  [[ foo = !(foo)* ]]
< Test failed:  [[ foo = !(foo)* ]]
< 1:  [[ foobar = !(foo) ]]
< Test failed:  [[ foobar = !(foo) ]]
< 1:  [[ foobar = !(foo)* ]]
< Test failed:  [[ foobar = !(foo)* ]]
< 1:  [[ moo.cow = !(*.*).!(*.*) ]]
< Test failed:  [[ moo.cow = !(*.*).!(*.*) ]]
---
 0:  [[ foo = !(foo)* ]]
 0:  [[ foobar = !(foo) ]]
 0:  [[ foobar = !(foo)* ]]
 0:  [[ moo.cow = !(*.*).!(*.*) ]]
88,105c51,59
< 1:  [[ fff = !(f) ]]
< Test failed:  [[ fff = !(f) ]]
< 1:  [[ fff = *(!(f)) ]]
< Test failed:  [[ fff = *(!(f)) ]]
< 1:  [[ fff = +(!(f)) ]]
< Test failed:  [[ fff = +(!(f)) ]]
< 1:  [[ ooo = !(f) ]]
< Test failed:  [[ ooo = !(f) ]]
< 1:  [[ ooo = *(!(f)) ]]
< Test failed:  [[ ooo = *(!(f)) ]]
< 1:  [[ ooo = +(!(f)) ]]
< Test failed:  [[ ooo = +(!(f)) ]]
< 1:  [[ foo = !(f) ]]
< Test failed:  [[ foo = !(f) ]]
< 1:  [[ foo = *(!(f)) ]]
< Test failed:  [[ foo = *(!(f)) ]]
< 1:  [[ foo = +(!(f)) ]]
< Test failed:  [[ foo = +(!(f)) ]]
---
 0:  [[ fff = !(f) ]]
 0:  [[ fff = *(!(f)) ]]
 0:  [[ fff = +(!(f)) ]]
 0:  [[ ooo = !(f) ]]
 0:  [[ ooo = *(!(f)) ]]
 0:  [[ ooo = +(!(f)) ]]
 0:  [[ foo = !(f) ]]
 0:  [[ foo = *(!(f)) ]]
 0:  [[ foo = +(!(f)) ]]
109,110c63
< 1:  [[ foot = @(!(z*)|*x) ]]
< Test failed:  [[ foot = @(!(z*)|*x) ]]
---
 0:  [[ foot = @(!(z*)|*x) ]]
112,117c65,67
< 1:  [[ foox = @(!(z*)|*x) ]]
< Test failed:  [[ foox = @(!(z*)|*x) ]]
< 1:  [[ zoox = @(!(z*)|*x) ]]
< Test failed:  [[ zoox = @(!(z*)|*x) ]]
< 1:  [[ foo = *(!(foo)) ]]
< Test failed:  [[ foo = *(!(foo)) ]]
---
 0:  [[ foox = @(!(z*)|*x) ]]
 0:  [[ zoox = @(!(z*)|*x) ]]
 0:  [[ foo = *(!(foo)) ]]
119,121c69,70
< 1:  [[ foobb = !(foo)b* ]]
< Test failed:  [[ foobb = !(foo)b* ]]
< 51 tests failed.
---
 0:  [[ foobb = !(foo)b* ]]
 0 tests failed.

run-glob-test
7c7,10
< argv[1] = <a*>
---
 argv[1] = <a>
 argv[2] = <abc>
 argv[3] = <abd>
 argv[4] = <abe>
49c52
< argv[1] = <a*?/*>
---
 argv[1] = <a*b/ooo>
88a92,95
 ok 32
 ok 33
 ok 34
 ok 35
95,102c102,111
< argv[1] = <b>
< argv[2] = <bb>
< argv[3] = <bcd>
< argv[4] = <bdir>
< argv[1] = <b>
< argv[2] = <bb>
< argv[3] = <bcd>
< argv[4] = <bdir>
---
 argv[1] = <Beware>
 argv[2] = <b>
 argv[3] = <bb>
 argv[4] = <bcd>
 argv[5] = <bdir>
 argv[1] = <Beware>
 argv[2] = <b>
 argv[3] = <bb>
 argv[4] = <bcd>
 argv[5] = <bdir>

run-posixpat
0a1,4
 ok 1
 ok 2
 ok 3
 ok 4
2a7,10
 ok 7
 ok 8
 ok 9
 ok 10
3a12
 ok 12
8,9c17,20
< oops -- print
< oops - skip brackpat
---
 ok 17
 ok 18
 ok 19
 ok 20
11,13c22,28
< oops newline
< oops newline
< oops 2
---
 ok -- space
 ok -- blank
 ok 1
 ok 2
 ok 3
 ok 4
 ok 5
14a30
 ok 7
15a32,33
 ok 9
 ok 10
17,18c35,40
< oops -- bad range 2
< oops -- bad range 3
---
 ok 12
 ok 13
 ok 14
 ok 15
 ok 16
 ok 1
--
Jonathan Deber
jonathan.deber@utoronto.ca



reply via email to

[Prev in Thread] Current Thread [Next in Thread]