2
0
mirror of https://git.zx2c4.com/cgit/ synced 2024-11-10 07:10:33 +00:00
cgit/tests
Todd Zullinger bd6f5683f6 tests: t0107: support older and/or non-GNU tar
The untar tests for various compression algorithms use shortcut options
from GNU tar to handle decompression.  These options may not be provided
by non-GNU tar nor even by slightly older GNU tar versions which ship on
many systems.

An example of the latter case is the --zstd option.  This was added in
GNU tar-1.32 (2019-02-23)¹.  This version of tar is not provided by
CentOS/RHEL, in particular.  In Debian, --zstd has been backported to
the tar-1.30 release.

Avoid the requirement on any specific implementations or versions of tar
by piping decompressed output to tar.  This is compatible with older GNU
tar releases as well as tar implementations from other vendors.  (It may
also be a slight benefit that this more closely matches what the
snapshot creation code does.)

¹ Technically, the --zstd option was first released in tar-1.31
  (2019-01-02), but this release was very short-lived and is no longer
  listed on the GNU Tar release page.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-12-29 21:06:17 +01:00
..
filters t0111: Additions and fixes 2014-01-16 00:53:18 +01:00
valgrind/bin tests: add Valgrind support 2014-01-12 19:33:03 +01:00
.gitignore tests/.gitignore: update for using Git's test infrastructure 2013-04-08 22:27:53 +02:00
Makefile tests: allow shell to be overridden 2015-08-13 15:36:18 +02:00
setup.sh tests: try with commit-graph 2020-10-22 00:04:10 +02:00
t0001-validate-git-versions.sh global: replace references to 'sha1' with 'oid' 2020-10-20 23:57:12 +02:00
t0010-validate-html.sh tests/: Do not use sed -i 2013-04-10 14:49:31 +02:00
t0020-validate-cache.sh cache.c: cache ls_cache output properly 2013-05-22 12:53:06 +02:00
t0101-index.sh tests: use Git's test framework 2013-04-08 22:27:11 +02:00
t0102-summary.sh tests: use Git's test framework 2013-04-08 22:27:11 +02:00
t0103-log.sh tests: use Git's test framework 2013-04-08 22:27:11 +02:00
t0104-tree.sh Reduce line number bloat, fix hover effect 2014-01-08 14:59:38 +01:00
t0105-commit.sh global: replace hard coded hash length 2020-10-20 23:57:12 +02:00
t0106-diff.sh tests: use Git's test framework 2013-04-08 22:27:11 +02:00
t0107-snapshot.sh tests: t0107: support older and/or non-GNU tar 2020-12-29 21:06:17 +01:00
t0108-patch.sh ui-patch: match git-format-patch(1) output 2014-12-28 14:44:44 +01:00
t0109-gitconfig.sh git: update to v2.29.0 2020-10-19 20:27:28 +02:00
t0110-rawdiff.sh t0110: Chain together using && 2015-08-12 15:16:05 +02:00
t0111-filter.sh tests: only do lua tests if lua is compiled-in 2014-01-20 13:11:10 +01:00