diff options
author | rillig <rillig> | 2007-09-09 08:01:45 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-09-09 08:01:45 +0000 |
commit | 496efaef928fa4ef55e7286718fe87841f2c03b5 (patch) | |
tree | 23f3ec3779c2c747b9f18962cc9d0e4721a9caf5 | |
parent | 2497a3d975d524b934230e53d37132a36a52e6eb (diff) | |
download | pkgsrc-496efaef928fa4ef55e7286718fe87841f2c03b5.tar.gz |
Added a testcase for tar.
-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 |