mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-13 08:29:04 +08:00
Run itest in a separate tmux server
- No user config, so options like extended-keys do not affect tests - Default 80x24 window, same as CI
This commit is contained in:
1 file changed
+5
-1
@@ -94,8 +94,12 @@ test: $(SOURCES)
|
|||||||
github.com/junegunn/fzf/src/tui \
|
github.com/junegunn/fzf/src/tui \
|
||||||
github.com/junegunn/fzf/src/util
|
github.com/junegunn/fzf/src/util
|
||||||
|
|
||||||
|
# Run in a separate tmux server without user config, like CI (80x24)
|
||||||
itest:
|
itest:
|
||||||
ruby test/runner.rb
|
@dir=$$(mktemp -d) && \
|
||||||
|
env -u TMUX TMUX_TMPDIR=$$dir sh -c \
|
||||||
|
'tmux -f /dev/null new-session -d && ruby test/runner.rb; s=$$?; tmux kill-server; exit $$s'; \
|
||||||
|
s=$$?; rm -rf $$dir; exit $$s
|
||||||
|
|
||||||
# Actively fuzz the matcher fast paths against the general algorithm.
|
# Actively fuzz the matcher fast paths against the general algorithm.
|
||||||
# Go fuzzes one target at a time, so iterate. Override duration with
|
# Go fuzzes one target at a time, so iterate. Override duration with
|
||||||
|
|||||||
Reference in new issue
Block a user