summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-09-09 08:01:45 +0000
committerrillig <rillig@pkgsrc.org>2007-09-09 08:01:45 +0000
commit3702f2b4c77705dd6f487262e28cbe24ac655e63 (patch)
tree23f3ec3779c2c747b9f18962cc9d0e4721a9caf5 /regress
parent72423d1d7efa33cc49d1722609dc38cea1df7961 (diff)
downloadpkgsrc-3702f2b4c77705dd6f487262e28cbe24ac655e63.tar.gz
Added a testcase for tar.
Diffstat (limited to 'regress')
-rw-r--r--regress/tools/Makefile6
-rw-r--r--regress/tools/files/tar-test.sh24
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