diff options
Diffstat (limited to '3rdparty/zstd/tests/cli-tests/cltools')
8 files changed, 37 insertions, 0 deletions
diff --git a/3rdparty/zstd/tests/cli-tests/cltools/setup b/3rdparty/zstd/tests/cli-tests/cltools/setup new file mode 100755 index 00000000000..3009bd5be5b --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/setup @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +echo "1234" > file +zstd file diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh new file mode 100755 index 00000000000..6cd68b7ab27 --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +println "+ good path" +zstdgrep "1234" file file.zst +println "+ bad path" +zstdgrep "1234" bad.zst diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.exit b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.exit new file mode 100644 index 00000000000..56a6051ca2b --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.exit @@ -0,0 +1 @@ +1
\ No newline at end of file diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stderr.exact b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stderr.exact new file mode 100644 index 00000000000..f147f28d7ea --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stderr.exact @@ -0,0 +1 @@ +zstd: can't stat bad.zst : No such file or directory -- ignored diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stdout.glob b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stdout.glob new file mode 100644 index 00000000000..96d4fa2cbcc --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdgrep.sh.stdout.glob @@ -0,0 +1,4 @@ ++ good path +file:1234 +file.zst:1234 ++ bad path diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh new file mode 100755 index 00000000000..a0697bde644 --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +println "+ good path" +zstdless file.zst +println "+ pass parameters" +zstdless -N file.zst # This parameter does not produce line #s when piped, but still serves to test that the flag went to less and not zstd +println "+ bad path" +zstdless bad.zst >&2 diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stderr.exact b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stderr.exact new file mode 100644 index 00000000000..5a726f1d149 --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stderr.exact @@ -0,0 +1,2 @@ +zstd: can't stat bad.zst : No such file or directory -- ignored +bad.zst: No such file or directory diff --git a/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stdout.glob b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stdout.glob new file mode 100644 index 00000000000..2784dddf17c --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/cltools/zstdless.sh.stdout.glob @@ -0,0 +1,5 @@ ++ good path +1234 ++ pass parameters +1234 ++ bad path |