1#	$OpenBSD: Makefile,v 1.1 2017/12/16 11:00:49 florian Exp $
2
3PROG=	execpromise
4
5test_normal: ${PROG}
6	@echo '\n======== $@ ========'
7	${.OBJDIR}/${PROG} "stdio rpath inet" "stdio inet"
8REGRESS_TARGETS+=	test_normal
9
10test_no_child_pledge: ${PROG}
11	@echo '\n======== $@ ========'
12	${.OBJDIR}/${PROG} "stdio rpath inet"
13REGRESS_TARGETS+=	test_no_child_pledge
14
15test_abort_child: ${PROG}
16	@echo '\n======== $@ ========'
17	-${.OBJDIR}/${PROG} "stdio rpath"; \
18	if [[ $$? == 134 ]] ; then echo OK; else false; fi
19REGRESS_TARGETS+=	test_abort_child
20
21test_ENOSYS_child: ${PROG}
22	@echo '\n======== $@ ========'
23	-${.OBJDIR}/${PROG} "stdio rpath error"; \
24	if [[ $$? == 23 ]] ; then echo OK; else false; fi
25REGRESS_TARGETS+=	test_ENOSYS_child
26
27test_upgrade_fail: ${PROG}
28	@echo '\n======== $@ ========'
29	-${.OBJDIR}/${PROG} "stdio rpath inet" "stdio inet wpath"; \
30	if [[ $$? == 24 ]] ; then echo OK; else false; fi
31REGRESS_TARGETS+=	test_upgrade_fail
32
33test_upgrade_ignore: ${PROG}
34	@echo '\n======== $@ ========'
35	${.OBJDIR}/${PROG} "stdio rpath inet error" "stdio rpath wpath inet"
36REGRESS_TARGETS+=	test_upgrade_ignore
37
38
39.include <bsd.regress.mk>
40