2022-12-10 01:08:20 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Optional: Import test library
|
|
|
|
source dev-container-features-test-lib
|
|
|
|
|
|
|
|
# Definition specific tests
|
|
|
|
check "default-shell-is-zsh" bash -c "getent passwd $(whoami) | awk -F: '{ print $7 }' | grep '/bin/zsh'"
|
2023-08-12 02:01:57 +03:00
|
|
|
# check it overrides the ~/.zshrc with default dev containers template
|
|
|
|
check "default-zshrc-is-dev-container-template" bash -c "cat ~/.zshrc | grep ZSH_THEME | grep devcontainers"
|
2023-10-28 01:47:26 +03:00
|
|
|
check "zsh-path-contains-local-bin" zsh -l -c "echo $PATH | grep '/home/devcontainer/.local/bin'"
|
2022-12-10 01:08:20 +03:00
|
|
|
|
|
|
|
# Report result
|
|
|
|
reportResults
|