Skip to content

Commit

Permalink
Run the tests on julia-debug if JULIA_DEBUG==1
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed May 6, 2015
1 parent 900cf12 commit f099214
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ ifeq ($(JULIA_BINARYDIST_TARNAME),)
endif

ifeq ($(JULIA_DEBUG), 1)
default: debug
JULIA_BUILD_MODE = debug
else
default: release
JULIA_BUILD_MODE = release
endif
default: $(JULIA_BUILD_MODE)
all: debug release

# sort is used to remove potential duplicates
Expand Down Expand Up @@ -481,18 +482,18 @@ distcleanall: cleanall
install binary-dist light-source-dist.tmp light-source-dist \
dist full-source-dist source-dist

test: check-whitespace release
@$(MAKE) $(QUIET_MAKE) -C test default
test: check-whitespace default
@$(MAKE) $(QUIET_MAKE) JULIA_EXECUTABLE="$(JULIA_EXECUTABLE_$(JULIA_BUILD_MODE))" -C test default

testall: check-whitespace release
cp $(build_prefix)/lib/julia/sys.ji local.ji && $(JULIA_EXECUTABLE) -J local.ji -e 'true' && rm local.ji
@$(MAKE) $(QUIET_MAKE) -C test all
testall: check-whitespace default
cp $(build_prefix)/lib/julia/sys.ji local.ji && $(JULIA_EXECUTABLE_$(JULIA_BUILD_MODE)) -J local.ji -e 'true' && rm local.ji
@$(MAKE) $(QUIET_MAKE) JULIA_EXECUTABLE="$(JULIA_EXECUTABLE_$(JULIA_BUILD_MODE))" -C test all

testall1: check-whitespace release
@env JULIA_CPU_CORES=1 $(MAKE) $(QUIET_MAKE) -C test all
testall1: check-whitespace default
@env JULIA_CPU_CORES=1 $(MAKE) $(QUIET_MAKE) JULIA_EXECUTABLE="$(JULIA_EXECUTABLE_$(JULIA_BUILD_MODE))" -C test all

test-%: check-whitespace release
@$(MAKE) $(QUIET_MAKE) -C test $*
test-%: check-whitespace default
@$(MAKE) $(QUIET_MAKE) JULIA_EXECUTABLE="$(JULIA_EXECUTABLE_$(JULIA_BUILD_MODE))" -C test $*

perf: release
@$(MAKE) $(QUIET_MAKE) -C test/perf
Expand Down

0 comments on commit f099214

Please sign in to comment.