Test updates

This commit is contained in:
Bruno Sutic committed 2014-07-17 21:12:28 +02:00
1 parent 89ea56f553
commit 9ae07148b4
5 files changed
+18 -15

No files matched your search

+4 -6
View File
@@ -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
}