From f00ee99c2cdfd850d30a6f8370a52788c1bcd7ef Mon Sep 17 00:00:00 2001 From: Josh Berdine Date: Thu, 12 Nov 2020 16:36:38 -0800 Subject: [PATCH] [sledge] Improve test Makefile Reviewed By: jvillard Differential Revision: D24746238 fbshipit-source-id: 24451d76b --- sledge/test/Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/sledge/test/Makefile b/sledge/test/Makefile index 732fba038..df5761209 100644 --- a/sledge/test/Makefile +++ b/sledge/test/Makefile @@ -14,7 +14,7 @@ SLEDGE_OPT=$(CURDIR)/../_build/release/cli/sledge_cli.exe SLEDGE_ARGS?= # limits for each test run -TIMEOUT?=90 +TIMEOUT?=100 MEMOUT?=4096 sledge_dbg=./wrap.sh $(TIMEOUT) $(MEMOUT) $(SLEDGE_DBG) @@ -35,17 +35,24 @@ default: test # compile c to llvm bitcode %.bc : %.c - @(cd $(dir $*) && clang -g -c -emit-llvm -include $(CURDIR)/../model/llair_intrinsics.h -Wno-main-return-type $(CLANG_ARGS) $(notdir $*).c -o $(notdir $*).bc) + @(cd $(@D) && clang -g -c -emit-llvm -include $(CURDIR)/../model/llair_intrinsics.h -Wno-main-return-type $(CLANG_ARGS) -o $(@F) $(/dev/null) @@ -223,7 +230,7 @@ test-llvm: @$(MAKE) --no-print-directory llvm-status # run tests and check against expected results -test: test-translate test-analyze test-smt test-llvm +test: test-translate translate.html test-analyze analyze.html test-llvm llvm.html # set current results as new expected results promote: baseline/translate.sexp baseline/analyze.sexp baseline/smt.sexp baseline/llvm.sexp