New upstream version 1.9
[debian/gzip] / tests / upper-suffix
1 #!/bin/sh
2 # Ensure an upper-case user-specified suffix works as expected.
3 # This test would have failed in gzip-1.18
4
5 # Copyright 2017-2018 Free Software Foundation, Inc.
6
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
19 # limit so don't run it by default.
20
21 . "${srcdir=.}/init.sh"; path_prepend_ ..
22
23 # Use a suffix of "T":
24 :|gzip > kT || framework_failure_
25
26 fail=0
27 gzip -d -S T kT > out 2> err || fail=1
28
29 test -f k || fail=1
30 compare /dev/null out || fail=1
31 compare /dev/null err || fail=1
32
33 Exit $fail