maint: initialize MAINTAINERCLEANFILES
[gzip.git] / tests / upper-suffix
blobd7b057cb756e474556d493bbf2155cc44de5e370
1 #!/bin/sh
2 # Ensure an upper-case user-specified suffix works as expected.
3 # This test would have failed in gzip-1.18
5 # Copyright 2017-2024 Free Software Foundation, Inc.
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.
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.
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.
21 . "${srcdir=.}/init.sh"; path_prepend_ ..
23 # Use a suffix of "T":
24 :|gzip > kT || framework_failure_
26 fail=0
27 gzip -d -S T kT > out 2> err || fail=1
29 test -f k || fail=1
30 compare /dev/null out || fail=1
31 compare /dev/null err || fail=1
33 Exit $fail