First version of tests

This commit is contained in:
Bruno Sutic
2014-05-24 15:38:41 +02:00
parent 2e8f2aa0cd
commit 45cd3d40fa
9 changed files with 243 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#!/usr/bin/env expect
# disables script output
log_user 0
spawn tmux
# Waiting for tmux to attach. If this is not done, next command, `send` will
# not work properly.
sleep 1
# this is tmux prefix + I
send "I"
# cloning might take a while
set timeout 15
expect {
"Downloading bruno-/tmux_example_plugin" {
expect {
"bruno-/tmux_example_plugin download success" {
expect { "Done, press ENTER to continue" { exit } }
}
}
}
timeout {
puts "Plugin update timeout";
exit 1
}
}