summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pkg-config/Makefile
blob: f30d29668636a83b5a58448081436f6ef33a88b9 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
#	$OpenBSD: Makefile,v 1.1 2011/06/06 13:58:03 jasper Exp $

#REGRESS_TARGETS=cmp-vers1 cmp-vers2 cmp-vers3 cmp-vers4 cmp-vers5 cmp-vers6 \
#	sysroot builddir define-variable print-provides print-req \
#	print-req-priv corrupt1 corrupt2
REGRESS_TARGETS=corrupt1 corrupt2 print-req-priv

cmp-vers1:
	# Test regular versions (a < b)

cmp-vers2:
	# Test regular versions (a > b)

cmp-vers3:
	# Test regular versions (a = b)

cmp-vers4:
	# Test suffixed versions (alpha)

cmp-vers5:
	# Test suffixed versions (beta)

cmp-vers6:
	# Test suffixed versions (rc)

sysroot:
	# Test PKG_CONFIG_SYSROOT_DIR

builddir:
	# Test PKG_CONFIG_TOP_BUILD_DIR

define-variable:
	# Test --define-variable

print-provides:
	# Test --print-provides

print-req:
	# Test --print-requires
	
print-req-priv:
	# Test --print-requires-private
	@echo "print-req-priv2>=0.0.1" > $@.want
	@if PKG_CONFIG_PATH=${.CURDIR}/pcdir/ pkg-config \
		--print-requires-private $@ > $@.got; then false; fi
	@diff -u $@.want $@.got

corrupt1:
	# Test for missing variables/fields
	@echo "Package 'corrupt1' has no Version: field" > $@.want
	@if PKG_CONFIG_PATH=${.CURDIR}/pcdir/ pkg-config \
		--exists $@ 2> $@.got; then false; fi
	@diff -u $@.want $@.got

corrupt2:
	# Test for missing variables/fields
	@echo "Package 'corrupt2' has no Name: field" > $@.want
	@if PKG_CONFIG_PATH=${.CURDIR}/pcdir/ pkg-config \
		--exists $@ 2> $@.got; then false; fi
	@diff -u $@.want $@.got

clean:
	rm -f *.want *.got

.PHONY: ${REGRESS_TARGETS}

.include <bsd.regress.mk>