|
23 | 23 | # - unit-test - runs the go-test based unit tests
|
24 | 24 | # - test-cmd - generates a "go test" string suitable for manual customization
|
25 | 25 | # - behave - runs the behave test
|
26 |
| -# - behave-deps - ensures pre-requisites are availble for running behave manually |
| 26 | +# - behave-deps - ensures pre-requisites are available for running behave manually |
27 | 27 | # - gotools - installs go tools like golint
|
28 | 28 | # - linter - runs all code checks
|
29 | 29 | # - native - ensures all native binaries are available
|
|
33 | 33 | # - protos - generate all protobuf artifacts based on .proto files
|
34 | 34 | # - clean - cleans the build area
|
35 | 35 | # - dist-clean - superset of 'clean' that also removes persistent state
|
| 36 | +# - unit-test-clean - cleans unit test state (particularly from docker) |
36 | 37 |
|
37 | 38 | PROJECT_NAME = hyperledger/fabric
|
38 | 39 | BASE_VERSION = 1.0.0
|
@@ -114,7 +115,7 @@ testenv: build/image/testenv/$(DUMMY)
|
114 | 115 |
|
115 | 116 | couchdb: build/image/couchdb/$(DUMMY)
|
116 | 117 |
|
117 |
| -unit-test: peer-docker testenv couchdb |
| 118 | +unit-test: unit-test-clean peer-docker testenv couchdb |
118 | 119 | cd unit-test && docker-compose up --abort-on-container-exit --force-recreate && docker-compose down
|
119 | 120 |
|
120 | 121 | unit-tests: unit-test
|
@@ -267,9 +268,13 @@ protos: buildenv
|
267 | 268 | docker-clean: $(patsubst %,%-docker-clean, $(IMAGES))
|
268 | 269 |
|
269 | 270 | .PHONY: clean
|
270 |
| -clean: docker-clean |
| 271 | +clean: docker-clean unit-test-clean |
271 | 272 | -@rm -rf build ||:
|
272 | 273 |
|
273 | 274 | .PHONY: dist-clean
|
274 | 275 | dist-clean: clean gotools-clean
|
275 | 276 | -@rm -rf /var/hyperledger/* ||:
|
| 277 | + |
| 278 | +.PHONY: unit-test-clean |
| 279 | +unit-test-clean: |
| 280 | + cd unit-test && docker-compose down |
0 commit comments