Skip to content

Commit

Permalink
Remove exunit makefile target
Browse files Browse the repository at this point in the history
We don't have any exunit tests any longer but still spend time setting up and
running exunit tests in CI.
  • Loading branch information
nickva committed Nov 13, 2023
1 parent 4c76b38 commit c32ff68
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ escriptize: couch
# target: check - Test everything
check: all
@$(MAKE) xref
@$(MAKE) exunit
@$(MAKE) eunit
@$(MAKE) mango-test
@$(MAKE) elixir
Expand All @@ -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:
Expand Down
12 changes: 0 additions & 12 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ fauxton: share\www
.PHONY: check
# target: check - Test everything
check: all
@$(MAKE) exunit
@$(MAKE) eunit
@$(MAKE) mango-test
@$(MAKE) elixir
Expand All @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions build-aux/Jenkinsfile.full
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion test/elixir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c32ff68

Please sign in to comment.