<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit-70/tests, branch v0.11.2</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>ui-patch: match git-format-patch(1) output</title>
<updated>2014-12-28T13:44:44+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-12-28T13:10:33+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=7552266aaccb9445e082fc04215afcb55ad543d8'/>
<id>7552266aaccb9445e082fc04215afcb55ad543d8</id>
<content type='text'>
Using (DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH) causes Git to emit a
"---" line between the commit message and the body of the patch, which
fixes a regression introduced in commit 455b598 (ui-patch.c: Use
log_tree_commit() to generate diffs, 2013-08-20), prior to which we
inserted the "---" line ourselves.

DIFF_FORMAT_SUMMARY is added so that we match the output of
git-format-patch(1) without the "-p" option.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using (DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH) causes Git to emit a
"---" line between the commit message and the body of the patch, which
fixes a regression introduced in commit 455b598 (ui-patch.c: Use
log_tree_commit() to generate diffs, 2013-08-20), prior to which we
inserted the "---" line ourselves.

DIFF_FORMAT_SUMMARY is added so that we match the output of
git-format-patch(1) without the "-p" option.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0108: modernize style</title>
<updated>2014-12-28T13:43:51+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-12-28T13:10:32+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=ce8f4902295fbc774454362600007c971770631a'/>
<id>ce8f4902295fbc774454362600007c971770631a</id>
<content type='text'>
* &amp;&amp;-chaining
* use test_cmp instead of cmp
* use strip_headers instead of knowing how many lines there will be

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* &amp;&amp;-chaining
* use test_cmp instead of cmp
* use strip_headers instead of knowing how many lines there will be

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: only do lua tests if lua is compiled-in</title>
<updated>2014-01-20T12:11:10+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-20T12:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=f759cc0f08c195940de05d5394f7b1ad4d44365e'/>
<id>f759cc0f08c195940de05d5394f7b1ad4d44365e</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0111: Additions and fixes</title>
<updated>2014-01-15T23:53:18+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-01-15T22:11:19+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=3741254a6989b2837cd8d20480f152f0096bcb9a'/>
<id>3741254a6989b2837cd8d20480f152f0096bcb9a</id>
<content type='text'>
* Rename the capitalize-* filters to dump.* since they also dump the
  arguments.

* Add full argument validation to the email filters.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rename the capitalize-* filters to dump.* since they also dump the
  arguments.

* Add full argument validation to the email filters.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0111: Add basic tests for Lua filters</title>
<updated>2014-01-15T13:45:21+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-01-14T21:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=caf557a2ba666ad87a1ebd5b40750feaf1bd631f'/>
<id>caf557a2ba666ad87a1ebd5b40750feaf1bd631f</id>
<content type='text'>
* Validate the email filter by manipulating stdin. Additional checks for
  all the arguments can be added in a later patch.

* Add the exec prefix to all informational messages.

* Rename the filter repository to filter-exec. The Git repository itself
  is not renamed since it can be shared amongst all filter types.

* In the filter checks, check whether all arguments are passed properly
  instead of validating the buffer/stdin only.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Validate the email filter by manipulating stdin. Additional checks for
  all the arguments can be added in a later patch.

* Add the exec prefix to all informational messages.

* Rename the filter repository to filter-exec. The Git repository itself
  is not renamed since it can be shared amongst all filter types.

* In the filter checks, check whether all arguments are passed properly
  instead of validating the buffer/stdin only.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/: Add t0111-filter.sh</title>
<updated>2014-01-14T12:55:53+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2014-01-14T11:01:06+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=ce56d89a2662549acd178292450798f5ffcd4bc6'/>
<id>ce56d89a2662549acd178292450798f5ffcd4bc6</id>
<content type='text'>
This adds basic tests for all types of exec filters.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds basic tests for all types of exec filters.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add CGIT_TEST_OPTS variable to Makefile</title>
<updated>2014-01-12T22:03:54+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-01-12T19:46:42+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=a52aaa90dab1d95f9df383d2cb3f7c428ab849fe'/>
<id>a52aaa90dab1d95f9df383d2cb3f7c428ab849fe</id>
<content type='text'>
This allows running the entire test suite with a set of command-line
options.  For example:

	make test CGIT_TEST_OPTS=--valgrind

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows running the entire test suite with a set of command-line
options.  For example:

	make test CGIT_TEST_OPTS=--valgrind

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add Valgrind support</title>
<updated>2014-01-12T18:33:03+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-08T19:12:38+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=1b1974c45e5e23e5527aa43c4d9ece423a13dfdc'/>
<id>1b1974c45e5e23e5527aa43c4d9ece423a13dfdc</id>
<content type='text'>
Now running tests with the "--valgrind" option will run cgit under
Valgrind instead of all Git commands.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now running tests with the "--valgrind" option will run cgit under
Valgrind instead of all Git commands.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce line number bloat, fix hover effect</title>
<updated>2014-01-08T13:59:38+00:00</updated>
<author>
<name>Peter Wu</name>
<email>lekensteyn@gmail.com</email>
</author>
<published>2013-10-03T10:17:23+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=4468ec1b15becf3838d8cf38440c527c487565a4'/>
<id>4468ec1b15becf3838d8cf38440c527c487565a4</id>
<content type='text'>
Currently line numbers look like (for blob view and sdiff respectively):

    &lt;a class='no' id='n68' name='n68' href='#n68'&gt;68&lt;/a&gt;
    &lt;td class='lineno'&gt;&lt;a class='no' href='...#n1' id='n1' name='n1'&gt;1&lt;/a&gt;&lt;/td&gt;

name=".." is unnecessary if the id attribute is set (this even applies
to IE6), so drop it. (aside, in HTML5, the name attribute is gone.)

The line number links can be selected through their parent classes, no
need for another class "no", so drop it too.

For a file with 2000 lines, this yields a saving of 40% (29% gzipped).

While at it, fix the hover effect of line numbers: now the line number
get a black background as was intended.

Signed-off-by: Peter Wu &lt;lekensteyn@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently line numbers look like (for blob view and sdiff respectively):

    &lt;a class='no' id='n68' name='n68' href='#n68'&gt;68&lt;/a&gt;
    &lt;td class='lineno'&gt;&lt;a class='no' href='...#n1' id='n1' name='n1'&gt;1&lt;/a&gt;&lt;/td&gt;

name=".." is unnecessary if the id attribute is set (this even applies
to IE6), so drop it. (aside, in HTML5, the name attribute is gone.)

The line number links can be selected through their parent classes, no
need for another class "no", so drop it too.

For a file with 2000 lines, this yields a saving of 40% (29% gzipped).

While at it, fix the hover effect of line numbers: now the line number
get a black background as was intended.

Signed-off-by: Peter Wu &lt;lekensteyn@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/: Add t0110-rawdiff.sh</title>
<updated>2013-08-26T19:04:02+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-08-26T18:56:55+00:00</published>
<link rel='alternate' type='text/html' href='http://5.196.69.93/cgit-70/commit/?id=d93cebaa18bc69933489bd76c5ce7c40a9a632a6'/>
<id>d93cebaa18bc69933489bd76c5ce7c40a9a632a6</id>
<content type='text'>
This adds some basic tests for the /rawdiff/ command.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds some basic tests for the /rawdiff/ command.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
