pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress Added a test for the new pkgsrc barriers. It c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/90c5d18934ff
branches: trunk
changeset: 515884:90c5d18934ff
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Jul 10 12:47:26 2006 +0000
description:
Added a test for the new pkgsrc barriers. It currently fails, but should
not.
diffstat:
regress/Makefile | 3 ++-
regress/barrier/Makefile | 18 ++++++++++++++++++
regress/barrier/spec | 26 ++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 1 deletions(-)
diffs (66 lines):
diff -r 66bc1791c63c -r 90c5d18934ff regress/Makefile
--- a/regress/Makefile Mon Jul 10 12:44:55 2006 +0000
+++ b/regress/Makefile Mon Jul 10 12:47:26 2006 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.12 2005/11/19 21:28:35 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2006/07/10 12:47:26 rillig Exp $
#
COMMENT= Regression tests for pkgsrc infrastructure
+SUBDIR+= barrier
SUBDIR+= bootstrap-install-sh
SUBDIR+= buildlink-libtool
SUBDIR+= buildlink-transform
diff -r 66bc1791c63c -r 90c5d18934ff regress/barrier/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/barrier/Makefile Mon Jul 10 12:47:26 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2006/07/10 12:47:26 rillig Exp $
+#
+
+DISTNAME= barrier-1.0
+CATEGORIES= regress
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= rillig%NetBSD.org@localhost
+COMMENT= Tests whether pkgsrc barriers work as expected
+
+NO_CHECKSUM= yes
+WRKSRC= ${WRKDIR}
+
+do-build:
+ perl -e 'print "hello\n";'
+
+.include "../../mk/bsd.pkg.mk"
diff -r 66bc1791c63c -r 90c5d18934ff regress/barrier/spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/barrier/spec Mon Jul 10 12:47:26 2006 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: spec,v 1.1 2006/07/10 12:47:26 rillig Exp $
+#
+
+do_test() {
+
+ {
+
+ ${TEST_MAKE} "clean"
+
+ # Because of the missing USE_TOOLS+=perl, this test is expected
+ # to fail.
+ ${TEST_MAKE} || echo "The first call failed with exit code $?."
+
+ # Calling make(1) a second time must not change things.
+ ${TEST_MAKE} || echo "The second call failed with exit code $?."
+
+ } 1>"${TEST_OUTFILE}" 2>&1
+}
+
+check_result() {
+
+ exit_status "0"
+ output_require "USE_TOOLS\\+=perl"
+ output_require "The first call.*1\\.\$"
+ output_require "The second call.*1\\.\$"
+}
Home |
Main Index |
Thread Index |
Old Index