2023-09-04 21:19:48 +08:00
|
|
|
GO ?= go
|
|
|
|
PWD := $(shell pwd)
|
|
|
|
GOPATH := $(shell $(GO) env GOPATH)
|
|
|
|
ROOTPATH := $(abspath $(dir $(PWD)))
|
|
|
|
SHELL := /bin/bash
|
|
|
|
OBJPREFIX := "github.com/milvus-io/milvus/cmd/milvus"
|
|
|
|
|
|
|
|
INSTALL_PATH := $(ROOTPATH)/bin
|
|
|
|
|
|
|
|
# use parent getdeps
|
|
|
|
getdeps:
|
|
|
|
$(MAKE) -C $(ROOTPATH) getdeps
|
|
|
|
|
2024-07-11 09:58:48 +08:00
|
|
|
generate-mockery: getdeps
|
|
|
|
$(INSTALL_PATH)/mockery --config $(PWD)/.mockery_pkg.yaml
|
2023-09-04 21:19:48 +08:00
|
|
|
$(INSTALL_PATH)/mockery --name=MsgStream --dir=$(PWD)/mq/msgstream --output=$(PWD)/mq/msgstream --filename=mock_msgstream.go --with-expecter --structname=MockMsgStream --outpkg=msgstream --inpackage
|
2023-10-20 20:14:08 +08:00
|
|
|
$(INSTALL_PATH)/mockery --name=Factory --dir=$(PWD)/mq/msgstream --output=$(PWD)/mq/msgstream --filename=mock_msgstream_factory.go --with-expecter --structname=MockFactory --outpkg=msgstream --inpackage
|
2023-09-04 21:19:48 +08:00
|
|
|
$(INSTALL_PATH)/mockery --name=Client --dir=$(PWD)/mq/msgdispatcher --output=$(PWD)/mq/msgsdispatcher --filename=mock_client.go --with-expecter --structname=MockClient --outpkg=msgdispatcher --inpackage
|
|
|
|
$(INSTALL_PATH)/mockery --name=Logger --dir=$(PWD)/eventlog --output=$(PWD)/eventlog --filename=mock_logger.go --with-expecter --structname=MockLogger --outpkg=eventlog --inpackage
|
2024-08-16 18:44:53 +08:00
|
|
|
$(INSTALL_PATH)/mockery --name=MessageID --dir=$(PWD)/mq/common --output=$(PWD)/mq/msgstream/mqwrapper --filename=mock_id.go --with-expecter --structname=MockMessageID --outpkg=mqwrapper --inpackage
|