1 | # Process this file with autom4te to create testsuite. -*- Autotest -*-
|
---|
2 | # Copyright (C) 2006-2007, 2010, 2014-2015 Free Software Foundation,
|
---|
3 | # Inc.
|
---|
4 |
|
---|
5 | # This program is free software; you can redistribute it and/or modify
|
---|
6 | # it under the terms of the GNU General Public License as published by
|
---|
7 | # the Free Software Foundation; either version 3, or (at your option)
|
---|
8 | # any later version.
|
---|
9 |
|
---|
10 | # This program is distributed in the hope that it will be useful,
|
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | # GNU General Public License for more details.
|
---|
14 |
|
---|
15 | # You should have received a copy of the GNU General Public License
|
---|
16 | # along with this program; if not, write to the Free Software
|
---|
17 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
18 | # 02110-1301 USA.
|
---|
19 |
|
---|
20 | # Description: Cpio versions up to 2.10.91 failed to copy files out
|
---|
21 | # of an archive to standard output (with --to-stdout option),
|
---|
22 | # if the archive contained a symlink.
|
---|
23 |
|
---|
24 | AT_SETUP([symlink --to-stdout])
|
---|
25 | AT_KEYWORDS([symlink symlink-to-stdout])
|
---|
26 |
|
---|
27 | AT_DATA([filelist],[file
|
---|
28 | symlink
|
---|
29 | ])
|
---|
30 |
|
---|
31 | AT_CHECK([
|
---|
32 | genfile --file file
|
---|
33 | ln -s file symlink || AT_SKIP_TEST
|
---|
34 | cpio --quiet -o < filelist > archive || exit
|
---|
35 | cpio --quiet --to-stdout -i < archive > output || exit
|
---|
36 | cmp file output])
|
---|
37 |
|
---|
38 | AT_CLEANUP
|
---|