test(refactor): switch to bashunit and start fleshing out a new test suite

This commit is contained in:
2025-12-02 01:15:42 +00:00
parent f268c12f3f
commit 2633722423
54 changed files with 8203 additions and 79 deletions

View File

@@ -0,0 +1,22 @@
#! /usr/bin/env bash
source "../test-helper.sh"
source "${root}/lib/util.sh"
#
# tmuxifier-tmux tests.
#
# Setup.
test-socket-tmux new-session -d -s foobar
test-socket-tmux new-session -d -s dude
baseCommand="${root}/bin/tmuxifier tmux"
# Passes all arguments to Tmux.
assert "${baseCommand} list-sessions -F \"- #{session_name}\"" \
"- dude\n- foobar"
# Tear down.
kill-test-server
# End of tests.
assert_end "tmuxifier-tmux"