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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new c32ff6843 Remove exunit makefile target
c32ff6843 is described below

commit c32ff6843fa9fd82ce38f538671a6cff9752329d
Author: Nick Vatamaniuc <vatam...@gmail.com>
AuthorDate: Mon Nov 13 13:43:46 2023 -0500

    Remove exunit makefile target
    
    We don't have any exunit tests any longer but still spend time setting up 
and
    running exunit tests in CI.
---
 Makefile                   | 12 ------------
 Makefile.win               | 12 ------------
 build-aux/Jenkinsfile.full |  2 --
 test/elixir/README.md      |  2 +-
 4 files changed, 1 insertion(+), 27 deletions(-)

diff --git a/Makefile b/Makefile
index 20e8f00e1..83cc1d360 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,6 @@ escriptize: couch
 # target: check - Test everything
 check: all
        @$(MAKE) xref
-       @$(MAKE) exunit
        @$(MAKE) eunit
        @$(MAKE) mango-test
        @$(MAKE) elixir
@@ -180,17 +179,6 @@ eunit: couch
         done
 
 
-.PHONY: exunit
-# target: exunit - Run ExUnit tests, use EXUNIT_OPTS to provide custom options
-exunit: export BUILDDIR = $(CURDIR)
-exunit: export MIX_ENV=test
-exunit: export ERL_LIBS = $(CURDIR)/src
-exunit: export ERL_AFLAGS = -config $(CURDIR)/rel/files/eunit.config
-exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(CURDIR)/bin/couchjs 
$(CURDIR)/share/server/main.js
-exunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
-exunit: couch elixir-init setup-eunit
-       @mix test --trace $(EXUNIT_OPTS)
-
 setup-eunit: export BUILDDIR = $(CURDIR)
 setup-eunit: export ERL_AFLAGS = -config $(CURDIR)/rel/files/eunit.config
 setup-eunit:
diff --git a/Makefile.win b/Makefile.win
index 133dd4a96..3f7c9679b 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -140,7 +140,6 @@ fauxton: share\www
 .PHONY: check
 # target: check - Test everything
 check: all
-       @$(MAKE) exunit
        @$(MAKE) eunit
        @$(MAKE) mango-test
        @$(MAKE) elixir
@@ -162,17 +161,6 @@ eunit: couch
        @set COUCHDB_VERSION=$(COUCHDB_VERSION) && set 
COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) && $(REBAR) setup_eunit 2> nul
        @cmd /c "FOR %d IN ($(subdirs)) DO set 
COUCHDB_VERSION=$(COUCHDB_VERSION) & set COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) & 
$(REBAR) -r eunit $(EUNIT_OPTS) apps=%d || exit /b 1"
 
-.PHONY: exunit
-# target: exunit - Run ExUnit tests, use EXUNIT_OPTS to provide custom options
-exunit: export BUILDDIR = $(CURDIR)
-exunit: export MIX_ENV=test
-exunit: export ERL_LIBS = $(CURDIR)/src
-exunit: export ERL_AFLAGS = -config $(CURDIR)/rel/files/eunit.config
-exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(CURDIR)/bin/couchjs 
$(CURDIR)/share/server/main.js
-exunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
-exunit: couch elixir-init setup-eunit
-       @mix test --trace $(EXUNIT_OPTS)
-
 setup-eunit: export BUILDDIR = $(CURDIR)
 setup-eunit: export ERL_AFLAGS = -config $(CURDIR)/rel/files/eunit.config
 setup-eunit:
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 7d7b8101c..80b96a47d 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -170,7 +170,6 @@ def generateNativeStage(platform) {
                 sh '$MAKE'
                 sh '$MAKE eunit'
                 sh '$MAKE elixir'
-                sh '$MAKE exunit'
                 sh '$MAKE mango-test'
                 sh '$MAKE weatherreport-test'
                 sh '$MAKE nouveau-test'
@@ -224,7 +223,6 @@ def generateContainerStage(platform) {
                     sh 'make'
                     sh 'make eunit'
                     sh 'make elixir'
-                    sh 'make exunit'
                     sh 'make mango-test'
                     sh 'make weatherreport-test'
                     sh 'make nouveau-test'
diff --git a/test/elixir/README.md b/test/elixir/README.md
index efd0e2d92..7e3b2b98c 100644
--- a/test/elixir/README.md
+++ b/test/elixir/README.md
@@ -126,7 +126,7 @@ Below we present a few use cases where code-generation is 
really helpful.
 4. Define test cases in the module
 
 You can run tests either:
-- using make: `make exunit`
+- using make: `make elixir`
 - using mix: BUILDDIR=`pwd` ERL_LIBS=`pwd`/src MIX_ENV=test mix test --trace
 
 ## Generating tests from spec

Reply via email to