diff --git a/slices/gzip.yaml b/slices/gzip.yaml new file mode 100644 index 000000000..c18633e30 --- /dev/null +++ b/slices/gzip.yaml @@ -0,0 +1,28 @@ +package: gzip + +essential: + - gzip_copyright + +slices: + bins: + essential: + - libc6_libs + contents: + /usr/bin/gunzip: + /usr/bin/gzexe: + /usr/bin/gzip: + /usr/bin/uncompress: + /usr/bin/zcat: + /usr/bin/zcmp: + /usr/bin/zdiff: + /usr/bin/zegrep: + /usr/bin/zfgrep: + /usr/bin/zforce: + /usr/bin/zgrep: + /usr/bin/zless: + /usr/bin/zmore: + /usr/bin/znew: + + copyright: + contents: + /usr/share/doc/gzip/copyright: diff --git a/tests/spread/integration/gzip/task.yaml b/tests/spread/integration/gzip/task.yaml new file mode 100644 index 000000000..afe2a19d7 --- /dev/null +++ b/tests/spread/integration/gzip/task.yaml @@ -0,0 +1,20 @@ +summary: Integration tests for gzip + +systems: + - -ubuntu-24.04-ppc64le + - -ubuntu-24.04-s390x + +execute: | + rootfs="$(install-slices gzip_bins)" + + echo "this is a test text file that we will compress using gzip" > "${rootfs}"/test.txt + chroot "${rootfs}" gzip -k test.txt + + # store original for comparison + mv "${rootfs}"/test.txt "${rootfs}"/test.original + + # decompress the original file + chroot "${rootfs}" gzip -d test.txt.gz + + # ensure that the files are identical + cmp "${rootfs}"/test.txt "${rootfs}"/test.original