diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
commit | ea314d2f45c40a006c0104157013ab4b857f665f (patch) | |
tree | 3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /tests/t-deb-lfs/Makefile | |
parent | Initial commit. (diff) | |
download | dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.tar.xz dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.zip |
Adding upstream version 1.22.4.upstream/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/t-deb-lfs/Makefile')
-rw-r--r-- | tests/t-deb-lfs/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/t-deb-lfs/Makefile b/tests/t-deb-lfs/Makefile new file mode 100644 index 0000000..4e45e1f --- /dev/null +++ b/tests/t-deb-lfs/Makefile @@ -0,0 +1,35 @@ +PKG_SFS := pkg-sfs +PKG_LFS := pkg-lfs + +TESTS_DEB := $(PKG_LFS) $(PKG_SFS) + +# This will test both the ar archive and the tar LFS support. +DPKG_DEB_OPTIONS = -Znone + +include ../Test.mk + +$(PKG_LFS)/large-file: + dd if=/dev/zero of=$@ bs=1K count=5M + +$(PKG_SFS)/small-file: + yes | dd of=$@ bs=1K count=4 + +build-hook: $(PKG_LFS)/large-file $(PKG_SFS)/small-file + +clean-hook: + $(RM) $(PKG_LFS)/large-file $(PKG_SFS)/small-file + +test-case: + # test Small File Support packages + $(DPKG_INSTALL) pkg-sfs.deb + $(call pkg_is_installed,pkg-sfs) + test "`stat -c%s '$(DPKG_INSTDIR)/small-file'`" = "4096" + + # test Large File Support packages + $(DPKG_INSTALL) pkg-lfs.deb + $(call pkg_is_installed,pkg-lfs) + test "`stat -c%s '$(DPKG_INSTDIR)/large-file'`" = "5368709120" + +test-clean: + $(DPKG_PURGE) pkg-sfs + $(DPKG_PURGE) pkg-lfs |