Git development
 help / color / mirror / Atom feed
* t9500-gitweb-standalone-no-errors.sh.prb 4 errors
@ 2009-03-08  0:11 Boyd Lynn Gerber
  2009-03-08  1:05 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Boyd Lynn Gerber @ 2009-03-08  0:11 UTC (permalink / raw)
  To: Git List

Test fails for SCO OpenServer 6.0 MP4 with 1.6.2

Below is the set -x output of the tests.

-- 
Boyd Gerber <gerberb@zenez.com> 801 849-0213
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047


+ test_description='gitweb as standalone script (basic tests).

This test runs gitweb (git web interface) as CGI script from
commandline, and checks that it would not write any errors
or warnings to log.'
+ . ./test-lib.sh
++ ORIGINAL_TERM=xterm
++ LANG=C
++ LC_ALL=C
++ PAGER=cat
++ TZ=UTC
++ TERM=dumb
++ export LANG LC_ALL PAGER TERM TZ
++ EDITOR=:
++ VISUAL=:
++ unset GIT_EDITOR
++ unset AUTHOR_DATE
++ unset AUTHOR_EMAIL
++ unset AUTHOR_NAME
++ unset COMMIT_AUTHOR_EMAIL
++ unset COMMIT_AUTHOR_NAME
++ unset EMAIL
++ unset GIT_ALTERNATE_OBJECT_DIRECTORIES
++ unset GIT_AUTHOR_DATE
++ GIT_AUTHOR_EMAIL=author@example.com
++ GIT_AUTHOR_NAME='A U Thor'
++ unset GIT_COMMITTER_DATE
++ GIT_COMMITTER_EMAIL=committer@example.com
++ GIT_COMMITTER_NAME='C O Mitter'
++ unset GIT_DIFF_OPTS
++ unset GIT_DIR
++ unset GIT_WORK_TREE
++ unset GIT_EXTERNAL_DIFF
++ unset GIT_INDEX_FILE
++ unset GIT_OBJECT_DIRECTORY
++ unset GIT_CEILING_DIRECTORIES
++ unset SHA1_FILE_DIRECTORIES
++ unset SHA1_FILE_DIRECTORY
++ GIT_MERGE_VERBOSITY=5
++ export GIT_MERGE_VERBOSITY
++ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
++ export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
++ export EDITOR VISUAL
++ GIT_TEST_CMP='diff -u'
++ unset CDPATH
++ case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in
+++ echo
+++ tr '[A-Z]' '[a-z]'
++ '[' xxterm '!=' xdumb ']'
++ TERM=xterm
++ export TERM
++ '[' -t 1 ']'
++ test 0 -ne 0
++ test -n ''
++ test 'gitweb as standalone script (basic tests).

