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.10): add SDF for vim.tiny #491

Open
wants to merge 6 commits into
base: ubuntu-24.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
23 changes: 23 additions & 0 deletions slices/vim-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package: vim-common

essential:
- vim-common_copyright

slices:
addons:
contents:
/var/lib/vim/addons/:

config:
essential:
- vim-common_runtime
contents:
/etc/vim/vimrc:

copyright:
contents:
/usr/share/doc/vim-common/copyright:

runtime:
contents:
/usr/share/vim/vim91/debian.vim:
25 changes: 25 additions & 0 deletions slices/vim-tiny.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package: vim-tiny

essential:
- vim-tiny_copyright

slices:
bins:
essential:
- libacl1_libs
- libc6_libs
- libselinux1_libs
- libtinfo6_libs
- vim-common_addons
- vim-common_config
- vim-tiny_config
contents:
/usr/bin/vim.tiny:

config:
contents:
/etc/vim/vimrc.tiny:

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

execute: |
rootfs="$(install-slices vim-tiny_bins)"
chroot "${rootfs}/" vim.tiny --version
echo "hello world" > "$rootfs/test"
chroot "$rootfs" vim.tiny -c ":s/hello/bye/" -c ":wq" test
test "$(cat "$rootfs/test")" = "bye world"
Loading