pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/buildlink-transform Add a test for the "rmdir"...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a80e636d152d
branches:  trunk
changeset: 481098:a80e636d152d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Sep 25 22:05:46 2004 +0000

description:
Add a test for the "rmdir" transformation.

diffstat:

 regress/buildlink-transform/Makefile            |  7 ++++++-
 regress/buildlink-transform/tests/remove-dir.mk |  8 ++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 5d6637958697 -r a80e636d152d regress/buildlink-transform/Makefile
--- a/regress/buildlink-transform/Makefile      Sat Sep 25 21:30:43 2004 +0000
+++ b/regress/buildlink-transform/Makefile      Sat Sep 25 22:05:46 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2004/08/28 23:54:21 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2004/09/25 22:05:46 jlam Exp $
 #
 # Run many buildlink transform tests in a single regression test to avoid
 # having to keep creating the wrapper scripts over and over again.
@@ -23,6 +23,11 @@
 # Remove GCC optimization options.
 BUILDLINK_TRANSFORM+=  rm:-O[0-9]*
 
+# Remove /opt/schily.
+.if ${LOCALBASE} != "/opt/schily"
+BUILDLINK_TRANSFORM+=  rmdir:/opt/schily 
+.endif 
+
 # Convert "-lreadline" into "-ledit -ltermcap -lm".
 BUILDLINK_TRANSFORM+=  l:readline:edit:termcap:m
 
diff -r 5d6637958697 -r a80e636d152d regress/buildlink-transform/tests/remove-dir.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/remove-dir.mk   Sat Sep 25 22:05:46 2004 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: remove-dir.mk,v 1.1 2004/09/25 22:05:46 jlam Exp $
+
+.PHONY: remove-dir
+do-regress: remove-dir
+remove-dir:
+       @test="-L/opt/schily/lib -I/opt/schily/include";                \
+       expected="";                                                    \
+       ${TEST_RESULT}



Home | Main Index | Thread Index | Old Index