This test runs gitweb (git web interface) as CGI script from
commandline, and checks that it would not write any errors
or warnings to log.' '!=' ''
++ test '' = t
++ exec
++ test '' = t
++ exec
++ test_failure=0
++ test_count=0
++ test_fixed=0
++ test_broken=0
++ test_success=0
++ trap die EXIT
+++ pwd
++ TEST_DIRECTORY=/tmp/git-1.6.2/t
++ 
PATH=/tmp/git-1.6.2/t/..:/usr/local/bin:/usr/gnu/bin:/home/gerberb/bin:/usr/bin:/bin:/sbin:/usr/sbin:/etc:/usr/X11R6/bin
+++ pwd
++ GIT_EXEC_PATH=/tmp/git-1.6.2/t/..
+++ pwd
++ GIT_TEMPLATE_DIR=/tmp/git-1.6.2/t/../templates/blt
++ unset GIT_CONFIG
++ GIT_CONFIG_NOSYSTEM=1
++ GIT_CONFIG_NOGLOBAL=1
++ export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM 
GIT_CONFIG_NOGLOBAL
+++ pwd
+++ pwd
++ 
GITPERLLIB=/tmp/git-1.6.2/t/../perl/blib/lib:/tmp/git-1.6.2/t/../perl/blib/arch/auto/Git
++ export GITPERLLIB
++ test -d ../templates/blt
++ test -x ../test-chmtime
++ . ../GIT-BUILD-OPTIONS
+++ SHELL_PATH=/usr/bin/bash
+++ TAR=gtar
+++ basename ./t9500-gitweb-standalone-no-errors.sh .sh
++ test='trash directory.t9500-gitweb-standalone-no-errors'
++ test '!' -z ''
++ remove_trash='/tmp/git-1.6.2/t/trash 
directory.t9500-gitweb-standalone-no-errors'
++ rm -fr 'trash directory.t9500-gitweb-standalone-no-errors'
++ test_create_repo 'trash directory.t9500-gitweb-standalone-no-errors'
++ test 1 = 1
+++ pwd
++ owd=/tmp/git-1.6.2/t
++ repo='trash directory.t9500-gitweb-standalone-no-errors'
++ mkdir -p 'trash directory.t9500-gitweb-standalone-no-errors'
++ cd 'trash directory.t9500-gitweb-standalone-no-errors'
++ /tmp/git-1.6.2/t/../git init --template=/tmp/git-1.6.2/t/../templates/blt/
++ mv .git/hooks .git/hooks-disabled
++ cd /tmp/git-1.6.2/t
++ cd -P 'trash directory.t9500-gitweb-standalone-no-errors'
+++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
++ this_test=t9500
+ perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)'
+ gitweb_init
++ perl -MPOSIX=getcwd -e 'print quotemeta(getcwd)'
+ safe_pwd='\/tmp\/git\-1\.6\.2\/t\/trash\ 
directory\.t9500\-gitweb\-standalone\-no\-errors'
+ cat
+ cat
+ test_expect_success 'no commits: projects_list (implicit)' gitweb_run
+ test 2 = 2
+ test_skip 'no commits: projects_list (implicit)' gitweb_run
++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t9500
...
+ echo ''
+ test_debug 'cat gitweb.log'
+ test '' = ''
+ test_expect_success '.git blob (file)' 'gitweb_run "p=.git;a=blob;f=file"'
+ test 2 = 2
+ test_skip '.git blob (file)' 'gitweb_run "p=.git;a=blob;f=file"'
++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t9500
++ expr 17 + 1
+ this_test=t9500.18
+ to_skip=
+ case "$to_skip" in
+ false
+ say 'expecting success: gitweb_run "p=.git;a=blob;f=file"'
+ say_color info 'expecting success: gitweb_run "p=.git;a=blob;f=file"'
+ test -z info
+ shift
+ echo '* expecting success: gitweb_run "p=.git;a=blob;f=file"'
+ test_run_ 'gitweb_run "p=.git;a=blob;f=file"'
+ eval 'gitweb_run "p=.git;a=blob;f=file"'
+ eval_ret=255
+ return 0
+ '[' 0 = 0 -a 255 = 0 ']'
+ test_failure_ '.git blob (file)' 'gitweb_run "p=.git;a=blob;f=file"'
++ expr 17 + 1
+ test_count=18
++ expr 0 + 1
+ test_failure=1
+ say_color error 'FAIL 18: .git blob (file)'
+ test -z error
+ shift
+ echo '* FAIL 18: .git blob (file)'
* FAIL 18: .git blob (file)
+ shift
+ echo 'gitweb_run "p=.git;a=blob;f=file"'
+ sed -e 's/^/	/'
      	gitweb_run "p=.git;a=blob;f=file"
