1# $OpenBSD: Makefile,v 1.3 2015/12/15 04:18:46 schwarze Exp $
2
3REGRESS_TARGETS=	valid_keywords invalid_keywords command cwd user
4
5# This test ensures that ps(1) will actually accept the keywords it claims to
6# accept, and that the list of keywords in ps/keyword.c are in ascending order
7# (which is required by the bsearch(3)-based keyword lookup code)
8valid_keywords:
9	ps -o "$$(ps -L)" >/dev/null
10
11invalid_keywords:
12	if ps -o "bogus" >/dev/null 2>&1; then \
13		false; \
14	fi
15
16command: shortsleep
17	sh ${.CURDIR}/command.sh
18
19cwd: shortsleep
20	sh ${.CURDIR}/cwd.sh
21
22user: shortsleep
23	sh ${.CURDIR}/user.sh
24
25cleandir:
26	rm -f shortsleep
27
28.include <bsd.regress.mk>
29