-# $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 \
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
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
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