+ test '' = ''
+ echo ''
+ test_debug 'cat gitweb.log'
+ test '' = ''
+ test_expect_success '.git blob_plain (file)' 'gitweb_run 
"p=.git;a=blob_plain;f=file"'
+ test 2 = 2
+ test_skip '.git blob_plain (file)' 'gitweb_run "p=.git;a=blob_plain;f=file"'
++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t9500
++ expr 18 + 1
+ this_test=t9500.19
+ to_skip=
+ case "$to_skip" in
+ false
+ say 'expecting success: gitweb_run "p=.git;a=blob_plain;f=file"'
+ say_color info 'expecting success: gitweb_run "p=.git;a=blob_plain;f=file"'
+ test -z info
+ shift
+ echo '* expecting success: gitweb_run "p=.git;a=blob_plain;f=file"'
+ test_run_ 'gitweb_run "p=.git;a=blob_plain;f=file"'
+ eval 'gitweb_run "p=.git;a=blob_plain;f=file"'
+ eval_ret=255
+ return 0
+ '[' 0 = 0 -a 255 = 0 ']'
+ test_failure_ '.git blob_plain (file)' 'gitweb_run 
"p=.git;a=blob_plain;f=file"'
++ expr 18 + 1
+ test_count=19
++ expr 1 + 1
+ test_failure=2
+ say_color error 'FAIL 19: .git blob_plain (file)'
+ test -z error
+ shift
+ echo '* FAIL 19: .git blob_plain (file)'
* FAIL 19: .git blob_plain (file)
+ shift
+ echo 'gitweb_run "p=.git;a=blob_plain;f=file"'
+ sed -e 's/^/	/'
      	gitweb_run "p=.git;a=blob_plain;f=file"
...
+ echo ''
+ test_debug 'cat gitweb.log'
+ test '' = ''
+ test_expect_success 'path_info: project/branch:file' 'gitweb_run "" 
"/.git/master:file"'
+ test 2 = 2
+ test_skip 'path_info: project/branch:file' 'gitweb_run "" 
"/.git/master:file"'
++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t9500
++ expr 61 + 1
+ this_test=t9500.62
+ to_skip=
+ case "$to_skip" in
+ false
+ say 'expecting success: gitweb_run "" "/.git/master:file"'
+ say_color info 'expecting success: gitweb_run "" "/.git/master:file"'
+ test -z info
+ shift
+ echo '* expecting success: gitweb_run "" "/.git/master:file"'
+ test_run_ 'gitweb_run "" "/.git/master:file"'
+ eval 'gitweb_run "" "/.git/master:file"'
+ eval_ret=2
+ return 0
+ '[' 0 = 0 -a 2 = 0 ']'
+ test_failure_ 'path_info: project/branch:file' 'gitweb_run "" 
"/.git/master:file"'
++ expr 61 + 1
+ test_count=62
++ expr 2 + 1
+ test_failure=3
+ say_color error 'FAIL 62: path_info: project/branch:file'
+ test -z error
+ shift
+ echo '* FAIL 62: path_info: project/branch:file'
* FAIL 62: path_info: project/branch:file
+ shift
+ echo 'gitweb_run "" "/.git/master:file"'
+ sed -e 's/^/	/'
      	gitweb_run "" "/.git/master:file"
...
+ test -z ''
+ test -n ''
+ shift
+ echo '*   ok 65: path_info: project/branch:dir/ (non-existent)'
*   ok 65: path_info: project/branch:dir/ (non-existent)
+ echo ''
+ test_debug 'cat gitweb.log'
+ test '' = ''
+ test_expect_success 'path_info: project/branch:/file' 'gitweb_run "" 
"/.git/master:/file"'
+ test 2 = 2
+ test_skip 'path_info: project/branch:/file' 'gitweb_run "" 
"/.git/master:/file"'
++ expr ././t9500-gitweb-standalone-no-errors.sh : '.*/\(t[0-9]*\)-[^/]*$'
+ this_test=t9500
++ expr 65 + 1
+ this_test=t9500.66
+ to_skip=
+ case "$to_skip" in
+ false
+ say 'expecting success: gitweb_run "" "/.git/master:/file"'
+ say_color info 'expecting success: gitweb_run "" "/.git/master:/file"'
+ test -z info
+ shift
+ echo '* expecting success: gitweb_run "" "/.git/master:/file"'
+ test_run_ 'gitweb_run "" "/.git/master:/file"'
+ eval 'gitweb_run "" "/.git/master:/file"'
+ eval_ret=2
+ return 0
+ '[' 0 = 0 -a 2 = 0 ']'
+ test_failure_ 'path_info: project/branch:/file' 'gitweb_run "" 
"/.git/master:/file"'
++ expr 65 + 1
+ test_count=66
++ expr 3 + 1
+ test_failure=4
+ say_color error 'FAIL 66: path_info: project/branch:/file'
+ test -z error
+ shift
+ echo '* FAIL 66: path_info: project/branch:/file'
* FAIL 66: path_info: project/branch:/file
+ shift
+ echo 'gitweb_run "" "/.git/master:/file"'
+ sed -e 's/^/	/'
      	gitweb_run "" "/.git/master:/file"
