1 # This file is part of test suite for GNU tar. -*- Autotest -*-
2 # Copyright 2015-2019 Free Software Foundation, Inc.
4 # GNU tar is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # GNU tar is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 AT_SETUP([--null enables verbatim reading])
18 AT_KEYWORDS([files-from null T-null2 T-verbatim])
20 # According to the docs, --null should read each line from the file
21 # list verbatim. This feature was broken by commit 26538c9b (tar version
25 AT_DATA([file-list],[a
36 cat file-list | tr '\n' '\0' | tar -c -f archive -v --null -T -
44 [],[],[],[ustar]) # Testing one format is enough