gitweb: Minimal testing of gitweb cachinggitweb/gitweb-ml-v7
commit68c487d9860193457a8bb3145542b518d540e70a
authorJakub Narebski <jnareb@gmail.com>
Fri, 3 Dec 2010 14:17:12 +0000 (3 15:17 +0100)
committerJakub Narebski <jnareb@gmail.com>
Fri, 3 Dec 2010 14:17:12 +0000 (3 15:17 +0100)
treeaed67ba9bc0b150e57451ca1296fb9f6a6bf39ff
parent6a39390d0ee0acd6ca5439604f61cb95f7f42300
gitweb: Minimal testing of gitweb caching

Add basic tests of caching support to t9500-gitweb-standalone-no-errors
test: set $caching_enabled to true and check for errors for first time
run (generating cache) and second time run (retrieving from cache) for a
single view - summary view for a project.  Check also that request for
non-existent object (which results in die_error() codepath to be called)
doesn't produce errors.

Check in t9501-gitweb-standalone-http-status that request for
non-existent object produces correct output (HTTP headers and HTML
output) also when caching is enabled.

Check in the t9502-gitweb-standalone-parse-output test that gitweb
produces the same output with and without caching, for first and
second run, with binary (raw) or plain text (utf8) output.

The common routine that enables cache, gitweb_enable_caching, is
defined in t/gitweb-lib.sh

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
t/gitweb-lib.sh [changed mode: 0644->0755]
t/t9500-gitweb-standalone-no-errors.sh
t/t9501-gitweb-standalone-http-status.sh
t/t9502-gitweb-standalone-parse-output.sh