libdpkg: Refactor file_readlink() function
[dpkg.git] / tests / t-control-no-arch / Makefile
blob48b79fd67249155a6188dd38836d03206c41652b
1 include ../Test.mk
3 test-case:
4 # test building package with missing Architecture field.
5 ! $(DPKG_BUILD_DEB) pkg-no-arch
7 # build bogus packages
8 $(DPKG_BUILD_DEB) --nocheck pkg-no-arch
10 # test handling of package without the Architecture field
11 ! $(DPKG_INSTALL) pkg-no-arch.deb
12 $(call pkg_is_not_installed,pkg-no-arch)
13 # these ancient/bogus packages need to be forced now
14 $(DPKG_INSTALL) --force-architecture pkg-no-arch.deb
15 $(call pkg_is_installed,pkg-no-arch)
16 ! $(call stdout_has,$(DPKG_QUERY) --status pkg-no-arch,^Architecture:)
17 $(DPKG_PURGE) pkg-no-arch
18 # Clear the available file to avoid missing Architecture warnings
19 $(BEROOT) $(DPKG) --clear-avail
21 test-clean:
22 rm -f pkg-no-arch.deb