mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Use test-runner.sh instead of homegrown test.sh
This commit is contained in:
24
test/libexec/tmuxifier-tmux.test.sh
Executable file
24
test/libexec/tmuxifier-tmux.test.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../test-helper.sh"
|
||||
source "${root}/lib/util.sh"
|
||||
|
||||
#
|
||||
# tmuxifier-tmux tests.
|
||||
#
|
||||
|
||||
# Setup.
|
||||
libexec="${root}/libexec"
|
||||
export TMUXIFIER_TMUX_OPTS="-L tmuxifier-tests"
|
||||
tmux $TMUXIFIER_TMUX_OPTS new -d -s foobar
|
||||
tmux $TMUXIFIER_TMUX_OPTS new -d -s dude
|
||||
|
||||
# Passes all arguments to Tmux.
|
||||
assert "${libexec}/tmuxifier-tmux list-sessions -F \"- #{session_name}\"" \
|
||||
"- dude\n- foobar"
|
||||
|
||||
# Tear down.
|
||||
tmux $TMUXIFIER_TMUX_OPTS kill-server
|
||||
unset TMUXIFIER_TMUX_OPTS
|
||||
|
||||
# End of tests.
|
||||
assert_end "tmuxifier-tmux"
|
||||
Reference in New Issue
Block a user