From: Jakub Narebski Date: Mon, 16 Jun 2008 20:15:05 GMT Subject: Re: [RFC/WIP/PATCH v2] gitweb: add test suite with Test::WWW::Mechanize::CGI Message-ID: <200806162215.05283.jnareb@gmail.com> In-Reply-To: <48562DFD.4090108@gmail.com> Lea Wiemann wrote: > Jakub Narebski wrote: >> Lea Wiemann wrote: >> >> How would you ensure cold cache? > > Use a unique key prefix, like "gw:test-$PID:" I was thinking rather about dropping cache somewhat. >>> 3. Get all those URL's again *with* caching (from a warm cache), and >>> assert that the output is identical. >> >> it might have "cached output" somewhere in the output. > > We can make that deactivatable so that the output is actually identical. Good idea. Or we can just do diff and check the difference. BTW. another thing worth considering: generating "Generating page..." or something like that like kernel.org's gitweb does when it has to regenerate cache. Nice feature, that is. -- Jakub Narebski Poland