pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/print-plist Initial import of the print-plist ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b140d946557a
branches: trunk
changeset: 480410:b140d946557a
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Wed Sep 08 15:04:23 2004 +0000
description:
Initial import of the print-plist regression test:
This test verifies that print-PLIST works, as well as related functionality
such as PRINT_PLIST_AWK.
Reviewed by gavan@.
diffstat:
regress/print-plist/DESCR | 2 ++
regress/print-plist/Makefile | 30 ++++++++++++++++++++++++++++++
regress/print-plist/PLIST | 3 +++
regress/print-plist/spec | 20 ++++++++++++++++++++
4 files changed, 55 insertions(+), 0 deletions(-)
diffs (71 lines):
diff -r 2b95e39bf181 -r b140d946557a regress/print-plist/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/print-plist/DESCR Wed Sep 08 15:04:23 2004 +0000
@@ -0,0 +1,2 @@
+This test verifies that print-PLIST works, as well as related functionality
+such as PRINT_PLIST_AWK.
diff -r 2b95e39bf181 -r b140d946557a regress/print-plist/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/print-plist/Makefile Wed Sep 08 15:04:23 2004 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/09/08 15:04:23 jmmv Exp $
+#
+
+DISTNAME= print-plist-0.0
+CATEGORIES= regress
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= jmmv%NetBSD.org@localhost
+COMMENT= Test print-PLIST and related functionality
+
+EXTRACT_ONLY= # empty
+NO_CONFIGURE= yes
+NO_MTREE= yes
+
+PRINT_PLIST_AWK+= /^print-plist\/foo$$/ \
+ { print "@comment Matched test file."; \
+ print; next }
+PRINT_PLIST_AWK+= /^@dirrm print-plist$$/ \
+ { print "@comment Matched test directory."; \
+ print; next }
+
+do-build:
+ ${ECHO} "foo" >${WRKDIR}/foo
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/print-plist
+ ${INSTALL_DATA} ${WRKDIR}/foo ${PREFIX}/print-plist
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2b95e39bf181 -r b140d946557a regress/print-plist/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/print-plist/PLIST Wed Sep 08 15:04:23 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/09/08 15:04:23 jmmv Exp $
+print-plist/foo
+@dirrm print-plist
diff -r 2b95e39bf181 -r b140d946557a regress/print-plist/spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/print-plist/spec Wed Sep 08 15:04:23 2004 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: spec,v 1.1.1.1 2004/09/08 15:04:23 jmmv Exp $
+#
+# print-plist regression test
+# spec file
+#
+
+# Targets to invoke for this regression test.
+MAKEARGS_TEST="install print-PLIST"
+
+# Need to remove work directory and installed files.
+MAKEARGS_CLEAN="deinstall clean"
+
+check_result()
+{
+ exit_status 0 # test is passed if the targets return 0
+ output_require "^@comment Matched test file.$" \
+ "^print-plist/foo$" \
+ "^@comment Matched test directory.$" \
+ "^@dirrm print-plist$"
+}
Home |
Main Index |
Thread Index |
Old Index