...
+ echo ''
+ test_debug 'cat gitweb.log'
+ test '' = ''
+ test_done
+ trap - EXIT
+ test_results_dir=/tmp/git-1.6.2/t/test-results
+ mkdir -p /tmp/git-1.6.2/t/test-results
+ 
test_results_path=/tmp/git-1.6.2/t/test-results/./t9500-gitweb-standalone-no-1287
+ echo 'total 87'
+ echo 'success 83'
+ echo 'fixed 0'
+ echo 'broken 0'
+ echo 'failed 4'
+ echo ''
+ test 0 '!=' 0
+ test 0 '!=' 0
+ msg='87 test(s)'
+ case "$test_failure" in
+ say_color error 'failed 4 among 87 test(s)'
+ test -z error
+ shift
+ echo '* failed 4 among 87 test(s)'
* failed 4 among 87 test(s)
+ exit 1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: t9500-gitweb-standalone-no-errors.sh.prb 4 errors
  2009-03-08  0:11 t9500-gitweb-standalone-no-errors.sh.prb 4 errors Boyd Lynn Gerber
@ 2009-03-08  1:05 ` Jakub Narebski
  2009-03-08  1:29   ` Boyd Lynn Gerber
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2009-03-08  1:05 UTC (permalink / raw)
  To: Boyd Lynn Gerber; +Cc: Git List

Boyd Lynn Gerber <gerberb@zenez.com> writes:

> Test fails for SCO OpenServer 6.0 MP4 with 1.6.2
> 
> Below is the set -x output of the tests.

Could you run it without -x, but with --debug (as option to test
itself) instead?  Because what matters here not on which command the
test failed (we know it is on gitweb_run), but what error message
gitweb returned.

Also the problem might with in Perl modules gitweb uses (CGI, Encode,
...), and with Perl version used, although it is less likely...

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: t9500-gitweb-standalone-no-errors.sh.prb 4 errors
  2009-03-08  1:05 ` Jakub Narebski
@ 2009-03-08  1:29   ` Boyd Lynn Gerber
  0 siblings, 0 replies; 3+ messages in thread
From: Boyd Lynn Gerber @ 2009-03-08  1:29 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: Git List

On Sat, 7 Mar 2009, Jakub Narebski wrote:
> Boyd Lynn Gerber <gerberb@zenez.com> writes:
>> Test fails for SCO OpenServer 6.0 MP4 with 1.6.2
>>
>> Below is the set -x output of the tests.
>
> Could you run it without -x, but with --debug (as option to test
> itself) instead?  Because what matters here not on which command the
> test failed (we know it is on gitweb_run), but what error message
> gitweb returned.

Yes,

> Also the problem might with in Perl modules gitweb uses (CGI, Encode,
> ...), and with Perl version used, although it is less likely...

It is a perl problem...

* FAIL 18: .git blob (file)
         gitweb_run "p=.git;a=blob;f=file"
