Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 committed May 19, 2024
1 parent 5d41877 commit 555d389
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/files/common.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,30 @@
# bats file_tags=common
@test "[common] dotfiles" {
files_exists=(
"~/.config/fzf"
"~/.config/git/ignore"
"~/.config/git/config"
"~/.config/jupyter/lab/user-settings/@jupyterlab/terminal-extension/plugin.jupyterlab-settings.json"
"~/.config/tango.yml"
"~/.local/bin/common/dev"
"~/.local/bin/common/gpg.sh"
"~/.local/bin/common/setup-gh"

"~/.profile"
"~/.zshrc"
"~/.bashrc"
"~/.tmux.conf"
"~/.vimrc"
"~/.bash"
)
for file in "${files_exists[@]}"; do
[ -f "${file}" ]
done

files_not_exists=(
"~/.tmux.conf/os/server.conf"
symbolic_links_exists=(
"~/.jupyter/lab/user-settings/@jupyterlab/terminal-extension/plugin.jupyterlab-settings"
)
for link in "${symbolic_links_exists[@]}"; do
[ -L "${link}" ]
done
}
7 changes: 7 additions & 0 deletions tests/files/macos.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

@test "[macos] dotfiles" {
files_exists=(
"~/.config/powerlevel10k/p10k.zsh"
"~/.local/bin/client"
"~/.bash/client/bashrc"
"~/.tmux.conf.d/system/client.conf"
"~/.tmux.conf.d/os/macos.conf"
)
Expand All @@ -10,7 +13,11 @@
done

files_not_exists=(
"~/.local/bin/server"
"~/.tmux.conf.d/system/server.conf"
"~/.tmux.conf.d/os/ubuntu_client.conf"
)
for file in "${files_not_exists[@]}"; do
[ ! -f "${file}" ]
done
}

0 comments on commit 555d389

Please sign in to comment.