<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/tests, branch v0.9.2</title>
<subtitle>Robin Krahl's fork of cgit</subtitle>
<id>https://git.ireas.org/cgit/atom?h=v0.9.2</id>
<link rel='self' href='https://git.ireas.org/cgit/atom?h=v0.9.2'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/'/>
<updated>2013-05-22T10:53:06Z</updated>
<entry>
<title>cache.c: cache ls_cache output properly</title>
<updated>2013-05-22T10:53:06Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-18T17:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=f32a2da636ffa6eaa6b8d0d3f35a673fa12e404a'/>
<id>urn:sha1:f32a2da636ffa6eaa6b8d0d3f35a673fa12e404a</id>
<content type='text'>
By using the standard library's printf, cache_ls does not redirect its
output to the cache when we change the process' stdout file descriptor
to point to the cache file.  Fix this by using "htmlf" in the same way
that we do for writing HTTP headers.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>tests: introduce strip_header() helper function</title>
<updated>2013-05-22T10:53:06Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-18T17:46:38Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=75bfec6448b44e26c06736253f8ab0197a6652f7'/>
<id>urn:sha1:75bfec6448b44e26c06736253f8ab0197a6652f7</id>
<content type='text'>
This means that we can avoid hardcoding the number of headers we expect
CGit to generate in test cases and simply remove whatever headers happen
to by there when we are checking body content.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>t0109: "function" is a bash-ism</title>
<updated>2013-05-13T13:16:48Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-09T18:40:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=7966fd9b8e32562196b52abd32f6ba1e15228b81'/>
<id>urn:sha1:7966fd9b8e32562196b52abd32f6ba1e15228b81</id>
<content type='text'>
We try to stick to POSIX shell in the tests but a "function" keyword has
found its way into t0109.  Remove it.

This makes the tests work with dash again.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-snapshot: do not access $HOME</title>
<updated>2013-04-30T10:29:07Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2013-04-30T10:27:41Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=8bf4a0465e81da877e0c81620ae4ac9356145fc9'/>
<id>urn:sha1:8bf4a0465e81da877e0c81620ae4ac9356145fc9</id>
<content type='text'>
It's a bit tedious to have to do this here too. If we encounter other
issues with $HOME down the line, I'll look into adding some nice utility
functions to handle this, or perhaps giving up on the hope that we could
keep $HOME defined for scripts.

This commit additionally adds a test case, should the issue surface
again.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>t0001: validate Git -rcN version numbers correctly</title>
<updated>2013-04-27T15:21:22Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-27T09:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=8d07ad3388429b6c1361074cbac5dec6afee79d7'/>
<id>urn:sha1:8d07ad3388429b6c1361074cbac5dec6afee79d7</id>
<content type='text'>
When creating the GIT-VERSION-FILE that we use to test that the version
of Git in git/ is the same as in the CGit Makefile, Git applies the
transform "s/-/./g" to the version string.  This doesn't affect released
versions but does change RC version numbers such as 1.8.3-rc0.

While CGit should only refer to a released Git version in general, it is
useful to developers who want to test upcoming Git releases if the tests
do work with RCs, so change t0001 to apply the same transform to our
Makefile version before comparing it to the contents of
GIT-VERSION-FILE.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>t0001: ignore ".dirty" suffix on Git version</title>
<updated>2013-04-15T14:59:37Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-14T18:15:43Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=d483e8f5692117d6f3ea0801c0ca2ec7aa8f6f3b'/>
<id>urn:sha1:d483e8f5692117d6f3ea0801c0ca2ec7aa8f6f3b</id>
<content type='text'>
When testing modifications in Git that affect CGit, it is annoying to
have t0001 failing simply because the Git version has a ".dirty" suffix
when the version of Git there does indeed match that specified in the
CGit makefile.  Stop this by stripping the ".dirty" suffix from the
GIT_VERSION variable.

Note that this brings the "Git version" behaviour in line with the
"submodule version" case which does not check if the working tree in
git/ is modified.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>tests: set TEST_OUTPUT_DIRECTORY to the CGit test directory</title>
<updated>2013-04-15T14:59:37Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-14T16:59:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0'/>
<id>urn:sha1:31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0</id>
<content type='text'>
By default, Git's test suite puts the trash directories and test-results
directory into its own directory, not that containing the tests being
run.  This is less convenient for inspecting test failures, so set the
output directory to CGit's tests/ directory instead.

Note that there is currently a bug in Git whereby it will create the
trash directories in our tests/ directory regardless of the value of
TEST_OUTPUT_DIRECTORY, and then fail to remove them once the tests are
done.  This change does currently affect the location of the
test-results/ directory though.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>t0109: test more URLs</title>
<updated>2013-04-15T14:59:06Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-14T16:07:41Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=64f30688faef0876641a8e0e4f26b5c673c291d4'/>
<id>urn:sha1:64f30688faef0876641a8e0e4f26b5c673c291d4</id>
<content type='text'>
In order to ensure that we don't access $HOME at some point after
initial startup when rendering a specific view, run the strace test on a
range of different pages.

This ensures that we don't end up reading a configuration later for some
specific view.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>t0107: Skip ZIP tests if unzip(1) isn't available</title>
<updated>2013-04-10T12:49:31Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-04-09T18:02:33Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=81bf4d32b377d3f2fdd7ab3ca651be99408f5c32'/>
<id>urn:sha1:81bf4d32b377d3f2fdd7ab3ca651be99408f5c32</id>
<content type='text'>
Note that we cannot use skip_all here since some tests have already been
executed when ZIP tests are reached. Use test prerequisites to skip
everything using unzip(1) if the binary is not available instead.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>tests/: Do not use `sed -i`</title>
<updated>2013-04-10T12:49:31Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-04-09T18:02:32Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/cgit/commit/?id=016364d4edef261fb55257e36d8a47828d398f96'/>
<id>urn:sha1:016364d4edef261fb55257e36d8a47828d398f96</id>
<content type='text'>
"-i" isn't part of the POSIX standard and doesn't work on several
platforms such as OpenBSD. Use a temporary file instead.

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