]> Dogcows Code - chaz/tar/blobdiff - tests/star/gtarfail.at
Rewritten testsuite in autotest
[chaz/tar] / tests / star / gtarfail.at
old mode 100755 (executable)
new mode 100644 (file)
similarity index 78%
rename from tests/star/gtarfail.sh
rename to tests/star/gtarfail.at
index c32e13c..c13d494
@@ -1,35 +1,40 @@
-#! /bin/sh
-# This file is part of GNU tar testsuite.
+# Process this file with autom4te to create testsuite. -*- Autotest -*-
+
+# Test suite for GNU tar.
 # Copyright (C) 2004 Free Software Foundation, Inc.
-#
+
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2, or (at your option)
 # any later version.
-#
+
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-#
+
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 # 02111-1307, USA.
 
-. ./preset
-star_prereq gtarfail.tar
-TAR_ARCHIVE_FORMATS=auto
-. $srcdir/before
+AT_SETUP([gtarfail])
+AT_KEYWORDS([gtarfail])
 
-tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
+unset TAR_OPTIONS
+
+AT_CHECK([
+AT_STAR_PREREQ([gtarfail.tar])
 
-out="\
--rw-r--r-- jes/glone       518 2001-05-25 14:41:06 vedpowered.gif
+tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
+],
+[0],
+[-rw-r--r-- jes/glone       518 2001-05-25 14:41:06 vedpowered.gif
 -rw-r--r-- jes/glone      6825 1997-04-29 00:19:16 cd.gif
 -rw-r--r-- jes/glone     33354 1999-06-22 12:17:38 DSCN0049c.JPG
 -rw-r--r-- jes/glone     86159 2001-06-05 18:16:04 Window1.jpg
 -rw-r--r-- jes/glone      1310 2001-05-25 13:05:41 vipower.gif
 -rw-rw-rw- jes/glone    148753 1998-09-15 13:08:15 billyboy.jpg
-"
-. $srcdir/after
+])
+
+AT_CLEANUP
This page took 0.027421 seconds and 4 git commands to generate.