Skip to content

Commit

Permalink
store/tikv: remove files (pingcap#25440)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Jun 16, 2021
1 parent 9461f5b commit c6090a2
Show file tree
Hide file tree
Showing 115 changed files with 4 additions and 32,907 deletions.
18 changes: 1 addition & 17 deletions .build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,6 @@ task ExplainTest -If (-not ((Get-Content cmd\explaintest\r\explain.result -Raw)
}
}

# Synopsis: Check dependency.
task CheckDep {
$list = go list -json github.com/pingcap/tidb/store/tikv | ConvertFrom-Json
if ($list.Imports | Where-Object { Select-String -Pattern '^github.com/pingcap/parser$' -InputObject $_ }) {
throw 'incorrect import of github.com/pingcap/parser'
}
}

# Synopsis: Run unit tests.
task GoTest BuildFailPoint, {
Enable-FailPoint
Expand Down Expand Up @@ -343,14 +335,6 @@ task GoLeakTest BuildFailPoint, {
$env:TZ = $Task.Data.tz
}

# Synopsis: Run some tests with real TiKV.
task TiKVIntegrationTest BuildFailPoint, {
Enable-FailPoint
{ & $GO test -p $P github.com/pingcap/tidb/store/tikv -with-tikv=true }
} -Done {
Disable-FailPoint
}

# Synopsis: Ensure generated code is up to date.
task GoGenerate {
exec { & $GO generate ./... }
Expand All @@ -361,7 +345,7 @@ task GoGenerate {
}

# Synopsis: Run common tests.
task Test ExplainTest, CheckDep, GoTest, GoGenerate
task Test ExplainTest, GoTest, GoGenerate

# Synopsis: Check and Test.
task Dev Check, Test
Expand Down
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test: test_part_1 test_part_2

test_part_1: checklist explaintest

test_part_2: checkdep gotest gogenerate
test_part_2: gotest gogenerate

explaintest: server_check
@cd cmd/explaintest && ./run-tests.sh -s ../../bin/tidb-server
Expand Down Expand Up @@ -153,10 +153,6 @@ leak: failpoint-enable
$(GOTEST) -tags leak $(PACKAGES) || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)

tikv_integration_test: failpoint-enable
$(GOTEST) ./store/tikv/. -with-tikv=true || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)

server:
ifeq ($(TARGET), "")
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o bin/tidb-server tidb-server/main.go
Expand Down Expand Up @@ -208,9 +204,6 @@ failpoint-disable: tools/bin/failpoint-ctl
# Restoring gofail failpoints...
@$(FAILPOINT_DISABLE)

checkdep:
$(GO) list -f '{{ join .Imports "\n" }}' github.com/pingcap/tidb/store/tikv | grep ^github.com/pingcap/parser$$ || exit 0; exit 1

tools/bin/megacheck: tools/check/go.mod
cd tools/check; \
$(GO) build -o ../bin/megacheck honnef.co/go/tools/cmd/megacheck
Expand Down
Loading

0 comments on commit c6090a2

Please sign in to comment.