mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-01 16:20:18 +00:00
Test updates
This commit is contained in:
1 parent
89ea56f553
commit
9ae07148b4
5 files changed
+18
-15
No files matched your search
@@ -2,23 +2,21 @@
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source $CURRENT_DIR/helpers.sh
|
||||
|
||||
export FAIL=false
|
||||
source $CURRENT_DIR/test_helpers.sh
|
||||
|
||||
test_plugin_installation() {
|
||||
set_tmux_conf_helper <<- HERE
|
||||
set -g @tpm_plugins "bruno-/tmux_example_plugin"
|
||||
run-shell '~/tmux_plugin_manager/tpm'
|
||||
run-shell '/root/tmux_plugin_manager/tpm'
|
||||
HERE
|
||||
|
||||
# opens tmux and test it with `expect`
|
||||
$CURRENT_DIR/expect_successful_plugin_download ||
|
||||
(echo "Tmux plugin installation fails" >&2; FAIL=true)
|
||||
(echo "Tmux plugin installation fails" >&2; fail_test)
|
||||
|
||||
# check plugin dir exists after download
|
||||
check_dir_exists_helper "/root/.tmux/plugins/tmux_example_plugin/" ||
|
||||
(echo "Plugin download fails" >&2; FAIL=true)
|
||||
(echo "Plugin download fails" >&2; fail_test)
|
||||
|
||||
teardown_helper
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user