diff options
author | rillig <rillig> | 2006-07-10 12:47:26 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-10 12:47:26 +0000 |
commit | 028548f51574b6e021a657268d3027c16073ff02 (patch) | |
tree | e366b71230157cb917c5a5e78f448d702251ef42 /regress/barrier | |
parent | 18a7bda27699b18d1d4f4e652fac3b5ed920bd23 (diff) | |
download | pkgsrc-028548f51574b6e021a657268d3027c16073ff02.tar.gz |
Added a test for the new pkgsrc barriers. It currently fails, but should
not.
Diffstat (limited to 'regress/barrier')
-rw-r--r-- | regress/barrier/Makefile | 18 | ||||
-rw-r--r-- | regress/barrier/spec | 26 |
2 files changed, 44 insertions, 0 deletions
diff --git a/regress/barrier/Makefile b/regress/barrier/Makefile new file mode 100644 index 00000000000..c35b80f411c --- /dev/null +++ b/regress/barrier/Makefile @@ -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 +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 --git a/regress/barrier/spec b/regress/barrier/spec new file mode 100644 index 00000000000..1cb10e75710 --- /dev/null +++ b/regress/barrier/spec @@ -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\\.\$" +} |