Skip to content

Commit

Permalink
tests: add a test for gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Sep 4, 2024
1 parent a2bd158 commit 465025d
Showing 1 changed file with 20 additions and 0 deletions.
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

0 comments on commit 465025d

Please sign in to comment.