libdpkg: Refactor file_readlink() function
[dpkg.git] / tests / t-unpack-symlink / Makefile
blob518ca4e3082301651e4fa2f2a0a0dc2eb7c34863
1 TESTS_DEB := pkg-symlink
3 include ../Test.mk
5 build-hook:
6 ln -fs test-file pkg-symlink/test-symlink
8 clean-hook:
9 $(RM) pkg-symlink/test-symlink
11 test-case:
12 # test unpacking symlinks
13 $(DPKG_INSTALL) pkg-symlink.deb
14 $(call pkg_is_installed,pkg-symlink)
15 test -f "$(DPKG_INSTDIR)/test-file"
16 test -L "$(DPKG_INSTDIR)/test-symlink"
17 test "`readlink '$(DPKG_INSTDIR)/test-symlink'`" = "test-file"
19 test-clean:
20 $(DPKG_PURGE) pkg-symlink