From 9bc3430a460eff4807293e52d1e0d040ad2bc2fa Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 25 Sep 2004 22:05:46 +0000 Subject: Add a test for the "rmdir" transformation. --- regress/buildlink-transform/Makefile | 7 ++++++- regress/buildlink-transform/tests/remove-dir.mk | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 regress/buildlink-transform/tests/remove-dir.mk (limited to 'regress/buildlink-transform') diff --git a/regress/buildlink-transform/Makefile b/regress/buildlink-transform/Makefile index bc55dbbb06a..eb46f964e25 100644 --- a/regress/buildlink-transform/Makefile +++ b/regress/buildlink-transform/Makefile @@ -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 @@ NO_PACKAGE= yes # 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 --git a/regress/buildlink-transform/tests/remove-dir.mk b/regress/buildlink-transform/tests/remove-dir.mk new file mode 100644 index 00000000000..81c6753a1e1 --- /dev/null +++ b/regress/buildlink-transform/tests/remove-dir.mk @@ -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} -- cgit v1.2.3