rename lab to project

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
Connor1996 2020-04-23 11:37:46 +08:00 committed by Connor
parent 15838152aa
commit e9462775d3
4 changed files with 36 additions and 11 deletions

View File

@ -50,22 +50,47 @@ ci: default test
format:
@gofmt -s -w `find . -name '*.go' -type f ! -path '*/_tools/*' -print`
lab1:
project1:
go test -count=1 ./kv/server -run 1
lab2: lab2a lab2b lab2c
project2: project2a project2b project2c
lab2a:
project2a:
go test -count=1 ./raft -run 2A
lab2aa:
project2aa:
go test -count=1 ./raft -run 2AA
lab2ab:
project2ab:
go test -count=1 ./raft -run 2AB
lab2b:
project2ac:
go test -count=1 ./raft -run 2AC
project2b:
go test -count=1 ./kv/test_raftstore -run 2B
lab2c:
project2c:
go test -count=1 ./raft ./kv/test_raftstore -run 2C
project3: project3a project3b project3c
project3a:
go test -count=1 ./raft -run 3A
project3b:
go test -count=1 ./raft -run 3B
project3c:
go test -count=1 ./scheduler/... -run 3C
project4: project4a project4b project4c
project4a:
go test -count=1 ./kv/transaction/... -run 4A
project4b:
go test -count=1 ./kv/transaction/... -run 4B
project4c:
go test -count=1 ./kv/transaction/... -run 4C

View File

@ -71,7 +71,7 @@ func (s *testTsoSuite) testGetTimestamp(c *C, n int) *schedulerpb.Timestamp {
return res
}
func (s *testTsoSuite) TestTso3C(c *C) {
func (s *testTsoSuite) TestTso(c *C) {
var wg sync.WaitGroup
for i := 0; i < 10; i++ {
wg.Add(1)
@ -98,7 +98,7 @@ func (s *testTsoSuite) TestTso3C(c *C) {
wg.Wait()
}
func (s *testTsoSuite) TestTsoWithoutCount3C(c *C) {
func (s *testTsoSuite) TestTsoWithoutCount(c *C) {
var err error
cluster, err := tests.NewTestCluster(1)
defer cluster.Destroy()