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 some more tests for "l...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7852475cf125
branches: trunk
changeset: 480023:7852475cf125
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Aug 28 06:26:41 2004 +0000
description:
Add some more tests for "l" and "rm" BUILDLINK_TRANSFORM commands.
diffstat:
regress/buildlink-transform/Makefile | 17 ++++++++++++++---
regress/buildlink-transform/tests/lib-expand.mk | 8 ++++++++
regress/buildlink-transform/tests/preserve-option.mk | 8 ++++++++
regress/buildlink-transform/tests/remove-option.mk | 8 ++++++++
4 files changed, 38 insertions(+), 3 deletions(-)
diffs (74 lines):
diff -r bb1e2ee3c8f8 -r 7852475cf125 regress/buildlink-transform/Makefile
--- a/regress/buildlink-transform/Makefile Sat Aug 28 06:18:39 2004 +0000
+++ b/regress/buildlink-transform/Makefile Sat Aug 28 06:26:41 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/08/28 02:35:41 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2004/08/28 06:26:41 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.
@@ -20,6 +20,12 @@
NO_INSTALL= yes
NO_PACKAGE= yes
+# Remove GCC optimization options.
+BUILDLINK_TRANSFORM+= rm:-O[0-9]*
+
+# Convert "-lreadline" into "-ledit -ltermcap -lm".
+BUILDLINK_TRANSFORM+= l:readline:edit:termcap:m
+
REGRESS_ENV= PATH=${PATH}
#REGRESS_ENV+= WRAPPER_DEBUG=yes
@@ -46,8 +52,13 @@
${ECHO} "(${.TARGET}) got: $$runtest"; \
${ECHO} "(${.TARGET}) expected: $$expected"; \
case $$runtest in \
- $$expected) ;; \
- *) exit 1 ;; \
+ $$expected) \
+ ${ECHO} "(${.TARGET}) result: PASS"; \
+ ;; \
+ *) \
+ ${ECHO} "(${.TARGET}) result: FAIL"; \
+ exit 1; \
+ ;; \
esac
TEST_DIR= ${.CURDIR}/tests
diff -r bb1e2ee3c8f8 -r 7852475cf125 regress/buildlink-transform/tests/lib-expand.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/lib-expand.mk Sat Aug 28 06:26:41 2004 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: lib-expand.mk,v 1.1 2004/08/28 06:26:41 jlam Exp $
+
+.PHONY: lib-expand
+do-regress: lib-expand
+lib-expand:
+ @test="-lreadline"; \
+ expected="-ledit -ltermcap -lm"; \
+ ${TEST_RESULT}
diff -r bb1e2ee3c8f8 -r 7852475cf125 regress/buildlink-transform/tests/preserve-option.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/preserve-option.mk Sat Aug 28 06:26:41 2004 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: preserve-option.mk,v 1.1 2004/08/28 06:26:41 jlam Exp $
+
+.PHONY: preserve-option
+do-regress: preserve-option
+preserve-option:
+ @test="-O2ABC"; \
+ expected="-O2ABC"; \
+ ${TEST_RESULT}
diff -r bb1e2ee3c8f8 -r 7852475cf125 regress/buildlink-transform/tests/remove-option.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/remove-option.mk Sat Aug 28 06:26:41 2004 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: remove-option.mk,v 1.1 2004/08/28 06:26:41 jlam Exp $
+
+.PHONY: remove-option
+do-regress: remove-option
+remove-option:
+ @test="-O2 -O5 -O9"; \
+ expected=""; \
+ ${TEST_RESULT}
Home |
Main Index |
Thread Index |
Old Index