summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-07-02 12:40:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-07-02 12:40:21 +0000
commitb4e480c9e431bacf793c62d726904e80edf8fbcc (patch)
tree57a69f6043b88612ffbc21c37c5b9e6ef95c90f1 /regress/usr.bin
parentd576ff0f6b302a280212023320f1323a779d3909 (diff)
those should error out... They don't, not yet.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/libtool/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/regress/usr.bin/libtool/Makefile b/regress/usr.bin/libtool/Makefile
index b389375d720..30c7a58e892 100644
--- a/regress/usr.bin/libtool/Makefile
+++ b/regress/usr.bin/libtool/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.2 2012/07/02 12:22:05 espie Exp $
+# $OpenBSD: Makefile,v 1.3 2012/07/02 12:40:20 espie Exp $
REGRESS_TARGETS = test-compile-0 test-link-0 test-install-0 \
test-run-0 test-link-1 test-install-1 test-run-1 \
- test-link-2 test-link-3 test-run-2 test-run-3
+ test-link-2 test-link-3 test-run-2 test-run-3 \
+ error-0 error-1
LIBTOOL ?= /usr/bin/libtool
@@ -33,6 +34,15 @@ test-run-1: ${DEST}/bin/p1
test-run-3: ${DEST}/bin/p2
LD_LIBRARY_PATH=${DEST}/lib ${DEST}/bin/p2
+error-0: liba.la
+# this should error out (not absolute directory)
+ if ${LIBTOOL} --mode=install cp liba.la dest; then exit 1; fi
+
+error-1:
+ touch dummy.c
+ ${LIBTOOL} --mode=compile --tag=notatag ${CC} -c -o dummy.lo dummy.c 2>&1|fgrep -q "ignoring unknown tag"
+
+
${DEST}/bin/p1: ${DEST}/lib/liba.la
${DEST}/bin/p2: ${DEST}/lib/liba0.la ${DEST}/lib/liba1.la
@@ -87,7 +97,7 @@ lib$l.la: ${OBJ_$l}
${LIBTOOL} --mode=link ${CC} ${CFLAGS} -o $@ ${$l_OPTS} ${OBJ_$l}
.endfor
-CLEANFILES += *.o *.lo *.la .libs/* ${DEST}/bin/* ${DEST}/lib/*
+CLEANFILES += *.c *.o *.lo *.la .libs/* ${DEST}/bin/* ${DEST}/lib/*
.PHONY: ${REGRESS_TARGETS} regress