1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2004 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 # We need a recent Autotest.
22 m4_version_prereq([2.52g])
24 m4_define([AT_TAR_CHECK],[
26 [m4_if([$7],[],[v7,oldgnu,ustar,posix,gnu],[$7])],
33 $1)],$2,$3,$4,$5,$6)])
36 m4_define([RE_CHECK],[
38 awk '{print NR " " $[]0}' $1.re > $[]$.1
39 awk '{print NR " " $[]0}' $1 | join $[]$.1 - |
40 while read NUM RE LINE
42 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
46 m4_define([AT_SKIP_TEST],[exit 77])
48 m4_define([AT_STAR_PREREQ],[
49 test -z "$STAR_TESTSCRIPTS" && AT_SKIP_TEST
50 test -r "$STAR_TESTSCRIPTS/$1" || AT_SKIP_TEST
57 m4_include([version.at])
59 m4_include([options.at])
61 m4_include([append.at])
63 m4_include([delete01.at])
64 m4_include([delete02.at])
65 m4_include([delete03.at])
66 m4_include([delete04.at])
68 m4_include([extrac01.at])
69 m4_include([extrac02.at])
70 m4_include([extrac03.at])
71 m4_include([extrac04.at])
72 m4_include([extrac05.at])
76 m4_include([incremental.at])
78 m4_include([ignfail.at])
80 m4_include([link01.at])
82 m4_include([listed01.at])
83 m4_include([listed02.at])
85 m4_include([longv7.at])
87 m4_include([multiv01.at])
88 m4_include([multiv02.at])
89 m4_include([multiv03.at])
93 m4_include([recurse.at])
95 m4_include([same-order01.at])
96 m4_include([same-order02.at])
98 m4_include([sparse01.at])
100 m4_include([volume.at])
102 m4_include([star/gtarfail.at])
103 m4_include([star/gtarfail2.at])
105 m4_include([star/multi-fail.at])
107 m4_include([star/ustar-big-2g.at])
108 m4_include([star/ustar-big-8g.at])
110 m4_include([star/pax-big-10g.at])