diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-06-11 22:50:40 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-06-11 23:43:55 -0700 |
commit | 5ac0786623f5ebd0b3a4f23fb6c23b72e6e277cb (patch) | |
tree | 82009ccce35a7b7d73ed4316d94dc2e56ddbc881 /subx/run_one_test.sh | |
parent | f47066a7c2f53796fb252dc187cdcf77834a1157 (diff) | |
download | mu-5ac0786623f5ebd0b3a4f23fb6c23b72e6e277cb.tar.gz |
new Vim convenience macro
Runs test under cursor and opens its trace.
Diffstat (limited to 'subx/run_one_test.sh')
-rwxr-xr-x | subx/run_one_test.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subx/run_one_test.sh b/subx/run_one_test.sh new file mode 100755 index 00000000..4cb82425 --- /dev/null +++ b/subx/run_one_test.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh + +export TEST_NAME=$2 +envsubst '$TEST_NAME' < run_one_test.subx > /tmp/run_one_test.subx + +subx --debug translate [0-9]*.subx apps/subx-common.subx $1 /tmp/run_one_test.subx -o /tmp/a.elf +subx --debug --trace run /tmp/a.elf |