tvl-depot/third_party/cgit/tests
Todd Zullinger 35630558ff test(3p/cgit): 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>
Change-Id: Ib65412cd1d23312ddd4cf840c09efc32512d3122
2021-09-21 14:14:05 +03:00
..
filters merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
valgrind/bin merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
.gitignore merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
Makefile merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
setup.sh merge(3p/cgit): subtree merge at adcc4f82 2020-11-21 20:09:33 +01:00
t0001-validate-git-versions.sh merge(3p/cgit): subtree merge at adcc4f82 2020-11-21 20:09:33 +01:00
t0010-validate-html.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0020-validate-cache.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0101-index.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0102-summary.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0103-log.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0104-tree.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0105-commit.sh merge(3p/cgit): subtree merge at adcc4f82 2020-11-21 20:09:33 +01:00
t0106-diff.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0107-snapshot.sh test(3p/cgit): t0107: support older and/or non-GNU tar 2021-09-21 14:14:05 +03:00
t0108-patch.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0109-gitconfig.sh merge(3p/cgit): subtree merge at adcc4f82 2020-11-21 20:09:33 +01:00
t0110-rawdiff.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00
t0111-filter.sh merge(third_party/cgit): Import at master of 2020-01-11 2020-01-11 23:31:05 +00:00