Skip to content

Commit

Permalink
integration_tests(ticdc): move integration_tests into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-rustin committed Nov 28, 2021
1 parent 5fa4d68 commit d43ef99
Show file tree
Hide file tree
Showing 218 changed files with 11 additions and 11 deletions.
Expand Up @@ -37,7 +37,7 @@
2. Run `make integration_test` to execute the integration tests. This command will

1. Check that all required executables exist.
2. Execute `integration_tests/run.sh`
2. Execute `tests/integration_tests/run.sh`

> If want to run one integration test case only, just pass the CASE parameter, such as `make integration_test CASE=simple`.
Expand All @@ -50,5 +50,5 @@

## Writing new tests

New integration tests can be written as shell scripts in `integration_tests/TEST_NAME/run.sh`. The script should exit
with a nonzero error code on failure.
New integration tests can be written as shell scripts in `tests/integration_tests/TEST_NAME/run.sh`. The script should
exit with a nonzero error code on failure.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -20,8 +20,8 @@ import (
_ "github.com/go-sql-driver/mysql"
"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/dailytest"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/tests/integration_tests/dailytest"
"github.com/pingcap/ticdc/tests/integration_tests/util"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/tests/integration_tests/util"
"github.com/pingcap/tidb/parser/mysql"
"go.uber.org/zap/zapcore"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/tests/integration_tests/util"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/tests/integration_tests/util"
"go.uber.org/zap"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -22,8 +22,8 @@ import (

"github.com/pingcap/errors"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/pkg/quotes"
"github.com/pingcap/ticdc/tests/integration_tests/util"
"go.uber.org/zap"
"golang.org/x/sync/errgroup"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/pingcap/errors"
"github.com/pingcap/kvproto/pkg/kvrpcpb"
"github.com/pingcap/log"
"github.com/pingcap/ticdc/integration_tests/util"
"github.com/pingcap/ticdc/tests/integration_tests/util"
"github.com/pingcap/tidb/kv"
"github.com/pingcap/tidb/parser/model"
"github.com/pingcap/tidb/store/driver"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -158,7 +158,7 @@ func MustExecWithConn(ctx context.Context, conn *sql.Conn, sql string, args ...i
}

// CreateSourceDBs return source sql.DB for test
// we create two TiDB instance now in integration_tests/run.sh, change it if needed
// we create two TiDB instance now in tests/integration_tests/run.sh, change it if needed
func CreateSourceDBs() (dbs []*sql.DB, err error) {
cfg := DBConfig{
Host: "127.0.0.1",
Expand Down

0 comments on commit d43ef99

Please sign in to comment.