Skip to content

Commit

Permalink
test: allow selecting running one llvmpasses test
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Oct 9, 2019
1 parent a5f5235 commit ac9582a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/llvmpasses/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
JULIAHOME := $(abspath $(SRCDIR)/../..)
include $(JULIAHOME)/Make.inc
test:

check: $(SRCDIR)

TESTS = $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/*.jl $(SRCDIR)/*.ll))

$(SRCDIR) $(TESTS):
PATH=$(build_bindir):$(build_depsbindir):$$PATH \
LD_LIBRARY_PATH=${build_libdir}:$$LD_LIBRARY_PATH \
$(build_depsbindir)/lit/lit.py -v $(SRCDIR)
.PHONY: test
$(build_depsbindir)/lit/lit.py -v $@

.PHONY: $(TESTS) $(SRCDIR) check all

0 comments on commit ac9582a

Please sign in to comment.