Many tests in the GNU grep test suite failed in a Solaris 10 build. I think grep itself is working okay, but the tests themselves may be mis-constructed.
I am building grep 2.5.4 with options: $ ./configure --prefix=/opt/gnu --with-libiconv-prefix=/opt/gnu --with-included-getopt $ gmake --version GNU Make 3.81 $ gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) $ glib-config --version 1.2.10 $ uname -a SunOS hnamehere 5.10 Generic_138889-03 i86pc i386 i86pc The make runs without any real problems, except that I had to add -lcurses to LIBS in the Makefile. The full output of 'gmake check' is attached at gmake_test_results.txt. However, each test result seems actually to work when I do it by hand. For example: Testing: ../src/grep w. -o -b input: "XwA YwB/ZwC/" output: "4:wA/8:wB/12:wC/" expect: "1:wA/5:wB/9:wC/" FAIL ... but if I do it by hand: $ echo "XwA YwB/ZwC/" | ./src/grep w. -o -b 1:wA 5:wB 9:wC which is what is expected. Hope this is helpful to you. jd
Making check in intl gmake[1]: Entering directory `/opt/src/grep-2.5.4/intl' gmake[1]: Nothing to be done for `check'. gmake[1]: Leaving directory `/opt/src/grep-2.5.4/intl' Making check in po gmake[1]: Entering directory `/opt/src/grep-2.5.4/po' gmake[1]: Leaving directory `/opt/src/grep-2.5.4/po' Making check in lib gmake[1]: Entering directory `/opt/src/grep-2.5.4/lib' Making check in posix gmake[2]: Entering directory `/opt/src/grep-2.5.4/lib/posix' gmake[2]: Nothing to be done for `check'. gmake[2]: Leaving directory `/opt/src/grep-2.5.4/lib/posix' gmake[2]: Entering directory `/opt/src/grep-2.5.4/lib' gmake[2]: Nothing to be done for `check-am'. gmake[2]: Leaving directory `/opt/src/grep-2.5.4/lib' gmake[1]: Leaving directory `/opt/src/grep-2.5.4/lib' Making check in doc gmake[1]: Entering directory `/opt/src/grep-2.5.4/doc' gmake[1]: Nothing to be done for `check'. gmake[1]: Leaving directory `/opt/src/grep-2.5.4/doc' Making check in src gmake[1]: Entering directory `/opt/src/grep-2.5.4/src' gmake[1]: Nothing to be done for `check'. gmake[1]: Leaving directory `/opt/src/grep-2.5.4/src' Making check in tests gmake[1]: Entering directory `/opt/src/grep-2.5.4/tests' gmake check-TESTS gmake[2]: Entering directory `/opt/src/grep-2.5.4/tests' Please, do not be alarmed if some of the tests failed. Report them to <[email protected]>, with the line number, the name of the file, and grep version number 'grep --version'. Thank You. PASS: warning.sh PASS: khadafy.sh PASS: spencer1.sh PASS: bre.sh PASS: ere.sh PASS: pcre.sh PASS: status.sh PASS: empty.sh PASS: options.sh PASS: backref.sh PASS: file.sh Testing: ../src/grep w. -o -b input: "XwA YwB/ZwC/" output: "4:wA/8:wB/12:wC/" expect: "1:wA/5:wB/9:wC/" FAIL Testing: ../src/grep w. -o -b -i input: "XwA YwB/ZwC/" output: "4:wA/8:wB/12:wC/" expect: "1:wA/5:wB/9:wC/" FAIL Testing: ../src/grep w. -o -b -3 input: "XwA YwB/ZwC/" output: "4:wA/8:wB/12:wC/" expect: "1:wA/5:wB/9:wC/" FAIL Testing: ../src/grep w -F -o -b input: "XwA YwB/ZwC/" output: "4:w/8:w/12:w/" expect: "1:w/5:w/9:w/" FAIL Testing: ../src/grep w -F -o -b -i input: "XwA YwB/ZwC/" output: "4:w/8:w/12:w/" expect: "1:w/5:w/9:w/" FAIL Testing: ../src/grep w -F -o -b -3 input: "XwA YwB/ZwC/" output: "4:w/8:w/12:w/" expect: "1:w/5:w/9:w/" FAIL Testing: ../src/grep w. input: "wA wB/" output: "-n wA wB/" expect: "wA wB/" FAIL Testing: ../src/grep w. -h input: "wA wB/" output: "-n wA wB/" expect: "wA wB/" FAIL Testing: ../src/grep w. -H -h input: "wA wB/" output: "-n wA wB/" expect: "wA wB/" FAIL Testing: ../src/grep w. -H input: "wA wB/" output: "(standard input):-n wA wB/" expect: "(standard input):wA wB/" FAIL Testing: ../src/grep w. -h -H input: "wA wB/" output: "(standard input):-n wA wB/" expect: "(standard input):wA wB/" FAIL Testing: ../src/grep ^word_* -o input: "word_word/" output: "" expect: "word_/" FAIL Testing: ../src/grep word --color=always -i input: "WordA/wordb/WORDC/" output: "-n [01;31m[KWord[m[KA/[01;31m[Kword[m[Kb/[01;31m[KWORD[m[KC/" expect: "[01;31m[KWord[m[KA/[01;31m[Kword[m[Kb/[01;31m[KWORD[m[KC/" FAIL Testing: ../src/grep ^word_* --color=always input: "word_word/" output: "" expect: "[01;31m[Kword_[m[Kword/" FAIL Testing: ../src/grep \<word --color=always input: "wordword/" output: "-n [01;31m[Kword[m[Kword/" expect: "[01;31m[Kword[m[Kword/" FAIL Testing: ../src/grep ^4$ -m1 -A99 input: "4/40/" output: "" expect: "4/40/" FAIL Testing: ../src/grep ^4$ -m1 -A99 input: "4/04/" output: "" expect: "4/04/" FAIL Testing: ../src/grep ^4$ -m1 -A99 input: "4/444/" output: "" expect: "4/444/" FAIL Testing: ../src/grep ^4 -m1 -A99 input: "4/40/" output: "40//" expect: "4/" FAIL Testing: ../src/grep ^4 -m1 -A99 input: "4/04/" output: "" expect: "4/04/" FAIL Testing: ../src/grep ^4 -m1 -A99 input: "4/444/" output: "444//" expect: "4/" FAIL Testing: ../src/grep 4$ -m1 -A99 input: "4/40/" output: "-n 4/40//" expect: "4/40/" FAIL Testing: ../src/grep 4$ -m1 -A99 input: "4/04/" output: "-n 4/" expect: "4/" FAIL Testing: ../src/grep 4$ -m1 -A99 input: "4/444/" output: "-n 4/" expect: "4/" FAIL Testing: ../src/grep -wF -e A -e B -e C input: "A/CX/B/C/" output: "-n A/B/C/" expect: "A/B/C/" FAIL Testing: ../src/grep --color=always y* input: "xyz/" output: "-n x[01;31m[Ky[m[Kz//" expect: "x[01;31m[Ky[m[Kz/" FAIL Testing: ../src/grep -E --color=always -e bb -e cc -e ccc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -F --color=always -e bb -e cc -e ccc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -E --color=always -e bb -e ccc -e cc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -F --color=always -e bb -e ccc -e cc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -E -w --color=always -e bb -e ccc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -F -w --color=always -e bb -e ccc input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -E -w --color=always -e ccc -e bb input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -F -w --color=always -e ccc -e bb input: "a bb ccc dddd/" output: "-n a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" expect: "a [01;31m[Kbb[m[K [01;31m[Kccc[m[K dddd/" FAIL Testing: ../src/grep -E -w --color=always -e bb -e ccc input: "dddd ccc bb a/" output: "-n dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" expect: "dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" FAIL Testing: ../src/grep -F -w --color=always -e bb -e ccc input: "dddd ccc bb a/" output: "-n dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" expect: "dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" FAIL Testing: ../src/grep -E -w --color=always -e ccc -e bb input: "dddd ccc bb a/" output: "-n dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" expect: "dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" FAIL Testing: ../src/grep -F -w --color=always -e ccc -e bb input: "dddd ccc bb a/" output: "-n dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" expect: "dddd [01;31m[Kccc[m[K [01;31m[Kbb[m[K a/" FAIL Testing: ../src/grep -E -w --color=always bc input: "bcd abcd abc bc bcd abc/" output: "-n bcd abcd abc [01;31m[Kbc[m[K bcd abc/" expect: "bcd abcd abc [01;31m[Kbc[m[K bcd abc/" FAIL Testing: ../src/grep -F -w --color=always bc input: "bcd abcd abc bc bcd abc/" output: "-n bcd abcd abc [01;31m[Kbc[m[K bcd abc/" expect: "bcd abcd abc [01;31m[Kbc[m[K bcd abc/" FAIL Testing: ../src/grep -E -w --color=always bc input: "bc abcd bc/" output: "-n [01;31m[Kbc[m[K abcd [01;31m[Kbc[m[K/" expect: "[01;31m[Kbc[m[K abcd [01;31m[Kbc[m[K/" FAIL Testing: ../src/grep -F -w --color=always bc input: "bc abcd bc/" output: "-n [01;31m[Kbc[m[K abcd [01;31m[Kbc[m[K/" expect: "[01;31m[Kbc[m[K abcd [01;31m[Kbc[m[K/" FAIL FAIL: foad1.sh SKIP: fmbtest.sh PASS: yesno.sh ================================= 1 of 13 tests failed (1 tests were not run) Please report to [email protected] ================================= gmake[2]: *** [check-TESTS] Error 1 gmake[2]: Leaving directory `/opt/src/grep-2.5.4/tests' gmake[1]: *** [check-am] Error 2 gmake[1]: Leaving directory `/opt/src/grep-2.5.4/tests' gmake: *** [check-recursive] Error 1
