forked from hyperledger-labs/fabex
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (26 loc) · 1012 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
fabric-test:
@cd tests/fabcar && ./startFabric.sh
stop-fabric-test:
@cd tests/fabcar && ./stopFabric.sh \
&& rm -rf credstore \
&& rm -rf cryptostore
fabex-test:
@cd tests/chaincode/fabcar/go && GOPROXY="https://goproxy.io" GOSUMDB=off go mod vendor
@go run fabex.go -task=grpc -configpath=tests -configname=config -enrolluser=true -db=mongo
fabex-mongo:
@go run fabex.go -task=grpc -configpath=configs -configname=config -enrolluser=true -db=mongo
fabex-cassandra:
@go run fabex.go -task=grpc -configpath=configs -configname=config -enrolluser=true -db=cassandra
cassandra:
@docker run -v /var/lib/cassandra:/var/lib/cassandra --name cassandra --net=host -d cassandra
mongo:
@cd db/mongo-compose && docker-compose -f docker-compose.yaml up -d
mongo-test:
@cd tests/db/mongo-compose && docker-compose -f docker-compose.yaml up -d
stop-mongo-test:
@docker rm -f fabexmongo
unit-tests:
@cd blockfetcher && go test -v
integration-tests:
@cd client/ && go test -v
@cd ./rest && go test -v