Comment 13 for bug 1081162

Revision history for this message
Anil Ranjan Roy Samanta Singhar (anil-singhar) wrote :

Fixed stat, statfs, symlinkat issues and set up the mksh test shell. Now manual testing passes for all, dash and gzip seems to be working fine but there are 5 failures out of the 436 mksh tests. So I am debugging them one by one.

I noticed compilation errors while building mksh for klibc, but dont know if I am OK with them or not. Now I am just assuming that they are probably OK and debugging the failures. The 5 mksh test failures are as follows. If anyone has any idea, please share. Thanks.
----------------------------------------------------------------------------------------------------------------
root@genericarmv8:~/anilss/AArch64/mksh# ./mksh test.sh -p $PWD/mksh
Testing mksh for conformance:
# $MirOS: src/bin/mksh/check.t,v 1.599 2013/02/24 14:22:41 tg Exp $
        @(#)MIRBSD KSH R44 2013/02/24
This shell is actually:
        @(#)MIRBSD KSH R44 2013/02/24
test.sh built for mksh R44 2013/02/24
Trying Perl interpreter 'perl5'...
test.sh[70]: perl5: not found
Errorlevel 127, running on ''
=> not using
Trying Perl interpreter 'perl'...
Errorlevel 0, running on 'linux, Perl version 5.014003'
=> using it
+ perl ./check.pl -p /home/root/anilss/AArch64/mksh/mksh -C shell:legacy-no,int:32 -v -s ./check.t
pass ./check.t:KSH_VERSION
pass ./check.t:selftest-1
pass ./check.t:selftest-2
. . .
pass ./check.t:cd-history
FAIL ./check.t:cd-pe (ignored)
        Description:
                Check package for cd -Pe
        unexpected stdout - first difference: line 2, char 5 (wanted 'n', got 'l'
        wanted:
                0=0
                1=0,noread/target
                2=0,noread/target/subdir
                now with -e:
                0=0
                1=0,noread/target
                2=1,noread/target/subdir
        got:
                0=0
                1=0,link/target
                2=0,link/target/subdir
                now with -e:
                0=0
                1=0,link/target
                2=1,link/target/subdir
pass ./check.t:env-prompt
pass ./check.t:expand-ugly
. . .
pass ./check.t:glob-bad-1
FAIL ./check.t:glob-bad-2
        Description:
                Check that symbolic links aren't stat()'d
        unexpected stdout - first difference: line 2, char 2 (wanted 'i', got '*'
        wanted:
                dir/abc
                dir/abc
        got:
                dir/abc
                d*/abc
pass ./check.t:glob-range-1
pass ./check.t:glob-range-2
. . .
pass ./check.t:history-subst-4
pass ./check.t:history-subst-5
FAIL ./check.t:history-ed-1 (ignored)
        Description:
                Basic (ed) editing works (assumes you have generic ed editor
                that prints no prompts). This is for newish ed(1) and stderr.
        unexpected exit status 32512 (exit-code 127), expected 0
        unexpected stdout - got too little output
        wanted:
                abc def
                FOOBAR def
        got:
                abc def
        unexpected stderr - wanted pattern:
                /^X*13\n16\necho FOOBAR def\nX*$/
        got:
                XX/home/root/anilss/AArch64/mksh/mksh: /bin/ed: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[3]: s/abc/FOOBAR/: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[4]: w: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[5]: q: not found
                X
        [incomplete last line]
FAIL ./check.t:history-ed-2 (ignored)
        Description:
                Correct command is edited when number given
        unexpected exit status 32512 (exit-code 127), expected 0
        unexpected stdout - got too little output
        wanted:
                line 1
                line 2 is here
                line 3
                line 4
                line 2 is changed
        got:
                line 1
                line 2 is here
                line 3
                line 4
        unexpected stderr - wanted pattern:
                /^X*20\n23\necho line 2 is changed\nX*$/
        got:
                XXXXX/home/root/anilss/AArch64/mksh/mksh: /bin/ed: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[6]: s/is: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[7]: w: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[8]: q: not found
                X
        [incomplete last line]
FAIL ./check.t:history-ed-3 (ignored)
        Description:
                Newly created multi line commands show up as single command
                in history.
        unexpected stdout - first difference: line 2, char 1 (wanted 'F', got 'a'
        wanted:
                abc def
                FOOBAR def
                a new line
                1 echo abc def
                2 echo FOOBAR def
                3 echo a new line
        got:
                abc def
                a new line
                1 echo abc def
                2 fc echo
                3 s/abc/FOOBAR/
                4 $a
                5 echo a new line
                6 .
                7 w
                8 q
        unexpected stderr - wanted pattern:
                /^X*13\n32\necho FOOBAR def\necho a new line\nX*$/
        got:
                XX/home/root/anilss/AArch64/mksh/mksh: /bin/ed: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[3]: s/abc/FOOBAR/: not found
                XXX/home/root/anilss/AArch64/mksh/mksh: <stdin>[6]: .: missing argument
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[7]: w: not found
                X/home/root/anilss/AArch64/mksh/mksh: <stdin>[8]: q: not found
                XX
        [incomplete last line]
pass ./check.t:IFS-space-1
pass ./check.t:IFS-colon-1
. . .
pass ./check.t:command-shift
pass ./check.t:duffs-device
Total failed: 5 (4 ignored) (1 unexpected)
Total passed: 431
root@genericarmv8:~/anilss/AArch64/mksh#
--------------------------------------------------------------------------------------------------------------------------------------------