[Sun Mar  8 01:11:44 2009] gitweb.perl: -T and -B not implemented on 
filehandles at /tmp/git-1.6.2/t/../gitweb/gitweb.perl line 2853.
* FAIL 19: .git blob_plain (file)
         gitweb_run "p=.git;a=blob_plain;f=file"
[Sun Mar  8 01:11:44 2009] gitweb.perl: -T and -B not implemented on 
filehandles at /tmp/git-1.6.2/t/../gitweb/gitweb.perl line 2853.
* FAIL 62: path_info: project/branch:file
         gitweb_run "" "/.git/master:file"
[Sun Mar  8 01:12:15 2009] gitweb.perl: -T and -B not implemented on 
filehandles at /tmp/git-1.6.2/t/../gitweb/gitweb.perl line 2853.
* FAIL 66: path_info: project/branch:/file
         gitweb_run "" "/.git/master:/file"
[Sun Mar  8 01:12:17 2009] gitweb.perl: -T and -B not implemented on 
filehandles at /tmp/git-1.6.2/t/../gitweb/gitweb.perl line 2853.

I am not really sure what to do about it.  I contacted SCO on a 
different problem with the same type of filehandle problem and they told 
me they have not implemented any thing is the OS that could do this test.

This is what I traced it to...

This is what Tim Rice and I received from SCO...

  Re: __fpending()

Tim Rice wrote:
> It looks like it needs __fpending, __fpurge, & __freading.
> But as mentioned before, we can use funflush for __fpurge.

And for __freading() you could use

#define __freading(p) ((p)->__flag & _IOREAD)

or if we were to have had it in <stdio.h>, it'd look
more like the following (for C) for various reasons:

#define __freading(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag &
_IOREAD)

> I strongly suspect these missing APIs are responsible for the
For C++, it's be an inline routine checking the flag.

> I strongly suspect these missing APIs are responsible for the
> problem I found with Perl too. See "uw714 MP4 perl" and "osr600 
MP4 perl" thread.

This hadn't been raised as a possibility as far as I've
read in that thread -- did I miss something?  Does this
mean you've built your own perl for uw7 and found that
you needed one or more of these __f...() routines?

And Boyd Gerber wrote:
Ah yes, we're doing
#if defined(__USLC__)
   return (fp->__flag & _IOREAD) != 0;
#else
   return (fp->_flag & _IOREAD) != 0;
#endif

Would you consider this test case.
......
cat > tst.pl << 'EOF'
open (FH, $ARGV[0]) || die ("Can't open $ARGV[0] -- $!\n");
print "Text\n" if (-T FH);
print "Binary\n" if (-B FH);
close (FH);
EOF
......

On OpenServer 5 if you run "perl tst.pl tst.pl" it will say
Text

On UnixWare 7.1.4 MP4 and OpenSever 6.0 MP4 if you run "perl tst.pl 
tst.pl" it will say -T and -B not implemented on filehandles at tst.pl 
line 2.

While googling I found according to a post by Randal Schwartz that this 
means perl doesn't know enough about stdio on that platform.

Looking at /opt/lib/perl5/5.8.8/i386-unixware-thread-multi/Config_heavy.pl
we see things like stdio_base='((fp)->_base)' but then we have
d_stdiobase='undef' so it is not used.

And this wouldn't work but probably isn't used because of
d_stdiobase='undef'
stdio_bufsiz='((fp)->_cnt + (fp)->_ptr - (fp)->_base)'

If we had  __fbufsiz() it might be
stdio_bufsiz='__fbufsiz(fp)'

As the test program shows, there is something missing in UnixWare's
and OpenServer 6 perl's implementation.

-- 
Boyd Gerber <gerberb@zenez.com> 801 849-0213
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-08  1:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08  0:11 t9500-gitweb-standalone-no-errors.sh.prb 4 errors Boyd Lynn Gerber
2009-03-08  1:05 ` Jakub Narebski
2009-03-08  1:29   ` Boyd Lynn Gerber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox