2015-02-22 19:49:59 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
source $CURRENT_DIR/helpers/helpers.sh
|
|
|
|
source $CURRENT_DIR/helpers/resurrect_helpers.sh
|
|
|
|
|
|
|
|
create_tmux_test_environment_and_save() {
|
2015-02-22 20:53:33 +00:00
|
|
|
set_screen_dimensions_helper
|
2015-02-22 19:49:59 +00:00
|
|
|
$CURRENT_DIR/helpers/create_and_save_tmux_test_environment.exp
|
|
|
|
}
|
|
|
|
|
|
|
|
main() {
|
2015-02-23 00:19:03 +00:00
|
|
|
install_tmux_plugin_under_test_helper
|
|
|
|
install_tmux_plugin_under_test_helper
|
2015-02-22 21:45:06 +00:00
|
|
|
mkdir -p /tmp/bar # setup required dirs
|
2015-02-22 19:49:59 +00:00
|
|
|
create_tmux_test_environment_and_save
|
2015-02-22 20:53:33 +00:00
|
|
|
|
|
|
|
if last_save_file_differs_helper "tests/fixtures/save_file.txt"; then
|
|
|
|
fail_helper "Saved file not correct (initial save)"
|
2015-02-22 19:49:59 +00:00
|
|
|
fi
|
|
|
|
exit_helper
|
|
|
|
}
|
|
|
|
main
|