Dpkg::Vendor::Debian: Move time64 buildflags feature from future to abi
[dpkg.git] / tests / t-db / Makefile
blob2e5b621a11dcdf76f09b44936b954f9a9afa264e
1 # Copyright © 2012 Guillem Jover <guillem@debian.org>
3 TESTS_DEB :=
5 include ../Test.mk
7 PKG_TUPLE = LC_ALL=C $(DPKG_QUERY) -f '$${Package}:$${Architecture}:$${Version}' -W
9 TEST_CASES += test-field-blank-lines
10 TEST_CASES += test-field-blank-lines-update
11 TEST_CASES += test-dupe-multi
12 TEST_CASES += test-cross-single-update
13 TEST_CASES += test-cross-multi-update
14 TEST_CASES += test-bogus-single
15 TEST_CASES += test-bogus-dupe-same-single
16 TEST_CASES += test-bogus-dupe-diff-single
17 TEST_CASES += test-bogus-multi
18 TEST_CASES += test-bogus-multi-update
20 test-case: $(TEST_CASES)
22 test-field-blank-lines: override DPKG_ADMINDIR = db-field-blank-lines
23 test-field-blank-lines:
24 $(call stderr_has,$(PKG_TUPLE),warning)
26 test-field-blank-lines-update: override DPKG_ADMINDIR = db-field-blank-lines-update
27 test-field-blank-lines-update:
28 $(call stderr_has,$(PKG_TUPLE),warning)
30 test-dupe-multi: override DPKG_ADMINDIR = db-dupe-multi
31 test-dupe-multi:
32 $(call stdout_is,$(PKG_TUPLE),pkg-multi:amd64:1.0)
34 test-cross-single-update: override DPKG_ADMINDIR = db-cross-single-update
35 test-cross-single-update:
36 $(call stdout_is,$(PKG_TUPLE),pkg-single:armel:3.0)
38 test-cross-multi-update: override DPKG_ADMINDIR = db-cross-multi-update
39 test-cross-multi-update:
40 $(call stdout_is,$(PKG_TUPLE),pkg-multi:armel:4.0)
42 test-bogus-dupe-same-single: override DPKG_ADMINDIR = db-bogus-dupe-same-single
43 test-bogus-dupe-same-single:
44 $(call stderr_has,$(PKG_TUPLE),error)
46 test-bogus-dupe-diff-single: override DPKG_ADMINDIR = db-bogus-dupe-diff-single
47 test-bogus-dupe-diff-single:
48 $(call stderr_has,$(PKG_TUPLE),error)
50 test-bogus-single: override DPKG_ADMINDIR = db-bogus-single
51 test-bogus-single:
52 $(call stderr_has,$(PKG_TUPLE),error)
54 test-bogus-multi: override DPKG_ADMINDIR = db-bogus-multi
55 test-bogus-multi:
56 $(call stderr_has,$(PKG_TUPLE),error)
58 test-bogus-multi-update: override DPKG_ADMINDIR = db-bogus-multi-update
59 test-bogus-multi-update:
60 $(call stderr_has,$(PKG_TUPLE),error)