Skip to content

Commit ac609cc

Browse files
committed
Add new xattr() syscall test-case to cover NixOS app [skip ci]
Skipping CI for now -- till we update sysbox-fs pointer. Signed-off-by: Rodny Molina <rmolina@nestybox.com>
1 parent e7f1b4e commit ac609cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/syscall/xattr/xattr.bats

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,16 @@ function teardown() {
172172

173173
rm -rf /mnt/scratch/test
174174
}
175+
176+
@test "l*xattr high-util: nixos use-case" {
177+
178+
# Deploy a sys container with nixos tooling pre-installed.
179+
local syscont=$(docker_run --rm ${CTR_IMG_REPO}/ubuntu-bionic-nixos:latest tail -f /dev/null)
180+
181+
# Verify that 'ripgrep' app is properly installed -- usually takes ~ 1.5 mins.
182+
docker exec "$syscont" bash -c "source ~/.nix-profile/etc/profile.d/nix.sh && nix-env -i ripgrep"
183+
[ "$status" -eq 0 ]
184+
[[ "$output" =~ "created 39 symlinks in user environment" ]]
185+
186+
docker_stop "$syscont"
187+
}

0 commit comments

Comments
 (0)