dselect: Do not pass non-POD types to functions with variadic arguments
[dpkg.git] / tests / t-unpack-divert-hardlink / Makefile
blob75287f74b858487950aa0081af34e08438a7cbe4
1 PKG := pkg-hardlink
3 TESTS_DEB := $(PKG)
5 include ../Test.mk
7 $(PKG)/test-hardlink:
8 link $(PKG)/test-file $@
10 build-hook: $(PKG)/test-hardlink
12 clean-hook:
13 rm -f $(PKG)/test-hardlink
15 test-case:
16 $(DPKG_DIVERT_ADD) /test-file
17 $(DPKG_DIVERT_ADD) /test-hardlink
18 # test if unpack can divert a hardlink
19 $(DPKG_INSTALL) pkg-hardlink.deb
20 $(call pkg_is_installed,pkg-hardlink)
21 test -f '$(DPKG_INSTDIR)/test-file.distrib'
22 test -f '$(DPKG_INSTDIR)/test-hardlink.distrib'
23 cmp '$(DPKG_INSTDIR)/test-file.distrib' \
24 '$(DPKG_INSTDIR)/test-hardlink.distrib'
25 test "`stat -c '%i' '$(DPKG_INSTDIR)/test-file.distrib'`" = \
26 "`stat -c '%i' '$(DPKG_INSTDIR)/test-hardlink.distrib'`"
28 test-clean:
29 $(DPKG_PURGE) pkg-hardlink
30 $(DPKG_DIVERT_DEL) /test-file
31 $(DPKG_DIVERT_DEL) /test-hardlink