diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-07-07 10:56:14 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-07-07 10:56:14 +0000 |
commit | 5102883c727abc091ebee2acc987f44f45739413 (patch) | |
tree | cc2b7fd26b40e2f70102b381d4624daf22449ef8 /regress | |
parent | df4cf85075f81571c2f0123dcd503c34c3bb58de (diff) |
Make libtool regress tests pass:
- There are no NOPIC architectures anymore.
- Add DISABLED targets for tests failing intensionally without
touching the real targets.
- In execute mode libtool command line must use ./p2 as . is not
in my PATH.
OK mpi@ espie@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/libtool/Makefile | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/regress/usr.bin/libtool/Makefile b/regress/usr.bin/libtool/Makefile index dd60cc80797..8a2cb5c296d 100644 --- a/regress/usr.bin/libtool/Makefile +++ b/regress/usr.bin/libtool/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.33 2012/07/17 09:35:09 jasper Exp $ +# $OpenBSD: Makefile,v 1.34 2017/07/07 10:56:13 bluhm 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-link-4 \ @@ -16,18 +16,17 @@ COMPILE_TESTS = compile-mode-0 compile-mode-1 compile-mode-2 \ compile-mode-12 compile-mode-13 FAILING_TARGETS += error-0 -.include <bsd.own.mk> -.if defined(NOPIC) -FAILING_TARGETS += static-arch-fail -.else REGRESS_TARGETS += version-override-0 version-override-1 error-5 \ ${COMPILE_TESTS} prefer-static linkception-0 \ release-0 release-1 trip-0 FAILING_TARGETS += test-all-static -.endif REGRESS_TARGETS += ${FAILING_TARGETS} +${FAILING_TARGETS}: + # regress target $@ is know to fail + @echo DISABLED + compile-tests: ${COMPILE_TESTS} LIBTOOL ?= /usr/bin/libtool @@ -66,7 +65,7 @@ test-run-3: ${DEST}/bin/p2 LD_LIBRARY_PATH=${DEST}/lib ${DEST}/bin/p2 test-run-4: p2 - ${LIBTOOL} --mode=execute p2 + ${LIBTOOL} --mode=execute ./p2 test-help: ${LIBTOOL} --help > /dev/null @@ -136,10 +135,6 @@ version-override-0: liba9.la version-override-1: lib${WEIRD}.la fgrep -q "lib${WEIRD}.so.5.6" lib${WEIRD}.la -static-arch-fail: - @echo "Some tests are not run on static architectures" - @exit 1 - compile-mode-0: dummy.c ${LIBTOOL} --mode=compile ${CC} -c dummy.c|tee out0 @fgrep .libs/dummy.o out0|fgrep -q -- -fPIC |