source: cpio/vendor/current/tests/symlink-to-stdout.at@ 1964

Last change on this file since 1964 was 1964, checked in by Silvan Scherrer, 8 years ago

cpio: update vendor to version 2.12

File size: 1.3 KB
Line 
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
24AT_SETUP([symlink --to-stdout])
25AT_KEYWORDS([symlink symlink-to-stdout])
26
27AT_DATA([filelist],[file
28symlink
29])
30
31AT_CHECK([
32genfile --file file
33ln -s file symlink || AT_SKIP_TEST
34cpio --quiet -o < filelist > archive || exit
35cpio --quiet --to-stdout -i < archive > output || exit
36cmp file output])
37
38AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.