diff options
Diffstat (limited to '')
-rw-r--r-- | tests/t-symlink-dir/Makefile | 29 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-real/DEBIAN/control | 8 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-real/test-dir/file-dir | 0 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-symlink-0/DEBIAN/control | 8 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-symlink-0/file-symlink | 0 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-symlink-1/DEBIAN/control | 8 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-dir-symlink-1/file-symlink | 0 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-file/DEBIAN/conffiles | 1 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-file/DEBIAN/control | 8 | ||||
-rw-r--r-- | tests/t-symlink-dir/pkg-file/test-symlink/file-file | 0 |
10 files changed, 62 insertions, 0 deletions
diff --git a/tests/t-symlink-dir/Makefile b/tests/t-symlink-dir/Makefile new file mode 100644 index 0000000..6fa0a0b --- /dev/null +++ b/tests/t-symlink-dir/Makefile @@ -0,0 +1,29 @@ +TESTS_DEB := pkg-dir-real pkg-dir-symlink-0 pkg-dir-symlink-1 pkg-file + +include ../Test.mk + +build-hook: + ln -fs test-dir pkg-dir-symlink-0/test-symlink + ln -fs test-dir pkg-dir-symlink-1/test-symlink + +clean-hook: + $(RM) pkg-dir-symlink-0/test-symlink + $(RM) pkg-dir-symlink-1/test-symlink + +test-case: + $(DPKG_INSTALL) pkg-dir-real.deb + $(DPKG_INSTALL) pkg-dir-symlink-0.deb + $(DPKG_INSTALL) pkg-file.deb + $(DPKG_INSTALL) pkg-dir-symlink-1.deb + + $(DPKG_PURGE) pkg-dir-symlink + $(DPKG_PURGE) pkg-file + $(DPKG_PURGE) pkg-dir-real + + test ! -L '$(DPKG_INSTDIR)/test-symlink' + +test-clean: + $(DPKG_PURGE) pkg-dir-symlink + $(DPKG_PURGE) pkg-file + $(DPKG_PURGE) pkg-dir-real + $(BEROOT) $(RM) '$(DPKG_INSTDIR)/test-symlink' diff --git a/tests/t-symlink-dir/pkg-dir-real/DEBIAN/control b/tests/t-symlink-dir/pkg-dir-real/DEBIAN/control new file mode 100644 index 0000000..8d73fa6 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-real/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-dir-real +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - package with real dir + diff --git a/tests/t-symlink-dir/pkg-dir-real/test-dir/file-dir b/tests/t-symlink-dir/pkg-dir-real/test-dir/file-dir new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-real/test-dir/file-dir diff --git a/tests/t-symlink-dir/pkg-dir-symlink-0/DEBIAN/control b/tests/t-symlink-dir/pkg-dir-symlink-0/DEBIAN/control new file mode 100644 index 0000000..a19a7e1 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-symlink-0/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-dir-symlink +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - package with symlink to dir + diff --git a/tests/t-symlink-dir/pkg-dir-symlink-0/file-symlink b/tests/t-symlink-dir/pkg-dir-symlink-0/file-symlink new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-symlink-0/file-symlink diff --git a/tests/t-symlink-dir/pkg-dir-symlink-1/DEBIAN/control b/tests/t-symlink-dir/pkg-dir-symlink-1/DEBIAN/control new file mode 100644 index 0000000..becfc01 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-symlink-1/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-dir-symlink +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - package with symlink to dir + diff --git a/tests/t-symlink-dir/pkg-dir-symlink-1/file-symlink b/tests/t-symlink-dir/pkg-dir-symlink-1/file-symlink new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-symlink-dir/pkg-dir-symlink-1/file-symlink diff --git a/tests/t-symlink-dir/pkg-file/DEBIAN/conffiles b/tests/t-symlink-dir/pkg-file/DEBIAN/conffiles new file mode 100644 index 0000000..551fc78 --- /dev/null +++ b/tests/t-symlink-dir/pkg-file/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-symlink/file-file diff --git a/tests/t-symlink-dir/pkg-file/DEBIAN/control b/tests/t-symlink-dir/pkg-file/DEBIAN/control new file mode 100644 index 0000000..b9a481c --- /dev/null +++ b/tests/t-symlink-dir/pkg-file/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-file +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - package with file inside dir + diff --git a/tests/t-symlink-dir/pkg-file/test-symlink/file-file b/tests/t-symlink-dir/pkg-file/test-symlink/file-file new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-symlink-dir/pkg-file/test-symlink/file-file |