fish-shell/tests/test_functions
Johannes Altmanninger 77c434bc42 Extract setup and teardown for tmux tests
This was long overdue since the setup logic is much more complex than
the actual tests.

tmux-prompt.fish had extra logic to protect against XDG_CONFIG_HOME
with leading double double-dot.  I believe this is no longer necessary
with the new test driver.

We still use our own temp dir because we want to be able to run this
independently of the test driver, This can be useful for debugging
tests.  For example we can insert a "$tmux attach" command in a test,
and then run

	build/fish -C 'source tests/test_functions/isolated-tmux.fish' tests/checks/tmux-bind.fish

This allows to inspect the state of the test and debug interactively.
Attaching to the terminal doesn't work when running inside littlecheck
because littlecheck consumes our output and doesn't give us a terminal.
(Maybe there's an easy way to fix that?)
2021-08-29 20:22:16 +02:00
..
display_bytes.fish Ressurect a couple of test functions 2020-03-17 21:44:26 +01:00
isolated-tmux.fish Extract setup and teardown for tmux tests 2021-08-29 20:22:16 +02:00
mktemp.fish Fix test function mktemp to avoid false errors 2021-08-29 08:56:12 +02:00
r2l.fish Resurrect one last function 2020-03-17 21:58:49 +01:00