summaryrefslogtreecommitdiff
path: root/regress/bin/ps/Makefile
blob: a3a90266a7ebb4134970d3f852e2ffe6205bf442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $OpenBSD: Makefile,v 1.1 2014/03/20 04:00:34 lteo Exp $

REGRESS_TARGETS=	valid_keywords invalid_keywords

# This test ensures that ps(1) will actually accept the keywords it claims to
# accept, and that the list of keywords in ps/keyword.c are in ascending order
# (which is required by the bsearch(3)-based keyword lookup code)
valid_keywords:
	ps -o "$$(ps -L)" >/dev/null

invalid_keywords:
	if ps -o "bogus" >/dev/null 2>&1; then \
		false; \
	fi

.include <bsd.regress.mk>