<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit-70/tests, branch v0.8</title>
<subtitle>a fork of cgit with a Gopher interface</subtitle>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/'/>
<entry>
<title>Merge branch 'lh/escape-urls'</title>
<updated>2008-10-05T11:13:33+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T11:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=20c895f6889a66d7cf43c67a7c22df6ef324ed5d'/>
<id>20c895f6889a66d7cf43c67a7c22df6ef324ed5d</id>
<content type='text'>
* lh/escape-urls:
  ui-shared.c: use html_url_arg()
  html.c: add html_url_arg
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lh/escape-urls:
  ui-shared.c: use html_url_arg()
  html.c: add html_url_arg
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot.c: specify archiver_args.baselen</title>
<updated>2008-10-05T11:13:03+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T11:13:03+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=204669ff4a4028a82cc48e9319632595ba3ff703'/>
<id>204669ff4a4028a82cc48e9319632595ba3ff703</id>
<content type='text'>
The struct member was introduces in git commit d53fe8187c38, but the cgit
testsuite failed to detect that cgit always generated archives without
prefixes, i.e. the result from cgit_repobasename was ignored.

This fixes the bug and the testsuite.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The struct member was introduces in git commit d53fe8187c38, but the cgit
testsuite failed to detect that cgit always generated archives without
prefixes, i.e. the result from cgit_repobasename was ignored.

This fixes the bug and the testsuite.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-shared.c: use html_url_arg()</title>
<updated>2008-10-05T10:52:25+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T10:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=b575115d9d93e45cdbcd5d066cc445d34639ae6a'/>
<id>b575115d9d93e45cdbcd5d066cc445d34639ae6a</id>
<content type='text'>
The link-generating functions are updated to use the new html_url_arg
function, thereby fixing links to strange repos, branches and files.

Also, the test-suite is updated to verify some cases of strange urls.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The link-generating functions are updated to use the new html_url_arg
function, thereby fixing links to strange repos, branches and files.

Also, the test-suite is updated to verify some cases of strange urls.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/Makefile: not everyone has `.` in $PATH</title>
<updated>2008-07-22T17:02:27+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-07-22T17:01:31+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=f49ea2c9968a8b30c0c268ca52aa066960fd98f7'/>
<id>f49ea2c9968a8b30c0c268ca52aa066960fd98f7</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Include commit-id in link from diff-stat</title>
<updated>2008-05-18T19:33:30+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-05-18T19:21:32+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=8907f2a03195abec409540ab11293fe748468413'/>
<id>8907f2a03195abec409540ab11293fe748468413</id>
<content type='text'>
This fixes a regression created by fe1230dece81450004d02fa8a470f8dab8f7fdd9,
and modifies a test to avoid future regressions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a regression created by fe1230dece81450004d02fa8a470f8dab8f7fdd9,
and modifies a test to avoid future regressions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-commit: handle root commits</title>
<updated>2008-05-18T19:13:21+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-05-18T19:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=502d57596e645ec91bb9b8ca62833cdb0de4a3b1'/>
<id>502d57596e645ec91bb9b8ca62833cdb0de4a3b1</id>
<content type='text'>
Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely,
but cgit_print_commit() forgot to check the case of 0 parents.

This fixes it, and adds tests to avoid future regressions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely,
but cgit_print_commit() forgot to check the case of 0 parents.

This fixes it, and adds tests to avoid future regressions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Redesign the caching layer</title>
<updated>2008-04-28T09:32:42+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-04-28T09:32:42+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=939d32fda70ea66c9db51687beb3cea6da7b0599'/>
<id>939d32fda70ea66c9db51687beb3cea6da7b0599</id>
<content type='text'>
The original caching layer in cgit has no upper bound on the number of
concurrent cache entries, so when cgit is traversed by a spider (like the
googlebot), the cache might end up filling your disk. Also, if any error
occurs in the cache layer, no content is returned to the client.

This patch redesigns the caching layer to avoid these flaws by
* giving the cache a bound number of slots
* disabling the cache for the current request when errors occur

The cache size limit is implemented by hashing the querystring (the cache
lookup key) and generating a cache filename based on this hash modulo the
cache size. In order to detect hash collisions, the full lookup key (i.e.
the querystring) is stored in the cache file (separated from its associated
content by ascii 0).

The cache filename is the reversed 8-digit hexadecimal representation of

  hash(key) % cache_size

which should make the filesystem lookup pretty fast (if directory content
is indexed/sorted); reversing the representation avoids the problem where
all keys have equal prefix.

There is a new config option, cache-size, which sets the upper bound for
the cache. Default value for this option is 0, which has the same effect
as setting nocache=1 (hence nocache is now deprecated).

Included in this patch is also a new testfile which verifies that the
new option works as intended.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original caching layer in cgit has no upper bound on the number of
concurrent cache entries, so when cgit is traversed by a spider (like the
googlebot), the cache might end up filling your disk. Also, if any error
occurs in the cache layer, no content is returned to the client.

This patch redesigns the caching layer to avoid these flaws by
* giving the cache a bound number of slots
* disabling the cache for the current request when errors occur

The cache size limit is implemented by hashing the querystring (the cache
lookup key) and generating a cache filename based on this hash modulo the
cache size. In order to detect hash collisions, the full lookup key (i.e.
the querystring) is stored in the cache file (separated from its associated
content by ascii 0).

The cache filename is the reversed 8-digit hexadecimal representation of

  hash(key) % cache_size

which should make the filesystem lookup pretty fast (if directory content
is indexed/sorted); reversing the representation avoids the problem where
all keys have equal prefix.

There is a new config option, cache-size, which sets the upper bound for
the cache. Default value for this option is 0, which has the same effect
as setting nocache=1 (hence nocache is now deprecated).

Included in this patch is also a new testfile which verifies that the
new option works as intended.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix segfault in patch view for root commit</title>
<updated>2008-03-17T22:51:47+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-17T22:13:16+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=e01f1403b9b501c563b1fe0e0052460a95945528'/>
<id>e01f1403b9b501c563b1fe0e0052460a95945528</id>
<content type='text'>
The code for patch view assumed the current commit would always have a parent,
which made cgit segfault when that wasn't the case.

This fixes the bug and adds a test-script for patch view which includes a test
for the inital commit.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code for patch view assumed the current commit would always have a parent,
which made cgit segfault when that wasn't the case.

This fixes the bug and adds a test-script for patch view which includes a test
for the inital commit.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/setup.sh: cleanup test script output and logging</title>
<updated>2008-02-24T19:25:20+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-02-24T18:53:51+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=538cb4a7d73ee2e62f41f2a452dccf89ba5004d9'/>
<id>538cb4a7d73ee2e62f41f2a452dccf89ba5004d9</id>
<content type='text'>
Log the complete output from each test-script in test-output.log and tell the
user about the logfile when a test-script fails.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Log the complete output from each test-script in test-output.log and tell the
user about the logfile when a test-script fails.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0010-validate.sh: return on cgit errors</title>
<updated>2008-02-24T18:53:08+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-02-24T18:43:46+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=20cdffd5e086ebfb8ba6a82ab98ab27276657111'/>
<id>20cdffd5e086ebfb8ba6a82ab98ab27276657111</id>
<content type='text'>
The earlier segfault in cgit passed by unnoticed by this test-script due to
the pipe between cgit and sed.

There might be a more elegant solution to this problem, but my shellscript-
foo is weak.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The earlier segfault in cgit passed by unnoticed by this test-script due to
the pipe between cgit and sed.

There might be a more elegant solution to this problem, but my shellscript-
foo is weak.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
