summaryrefslogtreecommitdiff
path: root/regress/usr.bin/tsort/Makefile
blob: da14f8dd57c383f4dc5f4724cf003c7da06a2a2f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $OpenBSD: Makefile,v 1.10 2015/09/16 05:19:22 daniel Exp $

REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7
REGRESS_SLOW_TARGETS=t4

t1: t1.out
	perl ${.CURDIR}/tsort-check t1.out ${.CURDIR}/pairs1

t2: t2.out
	perl ${.CURDIR}/normalize-cycles <t2.out|head -1|diff - ${.CURDIR}/t2.canonical

t3: t3.out pairs3
	perl ${.CURDIR}/tsort-check t3.out pairs3

t4: t4.out pairs4
	perl ${.CURDIR}/tsort-check t4.out pairs4

t5: t5.out
	perl ${.CURDIR}/tsort-check t5.out ${.CURDIR}/pairs5

t6: t6.out
	perl ${.CURDIR}/tsort-check t6.out ${.CURDIR}/pairs6

t1.out:
	tsort <${.CURDIR}/pairs1 >$@ 2>&1

t2.out:
	cat ${.CURDIR}/pairs1 ${.CURDIR}/pairs2 |tsort -l >/dev/null 2>$@

t3.out: pairs3
	tsort <pairs3 >$@ 2>&1

t4.out: pairs4
	tsort <pairs4 >$@ 2>&1

t5.out: pairs5
	tsort <${.CURDIR}/pairs5 >$@ 2>&1

t6.out: pairs6
	tsort <${.CURDIR}/pairs6 >$@ 2>&1

t7:
	tsort -h${.CURDIR}/hints1 -h ${.CURDIR}/hints2 ${.CURDIR}/pairs7 2>&1|diff - ${.CURDIR}/t7.canonical

pairs3:
	perl ${.CURDIR}/build-tree 4 8 >$@

pairs4:
	perl ${.CURDIR}/build-tree 5 10 >$@

.PHONY: t1 t2 t7
CLEANFILES+=t1.out t2.out t3.out t4.out t5.out t6.out pairs3 pairs4

.include <bsd.regress.mk>