Skip to content

Commit

Permalink
[test] make it possible to disable timing by passing TIME=
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jun 5, 2019
1 parent d50a2ef commit 03a5993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL:=/bin/bash
TIMEOUT=60.0
RUNNERS=$(shell type -P ../elpi $(wildcard ../elpi.*)) $(shell if type tjsim >/dev/null 2>&1; then type -P tjsim; else echo; fi)
TIME=$(shell if type -P gtime >/dev/null 2>&1; then type -P gtime; else echo /usr/bin/time; fi)
TIME=--time $(shell if type -P gtime >/dev/null 2>&1; then type -P gtime; else echo /usr/bin/time; fi)
BUILD=_build/default/
STACK=32768

Expand Down Expand Up @@ -31,7 +31,7 @@ run: build
ulimit -s $(STACK); $(BUILD)test.exe \
--seed $$RANDOM \
--timeout $(TIMEOUT) \
--time=$(TIME) \
$(TIME) \
$(addprefix --name-match ,$(ONLY)) \
$(addprefix --runner , $(RUNNERS))

Expand Down

0 comments on commit 03a5993

Please sign in to comment.