From 7c56b12a137066063240adef4707f7742ac201ec Mon Sep 17 00:00:00 2001 From: Eric Avdey Date: Mon, 19 Nov 2018 13:53:40 -0400 Subject: [PATCH] Set query server env variable in Makefile for isolated eunit tests --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a59aabc2c37..554694eaf5f 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,7 @@ check: all # target: eunit - Run EUnit tests, use EUNIT_OPTS to provide custom options eunit: export BUILDDIR = $(shell pwd) eunit: export ERL_AFLAGS = -config $(shell pwd)/rel/files/eunit.config +eunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell pwd)/bin/couchjs $(shell pwd)/share/server/main.js eunit: couch @$(REBAR) setup_eunit 2> /dev/null @$(REBAR) -r eunit $(EUNIT_OPTS)