Added a testcase for tar.

This commit is contained in:
rillig 2007-09-09 08:01:45 +00:00
parent 72423d1d7e
commit 3702f2b4c7
2 changed files with 27 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2006/11/09 12:39:55 rillig Exp $ # $NetBSD: Makefile,v 1.7 2007/09/09 08:01:45 rillig Exp $
# #
DISTNAME= # not applicable DISTNAME= # not applicable
@ -12,8 +12,8 @@ COMMENT= Test whether the TOOLS do what I expect
NO_CHECKSUM= yes NO_CHECKSUM= yes
WRKSRC= ${WRKDIR} WRKSRC= ${WRKDIR}
REGRESS_TESTS= awk sed sh sort tr REGRESS_TESTS= awk sed sh sort tar tr
USE_TOOLS+= awk sed sh sort tr USE_TOOLS+= awk sed sh sort tar tr
do-build: do-build:
.for t in ${REGRESS_TESTS} .for t in ${REGRESS_TESTS}

View file

@ -0,0 +1,24 @@
#! /bin/sh
# $NetBSD: tar-test.sh,v 1.1 2007/09/09 08:01:45 rillig Exp $
#
set -e
mydir=`dirname "$0"`
. "${mydir}/tests.subr"
#
# Functions specific for the tar testsuite.
#
# none.
#
# The actual test.
#
# tar must support the -z option.
#
testcase_start "-z"
echo "data" > file
tar cfz archive.tar.gz file