diff --git a/slices/mawk.yaml b/slices/mawk.yaml new file mode 100644 index 00000000..fd4d8330 --- /dev/null +++ b/slices/mawk.yaml @@ -0,0 +1,15 @@ +package: mawk + +essential: + - mawk_copyright + +slices: + bins: + essential: + - libc6_libs + contents: + /usr/bin/mawk: + + copyright: + contents: + /usr/share/doc/mawk/copyright: diff --git a/tests/spread/integration/mawk/task.yaml b/tests/spread/integration/mawk/task.yaml new file mode 100644 index 00000000..de2fd647 --- /dev/null +++ b/tests/spread/integration/mawk/task.yaml @@ -0,0 +1,9 @@ +summary: Integration tests for mawk + +execute: | + rootfs="$(install-slices mawk_bins)" + + chroot "${rootfs}/" mawk -W version + echo "test" | chroot "${rootfs}/" \ + mawk '{ exit ( $1 == "test" ? \ + 0 : 1 ) }'