diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-27 12:11:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-27 12:11:18 -0700 |
commit | 4d1f4a660c8ce9226746f485757d7885eaaf8d61 (patch) | |
tree | 66d1da443f7573da1d50c2916c8f5215db1a232f /build_and_test_until | |
parent | 536a22c1b83500d4efaa7a1eae0e84ac8743b768 (diff) | |
download | mu-4d1f4a660c8ce9226746f485757d7885eaaf8d61.tar.gz |
2288
Make it easy to skip distracting valgrind errors when debugging more obvious errors in early layers. Just throw a 'test' at the end of build_and_test_until commands to not run valgrind (and make it a regular test run).
Diffstat (limited to 'build_and_test_until')
-rwxr-xr-x | build_and_test_until | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_and_test_until b/build_and_test_until index e001ed5e..1c454ad1 100755 --- a/build_and_test_until +++ b/build_and_test_until @@ -6,6 +6,6 @@ set -e set -v make tangle/tangle make enumerate/enumerate -./tangle/tangle $(./enumerate/enumerate --until $* |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc -cat /dev/null $(./enumerate/enumerate --until $* |grep '.mu$') > core.mu -CXX=${CXX:-clang++} CFLAGS=${CFLAGS:-"-O3 -fsanitize=undefined"} make valgrind +./tangle/tangle $(./enumerate/enumerate --until $1 |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc +cat /dev/null $(./enumerate/enumerate --until $1 |grep '.mu$') > core.mu +CXX=${CXX:-clang++} CFLAGS=${CFLAGS:-"-O3 -fsanitize=undefined"} make ${2:-valgrind} |