Skip to content

Commit

Permalink
Updated tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-daniel committed Oct 10, 2024
1 parent 2df96ca commit 15873d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/fzf/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ set -e
source dev-container-features-test-lib

# Definition specific tests
check "check for fzf" fzf --version
check "check for fzf" sudo -u "$_REMOTE_USER" fzf --version

# Depending on the shell (bash, zsh, fish), check if the config was added to the profiles
if [ -n "$BASH_VERSION" ]; then
check "check for fzf key bindings and fuzzy completion for bash" grep -q 'eval "$(fzf --bash)"' "${USER_HOME}/.bashrc"
check "check for fzf key bindings and fuzzy completion for bash" grep -q 'eval "$(fzf --bash)"' "${_REMOTE_USER_HOME}/.bashrc"
fi

if [ -n "$ZSH_VERSION" ]; then
check "check for fzf key bindings and fuzzy completion for zsh" grep -q 'source <(fzf --zsh)' "${USER_HOME}/.zshrc"
check "check for fzf key bindings and fuzzy completion for zsh" grep -q 'source <(fzf --zsh)' "${_REMOTE_USER_HOME}/.zshrc"
fi

if [ -n "$FISH_VERSION" ]; then
check "check for fzf key bindings for fish" grep -q 'fzf --fish | source' "${USER_HOME}/.config/fish/config.fish"
check "check for fzf key bindings for fish" grep -q 'fzf --fish | source' "${_REMOTE_USER_HOME}/.config/fish/config.fish"
fi

# Report result
Expand Down
2 changes: 1 addition & 1 deletion test/spaceship/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
source dev-container-features-test-lib

# Definition specific tests
check "check for spaceship" grep -q 'spaceship-prompt' ~/.zshrc
check "check for spaceship" sudo -u "$_REMOTE_USER" spaceship --version

# Report result
reportResults

0 comments on commit 15873d2

Please sign in to comment.