diff options
-rw-r--r-- | regress/tools/Makefile | 6 | ||||
-rw-r--r-- | regress/tools/files/tar-test.sh | 24 |
2 files changed, 27 insertions, 3 deletions
diff --git a/regress/tools/Makefile b/regress/tools/Makefile index 890de8dc290..ab32c7f70f4 100644 --- a/regress/tools/Makefile +++ b/regress/tools/Makefile @@ -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 @@ -12,8 +12,8 @@ COMMENT= Test whether the TOOLS do what I expect NO_CHECKSUM= yes WRKSRC= ${WRKDIR} -REGRESS_TESTS= awk sed sh sort tr -USE_TOOLS+= awk sed sh sort tr +REGRESS_TESTS= awk sed sh sort tar tr +USE_TOOLS+= awk sed sh sort tar tr do-build: .for t in ${REGRESS_TESTS} diff --git a/regress/tools/files/tar-test.sh b/regress/tools/files/tar-test.sh new file mode 100644 index 00000000000..02573d62509 --- /dev/null +++ b/regress/tools/files/tar-test.sh @@ -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 |