- Assuming project cloned to home directory
export GOPATH=$HOME/capstone-distributed-systems
- to view source code
cd $HOME/capstone-distributed-systems/src/mapreduce
- Part 1 Test Cases
cd $HOME/capstone-distributed-systems/src/main
./test-wc.sh
- Part 2 and 3 Test Cases
cd $HOME/capstone-distributed-systems/src/mapreduce
go test
- to view source code
- ```cd $HOME/capstone-distributed-systems/src/viewservice ```
- ``` cd $HOME/capstone-distributed-systems/src/viewservice ```
- go test
- to view source code
- ```cd $HOME/capstone-distributed-systems/src/pbservice ```
- cd $HOME/capstone-distributed-systems/src/pbservice
- go test -run BasicFail
- go test -run AtMostOnce
- go test -run FailPut
- go test -run ConcurrentSame
- go test -run ConcurrentSameUnreliable
- go test -run Partition1
- go test -run Partition2
do not run go test, becuase it runs all tests. RepeatedCrash and RepeatedCrashUnrebiable do not pass. all others pass
- A Directory Tree For Case Studies
capstone-distributed-systems
│ README.md
└───src
| └─── main
│ │ test-wc.sh
| | kjv12.txt
| | wc.go
│
└─── mapreduce
│ │ common.go
│ │ mapreduce.go
| | master.go
| | test_test.go
| | worker.go
|
└─── viewservice
| | client.go
| | common.go
| | server.go
| | test_test.go
|
└─── pbservice
| client.go
| common.go
| server.go
| test_test.go
```