<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/tests/t0101-index.sh, branch v0.10.2</title>
<subtitle>a hyperfast web frontend for git written in c</subtitle>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/'/>
<entry>
<title>tests: use Git's test framework</title>
<updated>2013-04-08T20:27:11+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-01T14:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=c95cc5ec56dbb7394015eb18201403be6d80f69b'/>
<id>c95cc5ec56dbb7394015eb18201403be6d80f69b</id>
<content type='text'>
This allows tests to run in parallel as well as letting us use "prove"
or another TAP harness to run the tests.

Git's test framework requires Git to be fully built before letting any
tests run, so add a new target to the top-level Makefile which builds
all of Git instead of just libgit.a and make the "test" target depend on
that.

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 tests to run in parallel as well as letting us use "prove"
or another TAP harness to run the tests.

Git's test framework requires Git to be fully built before letting any
tests run, so add a new target to the top-level Makefile which builds
all of Git instead of just libgit.a and make the "test" target depend on
that.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: "grep -e" is not portable to all platforms</title>
<updated>2013-03-05T00:38:44+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-03-04T21:58:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=392e07d28a23aec9942b9ed0d122e35d2d268fb9'/>
<id>392e07d28a23aec9942b9ed0d122e35d2d268fb9</id>
<content type='text'>
The "-e" option to grep is not needed unless specifying more than one
pattern, which we don't do.  Remove it to avoid restricting the tests on
platforms that do not have a grep that recognises "-e".

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "-e" option to grep is not needed unless specifying more than one
pattern, which we don't do.  Remove it to avoid restricting the tests on
platforms that do not have a grep that recognises "-e".

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add tests for links with space in path and/or args</title>
<updated>2011-05-23T20:58:35+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-05-22T10:22:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=084ca50972b4be120eba8d22ce585766ae315c36'/>
<id>084ca50972b4be120eba8d22ce585766ae315c36</id>
<content type='text'>
These tests tries to detect bad links in various pages. On the log page,
there currently exists links which are not properly escaped due to the
use of cgit_fileurl() when building the link. For now, this bug is simply
tagged as such.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These tests tries to detect bad links in various pages. On the log page,
there currently exists links which are not properly escaped due to the
use of cgit_fileurl() when building the link. For now, this bug is simply
tagged as such.

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://git.aaoth.xyz/cgit/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>Brown paper bag: don't use `grep -v`</title>
<updated>2008-02-24T14:55:01+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-02-24T14:35:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=e5ca46bf4b974ce3b51d09da4c7ad741aaa70ede'/>
<id>e5ca46bf4b974ce3b51d09da4c7ad741aaa70ede</id>
<content type='text'>
For some inexplicable reason I'd gotten the semantics of `grep -v` totally
backwards, thinking it somehow would make the exitcode from grep indicate
the non-match of the specified pattern.

This fixes the broken tests and gives me a valuable lession about shell
programming at the same time.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For some inexplicable reason I'd gotten the semantics of `grep -v` totally
backwards, thinking it somehow would make the exitcode from grep indicate
the non-match of the specified pattern.

This fixes the broken tests and gives me a valuable lession about shell
programming at the same time.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add regression-test for description-less repos</title>
<updated>2008-02-24T14:27:33+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-02-24T14:27:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=19134112bf942c0492f2095b668ea31c1a498f1a'/>
<id>19134112bf942c0492f2095b668ea31c1a498f1a</id>
<content type='text'>
The segfault fixed in commit eacde43d7184452e1fdc90b982b531f1f5239923 was
triggered when the html-functions manipulated string literals. One callpatch
which could trigger the bug is in ui-repolist.c when repo descriptions are
passed to html_ntxt(): if a repo is lacking a description, the literal
string "[no description]" is used.

This patch changes test/setup.sh such that the first repo has no description,
and adds tests for both "[no description]" and "the bar repo" (description
of the other repo) to tests/t0101-index.sh, which should be enought to catch
regressions in these functions.

Noticed-by: Hiroki Hattori &lt;seagull.kamome@gmail.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The segfault fixed in commit eacde43d7184452e1fdc90b982b531f1f5239923 was
triggered when the html-functions manipulated string literals. One callpatch
which could trigger the bug is in ui-repolist.c when repo descriptions are
passed to html_ntxt(): if a repo is lacking a description, the literal
string "[no description]" is used.

This patch changes test/setup.sh such that the first repo has no description,
and adds tests for both "[no description]" and "the bar repo" (description
of the other repo) to tests/t0101-index.sh, which should be enought to catch
regressions in these functions.

Noticed-by: Hiroki Hattori &lt;seagull.kamome@gmail.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Create initial testsuite</title>
<updated>2007-11-11T11:00:13+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-11-10T23:40:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=b4649fc90597910c89c3f37a6aec9af54d9f416b'/>
<id>b4649fc90597910c89c3f37a6aec9af54d9f416b</id>
<content type='text'>
This creates a simple testsuite, heavily inspired by the testsuite in git.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This creates a simple testsuite, heavily inspired by the testsuite in git.

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