1#	$OpenBSD: Makefile,v 1.9 2019/05/10 15:36:19 bluhm Exp $
2#
3# Author: Ingo Schwarze <schwarze@openbsd.org>, 2016.  Public Domain.
4
5PROGS =		test_read_char test_getcmd
6CLEANFILES +=	out_getcmd.txt
7
8REGRESS_TARGETS += run-read_char
9run-read_char: test_read_char
10	sh ${.CURDIR}/test_read_char.sh
11
12REGRESS_TARGETS += run-getcmd
13run-getcmd: test_getcmd
14	echo -n s | ./test_getcmd > out_getcmd.txt
15	diff -u ${.CURDIR}/exp_getcmd.txt out_getcmd.txt
16
17.include <bsd.regress.mk>
18