From eb59d2db6435e31864a5cafd983e3d81533dcd43 Mon Sep 17 00:00:00 2001 From: Alexey Radul Date: Mon, 21 Nov 2022 15:36:42 -0500 Subject: [PATCH] Add a make target for running unit tests with Haskell stack traces. --- .gitignore | 1 + makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 61aea5d8d..b47111d9d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ test-script.cd .stack-work-dbg .stack-work-prof .stack-work-test +.stack-work-test-dbg .stack-work-ffis garbage.hs *.lock diff --git a/makefile b/makefile index cdc2fb945..fb2876fea 100644 --- a/makefile +++ b/makefile @@ -290,6 +290,9 @@ unit-tests: watch-unit-tests: $(STACK) test --work-dir .stack-work-test $(STACK_FLAGS) --file-watch +unit-tests-dbg: + $(STACK) test --work-dir .stack-work-test-dbg --trace $(STACK_FLAGS) + opt-tests: just-build misc/file-check tests/opt-tests.dx $(dex) -O script