mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
27 lines
674 B
Bash
Executable File
27 lines
674 B
Bash
Executable File
#! /usr/bin/env bash
|
|
source "../test-helper.sh"
|
|
|
|
#
|
|
# env.sh tests.
|
|
#
|
|
|
|
# When TMUXIFIER_LAYOUT_PATH is not set.
|
|
source "../../lib/env.sh"
|
|
assert 'echo $TMUXIFIER_LAYOUT_PATH' "${TMUXIFIER}/layouts"
|
|
|
|
# When TMUXIFIER_LAYOUT_PATH is set and has a trailing slash.
|
|
TMUXIFIER_LAYOUT_PATH="/path/to/layouts/"
|
|
source "../../lib/env.sh"
|
|
assert 'echo $TMUXIFIER_LAYOUT_PATH' "/path/to/layouts"
|
|
unset TMUXIFIER_LAYOUT_PATH
|
|
|
|
# When TMUXIFIER_LAYOUT_PATH is set and does not have a trailing slash.
|
|
TMUXIFIER_LAYOUT_PATH="/path/to/layouts"
|
|
source "../../lib/env.sh"
|
|
assert 'echo $TMUXIFIER_LAYOUT_PATH' "/path/to/layouts"
|
|
unset TMUXIFIER_LAYOUT_PATH
|
|
|
|
|
|
# End of tests.
|
|
assert_end "env.sh"
|