summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-01-22 17:19:36 +1100
committerMaxime Coste <mawww@kakoune.org>2021-01-22 17:21:59 +1100
commit841ec2e5887bb970cbf5c04db27ddbd6685ba011 (patch)
tree2b23f87ebc65235b8f8e0b192650fa1f9c981858
parent04a64e6e29798f61005a898f720d0a50decfe45b (diff)
Support a DEBUGGER env-var to run tests
Setting it to `gdbserver :12345` makes it easy to debug a test case with the correct setup.
-rwxr-xr-xtest/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run b/test/run
index 3fa67c2a..762453fc 100755
--- a/test/run
+++ b/test/run
@@ -54,7 +54,7 @@ main() {
touch in; cp in out
session="kak-tests"
rm -f "$(session_path $session)"
- $root/../src/kak out -n -s "$session" -ui json -e "$kak_commands" >ui-out <ui-in &
+ $DEBUGGER $root/../src/kak out -n -s "$session" -ui json -e "$kak_commands" >ui-out <ui-in &
kakpid=$!
failed=0