blob: 687ce61424036419c568f68235e35e4587e47126 [file] [log] [blame]
D. Can Celasune0e1a082019-05-10 09:18:11 +02001#!/bin/sh
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -07002
D. Can Celasune0e1a082019-05-10 09:18:11 +02003set -e
4
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -07005export GOPATH=$(mktemp -d -t gopath-XXXXXXXXXX)
D. Can Celasune0e1a082019-05-10 09:18:11 +02006
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -07007go install github.com/golang/mock/mockgen
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -07008
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -07009`go env GOPATH`/bin/mockgen -destination=src/common/mock_handler.go -package=common github.com/apache/thrift/test/go/src/gen/thrifttest ThriftTest
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -070010
Yuxuan 'fishy' Wangfb539ae2021-08-09 14:27:48 -070011chmod a+w -R $GOPATH && rm -Rf $GOPATH