tmux-resurrect/tests/helpers/create_and_save_tmux_test_environment.exp

43 lines
645 B
Plaintext
Raw Normal View History

2015-02-22 19:49:59 +00:00
#!/usr/bin/env expect
source "./tests/helpers/expect_helpers.exp"
expect_setup
spawn tmux
# delay with sleep to compensate for tmux starting time
sleep 1
run_shell_command "cd /tmp"
# session red
2015-02-22 20:20:46 +00:00
new_tmux_session "red"
2015-02-22 19:49:59 +00:00
new_tmux_window
horizontal_split
vertical_split
toggle_zoom_pane
2015-02-22 19:49:59 +00:00
new_tmux_window
horizontal_split
# session blue
new_tmux_session "blue"
run_shell_command "touch foo.txt"
run_shell_command "vim foo.txt"
new_tmux_window
vertical_split
run_shell_command "man echo"
new_tmux_window
# session yellow
new_tmux_session "yellow"
2015-02-22 21:45:06 +00:00
run_shell_command "cd /tmp/bar"
2015-02-22 19:49:59 +00:00
start_resurrect_save
run_shell_command "tmux kill-server"