generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
#!/usr/bin/env zsh | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
source ~/.zshrc | ||
|
||
ZSHPLUG_PATH="/usr/local/share/zsh/bundle" | ||
VIMPLUG_PATH="/usr/local/share/vim/bundle" | ||
|
||
check "should be logged in as the created user" echo $LOGNAME | grep "vscode" | ||
check "should be logged in as the created user" echo $(whoami) | grep "vscode" | ||
check "user should have a uid of 1000" echo $(id -nu 1000) | grep "vscode" | ||
check "user shell should be zsh" bash -c "getent passwd $(whoami) | awk -F: '{ print $7 }' | grep '/bin/zsh'" | ||
check "user timezone should be UTC" echo $(date +%Z) | grep "UTC" | ||
check "user lang should be UTF-8" echo $LANG | grep "en_US.UTF-8" | ||
check "user shell should be zsh" sudo grep "^$LOGNAME:" /etc/passwd | cut -d: -f7 | grep "zsh" | ||
# check "user lang should be UTF-8" echo $LANG | grep "en_US.UTF-8" | ||
|
||
check "zsh version" zsh --version | ||
check "vim version" vim --version | head -n 1 | ||
# Check plugin managers | ||
check "check for zplug" zplug --version | ||
check "check for vim-plug" ls -1 $VIMPLUG_PATH/autoload/plug.vim | wc -l | ||
# check "check for zplug" zplug --version | ||
# check "check for vim-plug" ls -1 $VIMPLUG_PATH/autoload/plug.vim | wc -l | ||
|
||
# Report result | ||
reportResults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters