Skip to content

Commit

Permalink
allow running tests in any random subdirectory, not just linalg
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Feb 12, 2017
1 parent 338581f commit 9440ab5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/Makefile
Expand Up @@ -4,8 +4,13 @@ BUILDDIR := .
include $(JULIAHOME)/Make.inc
# TODO: this Makefile ignores BUILDDIR, except for computing JULIA_EXECUTABLE

TESTS = all linalg sparse unicode strings dates \
$(filter-out TestHelpers runtests testdefs,$(patsubst $(SRCDIR)/%.jl,%,$(wildcard $(SRCDIR)/*.jl $(SRCDIR)/*/*.jl)))
TESTGROUPS = linalg sparse unicode strings dates
TESTS = all $(TESTGROUPS) \
$(filter-out TestHelpers runtests testdefs, \
$(patsubst $(SRCDIR)/%.jl,%,$(wildcard $(SRCDIR)/*.jl))) \
$(foreach group,$(TESTGROUPS), \
$(patsubst $(SRCDIR)/%.jl,%,$(wildcard $(SRCDIR)/$(group)/*.jl)))
# run `make print-TESTS` to see a list of all tests that can be run

default: all

Expand Down

0 comments on commit 9440ab5

Please sign in to comment.