add --no-build to start_test

main
xenia 2023-12-19 18:55:44 +01:00
parent ff4959e42e
commit 6191bd4e1b
1 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
set -e
nix build .#kak-tree -o /tmp/kak-tree -L
kak -n -E 'source /tmp/kak-tree/share/kak/autoload/plugins/kak-tree/tree.kak ; source kakrc.sample' src/main.rs -e 'set buffer filetype rust'
if [ "$1" == "--no-build" ] ; then
kak -n -E 'source rc/tree.kak ; set-option global tree_cmd "/tmp/kak-tree-bin/bin/kak-tree" ; set-option global tree_config rc/default_config.toml ; source kakrc.sample ; set-option global tree_log "test.log"' src/main.rs -e 'set buffer filetype rust'
else
nix build .#bin -o /tmp/kak-tree-bin -L
nix build .#kak-tree -o /tmp/kak-tree -L
kak -n -E 'source /tmp/kak-tree/share/kak/autoload/plugins/kak-tree/tree.kak ; source kakrc.sample ; set-option global tree_log "test.log"' src/main.rs -e 'set buffer filetype rust'
fi