-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add tests * update files * update * update * update * update * update * update * update * update * update * update * update * update * update
- Loading branch information
Showing
8 changed files
with
178 additions
and
1 deletion.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bats | ||
|
||
# bats file_tags=common | ||
@test "[common] dotfiles" { | ||
files_exists=( | ||
"${HOME}/.config/git/ignore" | ||
"${HOME}/.config/git/config" | ||
"${HOME}/.config/jupyter/lab/user-settings/@jupyterlab/terminal-extension/plugin.jupyterlab-settings.json" | ||
"${HOME}/.config/tango.yml" | ||
"${HOME}/.local/bin/common/dev" | ||
"${HOME}/.local/bin/common/gpg.sh" | ||
"${HOME}/.local/bin/common/setup-gh" | ||
"${HOME}/.gnupg/gpg-agent.conf" | ||
"${HOME}/.ssh/config" | ||
"${HOME}/.vimrc" | ||
"${HOME}/.tmux.conf" | ||
) | ||
for file in "${files_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ -f "${file}" ] | ||
done | ||
|
||
directories_exists=( | ||
"${HOME}/.config/fzf" | ||
"${HOME}/.spacemacs.d" | ||
"${HOME}/.pyenv" | ||
) | ||
for directory in "${directories_exists[@]}"; do | ||
echo "Checking ${directory}" | ||
[ -d "${directory}" ] | ||
done | ||
|
||
symbolic_links_exists=( | ||
"${HOME}/.zshrc" | ||
"${HOME}/.zprofile" | ||
) | ||
for link in "${symbolic_links_exists[@]}"; do | ||
echo "Checking ${link}" | ||
[ -L "${link}" ] | ||
done | ||
} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "[macos] dotfiles" { | ||
files_exists=( | ||
"${HOME}/.config/powerlevel10k/p10k.zsh" | ||
"${HOME}/.zsh/client/zshrc" | ||
"${HOME}/.zsh/client/zprofile" | ||
"${HOME}/.bash/client/bashrc" | ||
"${HOME}/.tmux-powerlinerc" | ||
"${HOME}/.tmux.conf.d/system/client.conf" | ||
"${HOME}/.tmux.conf.d/os/macos.conf" | ||
) | ||
for file in "${files_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ -f "${file}" ] | ||
done | ||
|
||
directories_exists=( | ||
"${HOME}/.local/bin/client" | ||
"${HOME}/.zprezto" | ||
) | ||
for directory in "${directories_exists[@]}"; do | ||
echo "Checking ${directory}" | ||
[ -d "${directory}" ] | ||
done | ||
|
||
symbolic_links_exists=( | ||
"${HOME}/Library/Application Support/iTerm2/DynamicProfiles/hotkey_window.json" | ||
) | ||
for link in "${symbolic_links_exists[@]}"; do | ||
echo "Checking ${link}" | ||
[ -L "${link}" ] | ||
done | ||
|
||
files_not_exists=( | ||
"${HOME}/.local/bin/server" | ||
"${HOME}/.zsh/server/zshrc" | ||
"${HOME}/.zsh/server/zprofile" | ||
"${HOME}/.tmux.conf.d/system/server.conf" | ||
"${HOME}/.tmux.conf.d/os/ubuntu_client.conf" | ||
) | ||
for file in "${files_not_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ ! -f "${file}" ] | ||
done | ||
} |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/env bats | ||
|
||
# bats test_tags=ubuntu:client | ||
@test "[ubuntu-client] dotfiles" { | ||
files_exists=( | ||
"${HOME}/.zsh/client/zshrc" | ||
"${HOME}/.zsh/client/zprofile" | ||
"${HOME}/.tmux-powerlinerc" | ||
"${HOME}/.tmux.conf.d/system/client.conf" | ||
"${HOME}/.tmux.conf.d/os/ubuntu_client.conf" | ||
) | ||
for file in "${files_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ -f "${file}" ] | ||
done | ||
|
||
directories_exists=( | ||
"${HOME}/.local/bin/client" | ||
"${HOME}/.zprezto" | ||
) | ||
for directory in "${directories_exists[@]}"; do | ||
echo "Checking ${directory}" | ||
[ -d "${directory}" ] | ||
done | ||
|
||
files_not_exists=( | ||
"${HOME}/.zsh/server/zshrc" | ||
"${HOME}/.zsh/server/zprofile" | ||
"${HOME}/.tmux.conf.d/system/server.conf" | ||
"${HOME}/.tmux.conf.d/os/macos.conf" | ||
) | ||
for file in "${files_not_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ ! -f "${file}" ] | ||
done | ||
} | ||
|
||
# bats test_tags=ubuntu:server | ||
@test "[ubuntu-server] dotfiles" { | ||
files_exists=( | ||
"${HOME}/.zsh/server/zshrc" | ||
"${HOME}/.zsh/server/zprofile" | ||
"${HOME}/.tmux.conf.d/system/server.conf" | ||
"${HOME}/.tmux.conf.d/os/ubuntu_server.conf" | ||
) | ||
for file in "${files_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ -f "${file}" ] | ||
done | ||
|
||
files_not_exists=( | ||
"${HOME}/.tmux-powerlinerc" | ||
"${HOME}/.zsh/client/zshrc" | ||
"${HOME}/.zsh/client/zprofile" | ||
"${HOME}/.tmux.conf.d/system/client.conf" | ||
"${HOME}/.tmux.conf.d/os/macos.conf" | ||
) | ||
for file in "${files_not_exists[@]}"; do | ||
echo "Checking ${file}" | ||
[ ! -f "${file}" ] | ||
done | ||
} |
aedc22f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'MacOS benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.50
.zsh average startup time
0.299
Second0.132
Second2.27
zsh initial startup time
1.27
Second0.75
Second1.69
This comment was automatically generated by workflow using github-action-benchmark.
CC: @shunk031