threads / discuss / 13712

gitweb: Smoke test

Subject: gitweb: Smoke test

## tl;dr

One message between May 28, 2008 and May 28, 2008.

replies: 0people: 1as markdown or json

Lea Wiemann· May 28, 2008, 18:56 UTC · lore

FYI and in case you're interested, I've implemented a smoke test for gitweb in a branch, here: http://repo.or.cz/w/git/gitweb-caching.git?a=tree;f=gitweb/test;h=cccee14b2571200861ffc05fbfae12c6d17e919d;hb=HEAD

It spiders your local gitweb site (which preferably only contains a really small test repository) with wget, and reports any problems, i.e. broken links or crashes of the CGI script.

The same mechanism might also be usable to view recursive diffs between old and new output, to see if anything has changed. I'll probably implement that later when I start doing refactorings on gitweb. Perhaps we should also have a real test suite at some point, though I'm not entirely sure yet how to approach that -- I'll have to dig into the code first. :)

(If there's any desire to copy the script to mainline, let me know -- I'll be happy with leaving it on the branch for now, though.)

-- Lea

← back to recent threads