Thank you Dave!
I saw the built binary! It is very close now. But the program takes arguments to run. So how to pass the arguments into go test -run?
cpchung:main$ sh -x ./run.sh
- export GOPATH=/home/cpchung/profileGo/6.824
- go get github.com/pkg/profile
- go build wc.go
- go test -run ./wc master kjv12.txt sequential -cpuprofile=./c.pprof
can’t load package: package master: cannot find package “master” in any of:
/usr/lib/go-1.6/src/master (from $GOROOT)
/home/cpchung/profileGo/6.824/src/master (from $GOPATH)
can’t load package: package kjv12.txt: cannot find package “kjv12.txt” in any of:
/usr/lib/go-1.6/src/kjv12.txt (from $GOROOT)
/home/cpchung/profileGo/6.824/src/kjv12.txt (from $GOPATH)
can’t load package: package sequential: cannot find package “sequential” in any of:
/usr/lib/go-1.6/src/sequential (from $GOROOT)
/home/cpchung/profileGo/6.824/src/sequential (from $GOPATH)