summaryrefslogtreecommitdiffstats
path: root/tests/t-control-bogus/Makefile
blob: ec042ddbee12d846da144b7039523371712deff9 (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
include ../Test.mk

test-case:
	# test building package with bogus control files
	! $(DPKG_BUILD_DEB) pkg-bogus-colon
	! $(DPKG_BUILD_DEB) pkg-bogus-blank
	! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-empty
	! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-partial
	! $(DPKG_BUILD_DEB) pkg-bogus-format-string
	
	# build bogus packages
	$(DPKG_BUILD_DEB) --nocheck pkg-bogus-colon
	$(DPKG_BUILD_DEB) --nocheck pkg-bogus-blank
	$(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-empty
	$(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-partial
	$(DPKG_BUILD_DEB) --nocheck pkg-bogus-format-string
	
	# test installing packages with bogus control files
	! $(DPKG_INSTALL) pkg-bogus-colon.deb
	$(call pkg_is_not_installed,pkg-bogus-colon)
	! $(DPKG_INSTALL) pkg-bogus-blank.deb
	$(call pkg_is_not_installed,pkg-bogus-blank)
	! $(DPKG_INSTALL) pkg-bogus-fieldname-empty.deb
	$(call pkg_is_not_installed,pkg-bogus-fieldname-empty)
	! $(DPKG_INSTALL) pkg-bogus-fieldname-partial.deb
	$(call pkg_is_not_installed,pkg-bogus-fieldname-partial)
	! $(DPKG_INSTALL) pkg-bogus-format-string.deb
	$(call pkg_is_not_installed,pkg-bogus-format-string)

test-clean:
	rm -f pkg-bogus-colon.deb
	rm -f pkg-bogus-blank.deb