You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
filters t0111: Additions and fixes 10 years ago
valgrind/bin tests: add Valgrind support 10 years ago
.gitignore tests/.gitignore: update for using Git's test infrastructure 11 years ago
Makefile tests: allow shell to be overridden 9 years ago
setup.sh tests: try with commit-graph 3 years ago
t0001-validate-git-versions.sh global: replace references to 'sha1' with 'oid' 3 years ago
t0010-validate-html.sh tests/: Do not use `sed -i` 11 years ago
t0020-validate-cache.sh cache.c: cache ls_cache output properly 11 years ago
t0101-index.sh tests: use Git's test framework 11 years ago
t0102-summary.sh tests: use Git's test framework 11 years ago
t0103-log.sh tests: use Git's test framework 11 years ago
t0104-tree.sh Reduce line number bloat, fix hover effect 10 years ago
t0105-commit.sh global: replace hard coded hash length 3 years ago
t0106-diff.sh tests: use Git's test framework 11 years ago
t0107-snapshot.sh tests: t0107: support older and/or non-GNU tar 3 years ago
t0108-patch.sh ui-patch: match git-format-patch(1) output 9 years ago
t0109-gitconfig.sh git: update to v2.29.0 3 years ago
t0110-rawdiff.sh t0110: Chain together using && 9 years ago
t0111-filter.sh tests: only do lua tests if lua is compiled-in 10 years ago