Skip to content

Commit

Permalink
Tests: fix bug with OCAMLLIB getting defined
Browse files Browse the repository at this point in the history
and support running outside of jbuilder
  • Loading branch information
AltGr committed Apr 4, 2018
1 parent f17804a commit b5834a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ OPAM_GIT = $(TMP_DIR)/OPAM.GIT

PACKAGES = P1-0 P1-1 P1-2 P2 P3 P4 P5

unexport OCAMLLIB

ifndef OPAM
OPAM = $(realpath ../src/client/opamMain.exe)
OPAM = $(firstword $(realpath ../src/client/opamMain.exe ../_build/default/src/client/opamMain.exe))
endif
ENV = PATH=$(PATH) $(DEBUG) OPAMKEEPBUILDDIR=1 OPAMROOT=$(OPAM_ROOT) OPAMSWITCH= OPAMNOBASEPACKAGES=1 OPAMYES=1 OPAM=$(OPAM)
OPAMBIN = $(ENV) $(OPAM)
ifndef CHECK
CHECK = $(ENV) $(realpath ../src/tools/opam_check.exe)
CHECK = $(ENV) $(firstword $(realpath ../src/tools/opam_check.exe ../_build/default/src/tools/opam_check.exe))
endif

ifeq ($(OPAMTESTQUIET), 1)
Expand Down

0 comments on commit b5834a9

Please sign in to comment.