Skip to content

Commit

Permalink
feat(24.04): add less
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Feb 5, 2025
1 parent 84b0e78 commit 18f2c01
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
32 changes: 32 additions & 0 deletions slices/less.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package: less

essential:
- less_copyright

slices:
bins:
essential:
- libc6_libs
- libtinfo6_libs
contents:
/usr/bin/less:
/usr/bin/lessecho:
# lesskey is deprecated since version 582.

scripts:
essential:
- less_bins
contents:
/usr/bin/lesspipe:

pager:
essential:
- less_bins
# pager conflicts with the one generated in util-linux_generated.
# Manually link pager to less if required.
contents:
# /usr/bin/pager: {symlink: /usr/bin/less}

copyright:
contents:
/usr/share/doc/less/copyright:
11 changes: 11 additions & 0 deletions tests/spread/integration/less/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
summary: Integration tests for less

execute: |
rootfs="$(install-slices less_bins)"
chroot "${rootfs}" less /usr/share/doc/less/copyright > copyright.txt
cmp copyright.txt "${rootfs}"/usr/share/doc/less/copyright
test "$(chroot ${rootfs} lessecho -a hello world)" = '"hello" "world"'

0 comments on commit 18f2c01

Please sign in to comment.