From: anton Date: Sun, 13 Aug 2023 18:34:49 +0000 (+0000) Subject: Use a dedicated regress target for each test case. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=98bdc24e32a4375f5887ba34adff6f09f4d6b4c4;p=openbsd Use a dedicated regress target for each test case. ok gnezdo@ --- diff --git a/regress/libexec/ld.so/ldd/Makefile b/regress/libexec/ld.so/ldd/Makefile index b8b79d64d86..db93f089076 100644 --- a/regress/libexec/ld.so/ldd/Makefile +++ b/regress/libexec/ld.so/ldd/Makefile @@ -1,19 +1,16 @@ -# $OpenBSD: Makefile,v 1.1 2023/08/12 13:43:22 gnezdo Exp $ +# $OpenBSD: Makefile,v 1.2 2023/08/13 18:34:49 anton Exp $ -.include +REGRESS_TARGETS+= empty +REGRESS_TARGETS+= short -REGRESS_TARGETS = test - -.include - -CLEANFILES+=empty short - -.PHONY: test -test: empty short - ${SHELL} ${.CURDIR}/test.sh +CLEANFILES+= *.in *.out empty: - touch empty + : >$@.in + ldd $@.in 2>&1 | tee $@.out | grep -q 'incomplete ELF header' short: - dd if=/usr/bin/ldd of=short count=128 bs=1 + dd if=/usr/bin/ldd of=$@.in count=128 bs=1 status=none + ldd $@.in 2>&1 | tee $@.out | grep -q 'incomplete program header' + +.include