Skip to content

Commit

Permalink
Ensure the track-level tests actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Sep 18, 2016
1 parent e95e9a6 commit 4602b38
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ERL := $(shell which erl)
REBAR3 := $(shell which rebar3)
LFE = ./_build/default/lib/lfe/bin/lfe
ERL := $(shell which erl)
REBAR3 := $(shell which rebar3)

null :=
space := $(null) #
comma := ,
testmods := $(basename $(notdir $(wildcard exercises/*/test/*.lfe)))

ifeq ($(ERL),)
$(error Can't find Erlang executable 'erl')
Expand All @@ -13,4 +17,4 @@ compile: ; $(REBAR3) compile
clean: ; $(REBAR3) clean

.PHONY: test
test: ; $(REBAR3) eunit
test: ; $(REBAR3) eunit -m $(subst $(space),$(comma),$(testmods))

0 comments on commit 4602b38

Please sign in to comment.