<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/tests/t0107-snapshot.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: introduce strip_header() helper function</title>
<updated>2013-05-22T10:53:06+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-18T17:46:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=75bfec6448b44e26c06736253f8ab0197a6652f7'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0107: Skip ZIP tests if unzip(1) isn't available</title>
<updated>2013-04-10T12:49:31+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-04-09T18:02:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=81bf4d32b377d3f2fdd7ab3ca651be99408f5c32'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>t0107: Use `tar -z` for gzip'ed archives</title>
<updated>2013-04-08T22:13:52+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-04-08T22:13:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=410da3ac1cdb002116c08f143ce82534897ede27'/>
<id>410da3ac1cdb002116c08f143ce82534897ede27</id>
<content type='text'>
Some tar(1) versions do not support auto detection of the compression
type. Explicitly specify "-z" to decompress a ".tar.gz" archive.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some tar(1) versions do not support auto detection of the compression
type. Explicitly specify "-z" to decompress a ".tar.gz" archive.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<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>t0107-snapshot: add tests for ZIP archives</title>
<updated>2013-03-05T00:41:26+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-03-04T21:58:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=d5a43b429a4248a02e3a403f76fff0cbae92ef32'/>
<id>d5a43b429a4248a02e3a403f76fff0cbae92ef32</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: make whitespace consistent</title>
<updated>2013-03-05T00:39:07+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-03-04T21:58:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=f9b801a1746d6c4476b230659d2e1f3714986550'/>
<id>f9b801a1746d6c4476b230659d2e1f3714986550</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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>Merge branch 'snapshot-fixes'</title>
<updated>2009-01-11T11:22:46+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-01-11T11:22:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=aa60ae12cb3db965b3fe7239424cab92175b8343'/>
<id>aa60ae12cb3db965b3fe7239424cab92175b8343</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/t0107-snapshot.sh: make testscript match updated snapshot behavior</title>
<updated>2008-12-28T09:52:35+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-28T09:52:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=7bbc27458532c16b9fdbe2b54fad4db04fbd1186'/>
<id>7bbc27458532c16b9fdbe2b54fad4db04fbd1186</id>
<content type='text'>
Since cgit now returns a 404 error when the snapshot filename cannot be
resolved to a commit object, the testscript needs to request a valid
snapshot name.

Also, the script assumed that the toplevel directory in the snapshot
would get the name of the repository but it's now named similar to
the requested snapshot.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since cgit now returns a 404 error when the snapshot filename cannot be
resolved to a commit object, the testscript needs to request a valid
snapshot name.

Also, the script assumed that the toplevel directory in the snapshot
would get the name of the repository but it's now named similar to
the requested snapshot.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot.c: change mime-type for tar.gz and tar.bz2</title>
<updated>2008-12-26T10:33:59+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-26T10:33:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.aaoth.xyz/cgit/commit/?id=ed77b2e0bff52a44ce1e5bd64e1c784a9c2fa82f'/>
<id>ed77b2e0bff52a44ce1e5bd64e1c784a9c2fa82f</id>
<content type='text'>
The updated mime-types seems to work better than the old ones with both
safari and firefox.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The updated mime-types seems to work better than the old ones with both
safari and firefox.

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