Skip to content

Commit 2af59ab

Browse files
committed
WIP
Signed-off-by: Derek Su <derek.su@suse.com>
1 parent f233ed5 commit 2af59ab

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

pkg/spdk/disk/types_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type TestSuite struct{}
1212

1313
var _ = Suite(&TestSuite{})
1414

15-
func (s *TestSuite) TestIsVfioPci(c *C) {
15+
func (s *TestSuite) xxTestIsVfioPci(c *C) {
1616
// Add test case for isVfioPci function
1717
testCases := []struct {
1818
name string
@@ -47,7 +47,7 @@ func (s *TestSuite) TestIsVfioPci(c *C) {
4747
}
4848
}
4949

50-
func (s *TestSuite) TestIsUioPciGeneric(c *C) {
50+
func (s *TestSuite) xxTestIsUioPciGeneric(c *C) {
5151
// Add test case for isUioPciGeneric function
5252
testCases := []struct {
5353
name string

pkg/spdk/engine_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
. "gopkg.in/check.v1"
1313
)
1414

15-
func (s *TestSuite) TestcheckInitiatorAndTargetCreationRequirementsForNvmeTcpFrontend(c *C) {
15+
func (s *TestSuite) xxTestcheckInitiatorAndTargetCreationRequirementsForNvmeTcpFrontend(c *C) {
1616
testCases := []struct {
1717
name string
1818
podIP string
@@ -123,7 +123,7 @@ func (s *TestSuite) TestcheckInitiatorAndTargetCreationRequirementsForNvmeTcpFro
123123
}
124124
}
125125

126-
func (s *TestSuite) TestIsNewEngine(c *C) {
126+
func (s *TestSuite) xxTestIsNewEngine(c *C) {
127127
testCases := []struct {
128128
name string
129129
engine *Engine
@@ -182,7 +182,7 @@ func (s *TestSuite) TestIsNewEngine(c *C) {
182182
}
183183
}
184184

185-
func (s *TestSuite) TestReleaseTargetAndStandbyTargetPorts(c *C) {
185+
func (s *TestSuite) xxTestReleaseTargetAndStandbyTargetPorts(c *C) {
186186
testCases := []struct {
187187
name string
188188
engine *Engine

pkg/spdk/util_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type TestSuite struct{}
1212

1313
var _ = Suite(&TestSuite{})
1414

15-
func (s *TestSuite) TestSplitHostPort(c *C) {
15+
func (s *TestSuite) xxTestSplitHostPort(c *C) {
1616
type testCase struct {
1717
address string
1818
expectedHost string
@@ -55,7 +55,7 @@ func (s *TestSuite) TestSplitHostPort(c *C) {
5555
}
5656
}
5757

58-
func (s *TestSuite) TestExtractBackingImageAndDiskUUID(c *C) {
58+
func (s *TestSuite) xxTestExtractBackingImageAndDiskUUID(c *C) {
5959
type testCase struct {
6060
lvolName string
6161
expectedBIName string

pkg/spdk_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,12 +1610,12 @@ func (s *TestSuite) spdkMultipleThreadSnapshotOpsAndRebuilding(c *C, withBacking
16101610
}
16111611
}
16121612

1613-
func (s *TestSuite) TestSPDKMultipleThreadSnapshotOpsAndRebuildingWithoutBackingImage(c *C) {
1613+
func (s *TestSuite) xxTestSPDKMultipleThreadSnapshotOpsAndRebuildingWithoutBackingImage(c *C) {
16141614
fmt.Println("Testing SPDK snapshot operations with multiple threads without backing image")
16151615
s.spdkMultipleThreadSnapshotOpsAndRebuilding(c, false)
16161616
}
16171617

1618-
func (s *TestSuite) TestSPDKMultipleThreadSnapshotOpsAndRebuildingWithBackingImage(c *C) {
1618+
func (s *TestSuite) xxTestSPDKMultipleThreadSnapshotOpsAndRebuildingWithBackingImage(c *C) {
16191619
fmt.Println("Testing SPDK snapshot operations with multiple threads with backing image")
16201620
s.spdkMultipleThreadSnapshotOpsAndRebuilding(c, true)
16211621
}
@@ -2311,12 +2311,12 @@ func (s *TestSuite) spdkMultipleThreadFastRebuilding(c *C, withBackingImage bool
23112311
}
23122312
}
23132313

2314-
func (s *TestSuite) TestSPDKMultipleThreadFastRebuildingWithoutBackingImage(c *C) {
2314+
func (s *TestSuite) xxTestSPDKMultipleThreadFastRebuildingWithoutBackingImage(c *C) {
23152315
fmt.Println("Testing SPDK fast rebuilding with multiple threads with backing image")
23162316
s.spdkMultipleThreadFastRebuilding(c, false)
23172317
}
23182318

2319-
func (s *TestSuite) TestSPDKMultipleThreadFastRebuildingWithBackingImage(c *C) {
2319+
func (s *TestSuite) xxTestSPDKMultipleThreadFastRebuildingWithBackingImage(c *C) {
23202320
fmt.Println("Testing SPDK fast rebuilding with multiple threads without backing image")
23212321
s.spdkMultipleThreadFastRebuilding(c, true)
23222322
}
@@ -2558,7 +2558,7 @@ func WaitForReplicaRebuildingCompleteTimeout(c *C, spdkCli *client.SPDKClient, e
25582558
c.Assert(complete, Equals, true)
25592559
}
25602560

2561-
func (s *TestSuite) TestSPDKEngineOnlyWithTarget(c *C) {
2561+
func (s *TestSuite) xxTestSPDKEngineOnlyWithTarget(c *C) {
25622562
fmt.Println("Testing SPDK basic operations with engine only with target")
25632563

25642564
diskDriverName := "aio"

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ PACKAGES="$(find . -name '*.go' -print0 | xargs -0 -I{} dirname {} | cut -f2 -d
4949

5050
trap "rm -f /tmp/test-disk" EXIT
5151

52-
go test -v -p 1 -race -cover ${PACKAGES} -coverprofile=coverage.out -timeout 180m
52+
go test -v -p 1 -race -cover ${PACKAGES} -coverprofile=coverage.out -timeout 180m -count=10

0 commit comments

Comments
 (0)