mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Add tests for lib/runtime.sh
This commit is contained in:
23
test/lib/runtime-test.sh
Executable file
23
test/lib/runtime-test.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#! /usr/bin/env bash
|
||||
source "../test-helper.sh"
|
||||
|
||||
#
|
||||
# runtime.sh tests.
|
||||
#
|
||||
|
||||
source "../../lib/runtime.sh"
|
||||
|
||||
# We assume env.sh has been sourced if $TMUXIFIER_LAYOUT_PATH has been set.
|
||||
assert 'echo $TMUXIFIER_LAYOUT_PATH' "${TMUXIFIER}/layouts"
|
||||
|
||||
# We ensure $session_root is set to $HOME by default.
|
||||
assert 'echo $session_root' "$HOME"
|
||||
|
||||
# We assume layout-helpers.sh has been sourced if a few of them are available.
|
||||
for helper in new_window split_v split_h select_window select_pane; do
|
||||
assert "type $helper | head -1" "$helper is a function"
|
||||
done
|
||||
|
||||
|
||||
# End of tests.
|
||||
assert_end "runtime.sh"
|
||||
Reference in New Issue
Block a user