diff --git a/tests/linux/test_check_gruvbox_dark256_transparent_enabled.sh b/tests/linux/test_check_gruvbox_dark256_transparent_enabled.sh new file mode 100755 index 0000000..7ae8d5e --- /dev/null +++ b/tests/linux/test_check_gruvbox_dark256_transparent_enabled.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# shellcheck disable=SC1091 +source "${CURRENT_DIR}/../tmux_helpers.sh" + +main() { + helper_tearup_linux + + cat <~/.tmux.conf +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Other plugins +set -g @plugin 'egel/tmux-gruvbox' +set -g @tmux-gruvbox 'dark256' +set -g @tmux-gruvbox-statusbar-alpha 'true' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' +EOF + + cat ~/.tmux.conf + + # it's essential to link current repo to the plugins' directory + ln -sfv "$CURRENT_DIR/../../../tmux-gruvbox" "${HOME}/.tmux/plugins/tmux-gruvbox" + + helper_install_tpm_plugins + + # start new detached session + tmux new -d + + # check if left side match + _status_left_expected="#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]" + _status_left_current=$(tmux show-option -gqv status-left) + if [[ "$_status_left_current" != "$_status_left_expected" ]]; then + helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" + helper_teardown + exit 1 + fi + # check if status is not transparent + _status_style_expected="bg=default,fg=colour223" + _status_style_current=$(tmux show-option -gqv status-style) + if [[ "$_status_style_current" != "$_status_style_expected" ]]; then + helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected" + helper_teardown + exit 1 + fi + + helper_print_success "status-left match" + helper_teardown + exit 0 + +} + +main "$@" diff --git a/tests/linux/test_check_gruvbox_dark_enabled.sh b/tests/linux/test_check_gruvbox_dark_enabled.sh new file mode 100755 index 0000000..158b2c3 --- /dev/null +++ b/tests/linux/test_check_gruvbox_dark_enabled.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# shellcheck disable=SC1091 +source "${CURRENT_DIR}/../tmux_helpers.sh" + +main() { + helper_tearup_linux + + cat <~/.tmux.conf +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Other plugins +set -g @plugin 'egel/tmux-gruvbox' +set -g @tmux-gruvbox 'dark' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' +EOF + + cat ~/.tmux.conf + + # it's essential to link current repo to the plugins' directory + ln -sfv "$CURRENT_DIR/../../../tmux-gruvbox" "${HOME}/.tmux/plugins/tmux-gruvbox" + + helper_install_tpm_plugins + + # start new detached session + tmux new -d + + # check if left side match + _status_left_expected="#[bg=#665c54,fg=#bdae93] #S #[bg=#3c3836,fg=#665c54,nobold,noitalics,nounderscore]" + _status_left_current=$(tmux show-option -gqv status-left) + if [[ "$_status_left_current" != "$_status_left_expected" ]]; then + helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" + helper_teardown + exit 1 + fi + # check if status is not transparent + _status_style_expected="bg=#3c3836,fg=#ebdbb2" + _status_style_current=$(tmux show-option -gqv status-style) + if [[ "$_status_style_current" != "$_status_style_expected" ]]; then + helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected" + helper_teardown + exit 1 + fi + + helper_print_success "status-left match" + helper_teardown + exit 0 + +} + +main "$@" diff --git a/tests/linux/test_check_gruvbox_dark_transparent_enabled.sh b/tests/linux/test_check_gruvbox_dark_transparent_enabled.sh index a1008d5..9364808 100755 --- a/tests/linux/test_check_gruvbox_dark_transparent_enabled.sh +++ b/tests/linux/test_check_gruvbox_dark_transparent_enabled.sh @@ -15,7 +15,8 @@ set -g @plugin 'tmux-plugins/tmux-sensible' # Other plugins set -g @plugin 'egel/tmux-gruvbox' -set -g @tmux-gruvbox 'dark-transparent' +set -g @tmux-gruvbox 'dark' +set -g @tmux-gruvbox-statusbar-alpha 'true' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' @@ -32,7 +33,7 @@ EOF tmux new -d # check if left side match - _status_left_expected="#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]" + _status_left_expected="#[bg=#665c54,fg=#bdae93] #S #[bg=#3c3836,fg=#665c54,nobold,noitalics,nounderscore]" _status_left_current=$(tmux show-option -gqv status-left) if [[ "$_status_left_current" != "$_status_left_expected" ]]; then helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" @@ -40,7 +41,7 @@ EOF exit 1 fi # check if status is not transparent - _status_style_expected="bg=default,fg=colour223" + _status_style_expected="bg=default,fg=#ebdbb2" _status_style_current=$(tmux show-option -gqv status-style) if [[ "$_status_style_current" != "$_status_style_expected" ]]; then helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected" diff --git a/tests/linux/test_check_gruvbox_light256_transparent_enabled.sh b/tests/linux/test_check_gruvbox_light256_transparent_enabled.sh new file mode 100755 index 0000000..cbfcdb6 --- /dev/null +++ b/tests/linux/test_check_gruvbox_light256_transparent_enabled.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# shellcheck disable=SC1091 +source "${CURRENT_DIR}/../tmux_helpers.sh" + +main() { + helper_tearup_linux + + cat <~/.tmux.conf +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Other plugins +set -g @plugin 'egel/tmux-gruvbox' +set -g @tmux-gruvbox 'light256' +set -g @tmux-gruvbox-statusbar-alpha 'true' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' +EOF + + cat ~/.tmux.conf + + # it's essential to link current repo to the plugins' directory + ln -sfv "$CURRENT_DIR/../../../tmux-gruvbox" "${HOME}/.tmux/plugins/tmux-gruvbox" + + helper_install_tpm_plugins + + # start new detached session + tmux new -d + + # check if left side match + _status_left_expected="#[bg=colour243,fg=colour255] #S #[bg=colour252,fg=colour243,nobold,noitalics,nounderscore]" + _status_left_current=$(tmux show-option -gqv status-left) + if [[ "$_status_left_current" != "$_status_left_expected" ]]; then + helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" + helper_teardown + exit 1 + fi + # check if status is not transparent + _status_style_expected="bg=default,fg=colour239" + _status_style_current=$(tmux show-option -gqv status-style) + if [[ "$_status_style_current" != "$_status_style_expected" ]]; then + helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected" + helper_teardown + exit 1 + fi + + helper_print_success "status-left match" + helper_teardown + exit 0 + +} + +main "$@" diff --git a/tests/linux/test_check_gruvbox_light_enabled.sh b/tests/linux/test_check_gruvbox_light_enabled.sh new file mode 100755 index 0000000..b460794 --- /dev/null +++ b/tests/linux/test_check_gruvbox_light_enabled.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# shellcheck disable=SC1091 +source "${CURRENT_DIR}/../tmux_helpers.sh" + +main() { + helper_tearup_linux + + cat <~/.tmux.conf +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Other plugins +set -g @plugin 'egel/tmux-gruvbox' +set -g @tmux-gruvbox 'light' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' +EOF + + cat ~/.tmux.conf + + # it's essential to link current repo to the plugins' directory + ln -sfv "$CURRENT_DIR/../../../tmux-gruvbox" "${HOME}/.tmux/plugins/tmux-gruvbox" + + helper_install_tpm_plugins + + # start new detached session + tmux new -d + + # check if left side match + _status_left_expected="#[bg=#bdae93,fg=#665c54] #S #[bg=#ebdbb2,fg=#bdae93,nobold,noitalics,nounderscore]" + _status_left_current=$(tmux show-option -gqv status-left) + if [[ "$_status_left_current" != "$_status_left_expected" ]]; then + helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" + helper_teardown + exit 1 + fi + # check if status is not transparent + _status_style_expected="bg=#ebdbb2,fg=#3c3836" + _status_style_current=$(tmux show-option -gqv status-style) + if [[ "$_status_style_current" != "$_status_style_expected" ]]; then + helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected" + helper_teardown + exit 1 + fi + + helper_print_success "status-left match" + helper_teardown + exit 0 + +} + +main "$@" diff --git a/tests/linux/test_check_gruvbox_light_transparent_enabled.sh b/tests/linux/test_check_gruvbox_light_transparent_enabled.sh index f177d0a..eb30f07 100755 --- a/tests/linux/test_check_gruvbox_light_transparent_enabled.sh +++ b/tests/linux/test_check_gruvbox_light_transparent_enabled.sh @@ -15,7 +15,8 @@ set -g @plugin 'tmux-plugins/tmux-sensible' # Other plugins set -g @plugin 'egel/tmux-gruvbox' -set -g @tmux-gruvbox 'light-transparent' +set -g @tmux-gruvbox 'light' +set -g @tmux-gruvbox-statusbar-alpha 'true' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' @@ -32,7 +33,7 @@ EOF tmux new -d # check if left side match - _status_left_expected="#[bg=colour243,fg=colour255] #S #[bg=colour252,fg=colour243,nobold,noitalics,nounderscore]" + _status_left_expected="#[bg=#bdae93,fg=#665c54] #S #[bg=#ebdbb2,fg=#bdae93,nobold,noitalics,nounderscore]" _status_left_current=$(tmux show-option -gqv status-left) if [[ "$_status_left_current" != "$_status_left_expected" ]]; then helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected" @@ -40,7 +41,7 @@ EOF exit 1 fi # check if status is not transparent - _status_style_expected="bg=default,fg=colour239" + _status_style_expected="bg=default,fg=#3c3836" _status_style_current=$(tmux show-option -gqv status-style) if [[ "$_status_style_current" != "$_status_style_expected" ]]; then helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected"