about summary refs log tree commit diff stats
path: root/run_one_test
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-08-25 00:58:20 -0700
committerKartik Agaram <vc@akkartik.com>2019-08-25 00:58:20 -0700
commit1a7b15aa3d2873983bec5787e565695ed194fbae (patch)
tree9e826ce01d139632d4d9f09e8e3896c6280aa10e /run_one_test
parent380fc367b8b17c98e3a0472675149e4c669eb9b4 (diff)
downloadmu-1a7b15aa3d2873983bec5787e565695ed194fbae.tar.gz
skip building apps when running a single test
Environment variables allow me to have non-local effects inside scripts.
Diffstat (limited to 'run_one_test')
-rwxr-xr-xrun_one_test6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_one_test b/run_one_test
index 41844d82..aff33c36 100755
--- a/run_one_test
+++ b/run_one_test
@@ -16,7 +16,7 @@ else
 fi
 
 set -e
-                                        # turn newlines into spaces
-CFLAGS=$CFLAGS ./subx --debug translate $(echo $FILES) /tmp/run_one_test.subx -o /tmp/a.elf
+                                                   # turn newlines into spaces
+ONLY_CPP=1 CFLAGS=$CFLAGS ./subx --debug translate $(echo $FILES) /tmp/run_one_test.subx -o /tmp/a.elf
 
-./subx --debug --trace run /tmp/a.elf
+ONLY_CPP=1 ./subx --debug --trace run /tmp/a.elf