Skip to content

Commit

Permalink
[FAB-6340] Pass go test flags into docker tests
Browse files Browse the repository at this point in the history
Change-Id: I1ab41794aa1530a137b895df470fb1e240594c59
Signed-off-by: Troy Ronda <troy.ronda@securekey.com>
  • Loading branch information
troyronda committed Sep 28, 2017
1 parent a2f9ea8 commit 8305ff0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ DOCKER_COMPOSE_CMD ?= docker-compose

# Build flags (overridable)
GO_LDFLAGS ?= -ldflags=-s
GO_TESTFLAGS ?=
FABRIC_SDK_EXPERIMENTAL ?= true
FABRIC_SDK_EXTRA_GO_TAGS ?=

Expand Down Expand Up @@ -74,6 +75,7 @@ export ARCH
export GO_LDFLAGS
export GO_DEP_COMMIT
export GO_TAGS
export GO_TESTFLAGS

all: checks unit-test integration-test

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/docker-compose-nopkcs11-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
image: ${FABRIC_BASEOS_FIXTURE_IMAGE}:${ARCH}-${FABRIC_BASEOS_FIXTURE_TAG}
environment:
- GO_TAGS
- GO_TESTFLAGS
volumes:
- ../../:/opt/gopath/src/github.com/hyperledger/fabric-sdk-go
command: /opt/gopath/src/github.com/hyperledger/fabric-sdk-go/test/scripts/integration.sh
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/docker-compose-pkcs11-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
environment:
- FABRIC_SDK_CLIENT_BCCSP_SECURITY_DEFAULT_PROVIDER=PKCS11
- GO_TAGS
- GO_TESTFLAGS
volumes:
- ../../:/opt/gopath/src/github.com/hyperledger/fabric-sdk-go
command: /opt/gopath/src/github.com/hyperledger/fabric-sdk-go/test/scripts/integration.sh
Expand Down

0 comments on commit 8305ff0

Please sign in to comment.