You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2019/02/01 10:32:43 UTC

[couchdb] branch import-cloudant-ioq updated: Run each apps test in a separate process

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch import-cloudant-ioq
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/import-cloudant-ioq by this push:
     new f65a445  Run each apps test in a separate process
f65a445 is described below

commit f65a445e2f6774a8a0ece994733965db1e58a45e
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Feb 1 10:31:31 2019 +0000

    Run each apps test in a separate process
    
    This reduces non-causal test failures between apps.
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index ee44ea7..3178b4b 100644
--- a/Makefile
+++ b/Makefile
@@ -159,8 +159,9 @@ 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)
-
+	for dir in `ls src`; do \
+	  $(REBAR) -r eunit $(EUNIT_OPTS) apps=$$dir; \
+	done
 
 setup-eunit: export BUILDDIR = $(shell pwd)
 setup-eunit: export ERL_AFLAGS = -config $(shell pwd)/rel/files/eunit.config