-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2bd158
commit 465025d
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |