Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04): add gzip #331

Open
wants to merge 4 commits into
base: ubuntu-24.04
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions slices/gzip.yaml
Original file line number Diff line number Diff line change
@@ -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:
20 changes: 20 additions & 0 deletions tests/spread/integration/gzip/task.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading