diff options
author | gavan <gavan@pkgsrc.org> | 2005-02-12 14:45:53 +0000 |
---|---|---|
committer | gavan <gavan@pkgsrc.org> | 2005-02-12 14:45:53 +0000 |
commit | 669081be1d04f1c59003a7a3f9a8e8e3ad8ab440 (patch) | |
tree | 3763fd6e7f9d63166c3a0e8ec2b542436ecf9348 /regress/ignore-tools/spec | |
parent | 3d47b94c7f63f42bb59b61dbfcccc8220e56558b (diff) | |
download | pkgsrc-669081be1d04f1c59003a7a3f9a8e8e3ad8ab440.tar.gz |
New test to verify that the USE_GNU_TOOLS mechanism works while building
a different GNU tool.
For now, this test fails if flex or bison are already installed. This is
suboptimal, but the alternatives (choosing a different PKG_DBDIR and
LOCALBASE) are difficult to implement at the individual test level.
Diffstat (limited to 'regress/ignore-tools/spec')
-rw-r--r-- | regress/ignore-tools/spec | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/regress/ignore-tools/spec b/regress/ignore-tools/spec new file mode 100644 index 00000000000..e9027d4c131 --- /dev/null +++ b/regress/ignore-tools/spec @@ -0,0 +1,39 @@ +# $NetBSD: spec,v 1.1 2005/02/12 14:45:53 gavan Exp $ + +# Trigger the circular dependency detection logic to fail the package build before +# actually wasting time building anything. + +_PKGSRC_DEPS=`cd ../../devel/bison && make show-var VARNAME=PKGNAME` +MAKEARGS_TEST="install _PKGSRC_DEPS=${_PKGSRC_DEPS}" +MAKEARGS_CLEAN="clean clean-depends" + +# This test doesn't work if flex or bison are installed. + +if pkg_info -qe flex +then + MAKEARGS_TEST="PKG_FAIL_REASON=flex-must-be-deinstalled" +fi + +if pkg_info -qe bison +then + MAKEARGS_TEST="PKG_FAIL_REASON=bison-must-be-deinstalled" +fi + +check_result() +{ + +# This test should fail with a circular dependency error + +exit_status 1 + +output_require "Required package bison" +output_require "Circular dependency detected" + +# This test should not start configuring anything + +output_prohibit "Configuring for" +output_prohibit "bison-must-be-deinstalled" +output_prohibit "flex-must-be-deinstalled" + +} + |