<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/gitweb-lib.sh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2012-05-02T20:53:40Z</updated>
<entry>
<title>Merge branch 'jk/maint-gitweb-test-use-sane-perl'</title>
<updated>2012-05-02T20:53:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-02T20:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e834fa0d5cb73900031cae94159534a15c114e50'/>
<id>urn:sha1:e834fa0d5cb73900031cae94159534a15c114e50</id>
<content type='text'>
When using a Perl script on a system where "perl" found on user's $PATH
could be ancient or otherwise broken, we allow builders to specify the
path to a good copy of Perl with $PERL_PATH.  The gitweb test forgot to
use that Perl when running its test.

By Jeff King (1) and Zbigniew Jędrzejewski-Szmek (1)
* jk/maint-gitweb-test-use-sane-perl:
  Consistently use perl from /usr/bin/ for scripts
  t/gitweb-lib: use $PERL_PATH to run gitweb
</content>
</entry>
<entry>
<title>t/gitweb-lib: use $PERL_PATH to run gitweb</title>
<updated>2012-05-01T19:11:11Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-05-01T17:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f71db097efa1cdd304bfa2dd6d365592c1866543'/>
<id>urn:sha1:f71db097efa1cdd304bfa2dd6d365592c1866543</id>
<content type='text'>
The current code runs "perl gitweb.cgi" to test gitweb. This
will use whatever version of perl happens to be first in the
PATH. We are better off using the specific perl that the
user specified via PERL_PATH, which matches what gets put on
the #!-line of the built gitweb.cgi.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: provide a way to customize html headers</title>
<updated>2011-10-21T17:18:37Z</updated>
<author>
<name>Lénaïc Huard</name>
<email>lenaic@lhuard.fr.eu.org</email>
</author>
<published>2011-10-21T07:09:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1355b7ffb6573ff7c76aef7d3bab664fb895dc8'/>
<id>urn:sha1:c1355b7ffb6573ff7c76aef7d3bab664fb895dc8</id>
<content type='text'>
This allows web sites to add some specific html headers to the pages
generated by gitweb.

The new variable $site_html_head_string can be set to an html snippet that
will be inserted at the end of the &lt;head&gt; section of each page generated
by gitweb.

Signed-off-by: LÃ©naÃ¯c Huard &lt;lenaic@lhuard.fr.eu.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/gitweb-lib.sh: skip gitweb tests when perl dependencies are not met</title>
<updated>2011-06-15T22:30:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-06-15T16:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7d878075e751859ff344c8334ae016228676c4d'/>
<id>urn:sha1:b7d878075e751859ff344c8334ae016228676c4d</id>
<content type='text'>
Linus noticed that we go ahead testing gitweb and fail miserably on a
box with Perl but not perl-CGI library. We already have a code to detect
lack of Perl and refrain from testing gitweb in t/gitweb-lib.sh (by the
way, shouldn't it be called t/lib-gitweb.sh?), so let's extend it
to cover this case as well.

Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/gitweb-lib.sh: Ensure that errors are shown for --debug --immediate</title>
<updated>2011-02-21T18:38:40Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2011-02-19T18:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=49151d8b2cde68bc110a8bb899b8610631430941'/>
<id>urn:sha1:49151d8b2cde68bc110a8bb899b8610631430941</id>
<content type='text'>
Because '--immediate' stops test suite after first error, therefore in
this mode

  test_debug 'cat gitweb.log'

was never ran, thus in effect negating effect of '--debug' option.
This made finidng the cause of errors in gitweb test sute difficult.

Modify the gitweb_run test subroutine to run test_debug itself in the
case of errors (and also remove "test_debug 'cat gitweb.log'" from
gitweb tests).

This makes it possible to run *gitweb tests* with --immediate ---debug
combination of options; also it makes gitweb tests to not output
spurious debug data that is not considered error.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bg/maint-gitweb-test-lib'</title>
<updated>2010-11-17T23:01:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-11-17T23:01:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=016c4b8919a0a58a430f3483aeac35de9dfdc579'/>
<id>urn:sha1:016c4b8919a0a58a430f3483aeac35de9dfdc579</id>
<content type='text'>
* bg/maint-gitweb-test-lib:
  t/gitweb-lib: Don't pass constant to decode_utf8

Conflicts:
	t/gitweb-lib.sh
</content>
</entry>
<entry>
<title>t/gitweb-lib: Don't pass constant to decode_utf8</title>
<updated>2010-10-20T20:01:33Z</updated>
<author>
<name>Brian Gernhardt</name>
<email>brian@gernhardtsoftware.com</email>
</author>
<published>2010-10-20T05:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=598df7bcb775a247cc3f20c5a8b1b36955b16462'/>
<id>urn:sha1:598df7bcb775a247cc3f20c5a8b1b36955b16462</id>
<content type='text'>
Encode.pm started updating the string to decode in-place when a second
argument is passed in version 2.40.

This causes 'decode_utf8("", Encode::FB_CROAK)' to die with a message
like:

  Modification of a read-only value attempted at .../Encode.pm line 216.

Work around this by passing an empty variable instead of a constant
string.

Signed-off-by: Brian Gernhardt &lt;brian@gernhardtsoftware.com&gt;
Acked-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/gitweb-lib.sh: Add support for GITWEB_TEST_INSTALLED</title>
<updated>2010-09-30T18:48:26Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2010-09-26T13:02:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=929909375034eb609f855fe51b2ffc57123e6dd4'/>
<id>urn:sha1:929909375034eb609f855fe51b2ffc57123e6dd4</id>
<content type='text'>
You can set the GITWEB_TEST_INSTALLED environment variable to the
gitwebdir (the directory where gitweb is installed / deployed to) of
an existing gitweb instalation, or to the pathname of installed gitweb
script, to test that installation.

This change is intended to make it possible to test that process of
installing gitweb and the modules it depends on works correctly (after
splitting gitweb).

If GITWEB_TEST_INSTALLED is used, print what script are we testing
to make it easy to spot that we test installed gitweb.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/gitweb-lib.sh: Use tabs for indent consistently</title>
<updated>2010-09-12T21:01:59Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2010-09-12T09:41:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=89d1b5b8f70c1572c71ec04d5bb164f0849815dc'/>
<id>urn:sha1:89d1b5b8f70c1572c71ec04d5bb164f0849815dc</id>
<content type='text'>
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/gitweb-lib.sh: Use GIT_BUILD_DIR</title>
<updated>2010-09-12T21:01:55Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2010-09-12T09:41:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5d3450c914a51a6543d517c428fd41a670a113d'/>
<id>urn:sha1:b5d3450c914a51a6543d517c428fd41a670a113d</id>
<content type='text'>
Use "$GIT_BUILD_DIR" instead of "$TEST_DIRECTORY/.." (both defined in
t/test-lib.sh) in t/gitweb-lib.sh.  It better describes the intent.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
