summaryrefslogtreecommitdiff
path: root/regress/usr.bin/file/Makefile
blob: 1fb40fcba849aba05d4719a6eadb4c681face402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $OpenBSD: Makefile,v 1.10 2017/07/06 21:33:45 bluhm Exp $

FILE?=	file

REGRESS_TARGETS= t0  t1  t2  t3  t4  t5  t6  t7  t8  t9 \
		t10 t11             t15     t17 t18 t19 \
		t20 t21 t22                             \
		t30 t31 t32 t33                         \
		stdin

# .in:  input file
# .out: desired result

.SUFFIXES: .in

.in:
	@echo ${*}
	@${FILE} ${.CURDIR}/${*}.in | \
		sed -e "s@${.CURDIR}/@@" | \
		diff - ${.CURDIR}/${*}.out || \
		(echo "XXX ${*} failed" && false)

stdin:
	@echo ${*}
	@${FILE} - <${.CURDIR}/t0.in | \
		diff - ${.CURDIR}/${*}.out || \
		(echo "XXX ${*} failed" && false)

clean:

.include <bsd.regress.mk>