xref: /aosp_15_r20/external/zstd/tests/cli-tests/cltools/zstdless.sh (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1*01826a49SYabin Cui#!/bin/sh
2*01826a49SYabin Cui
3*01826a49SYabin Cuiset -e
4*01826a49SYabin Cui
5*01826a49SYabin Cuiprintln "+ good path"
6*01826a49SYabin Cuizstdless file.zst
7*01826a49SYabin Cuiprintln "+ pass parameters"
8*01826a49SYabin Cuizstdless -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
9*01826a49SYabin Cuiprintln "+ bad path"
10*01826a49SYabin Cuizstdless bad.zst >&2
11