diff --git a/.gitignore b/.gitignore index 018ce22a720d3..87021a2658d37 100644 --- a/.gitignore +++ b/.gitignore @@ -9,11 +9,11 @@ coverage.out *.test.bin tags profile.coverprofile -explain_test -cmd/explaintest/explain-test.out -cmd/explaintest/explaintest_tidb-server -cmd/explaintest/portgenerator -cmd/explaintest/s/ +integration_test +tests/integrationtest/integration-test.out +tests/integrationtest/integrationtest_tidb-server +tests/integrationtest/portgenerator +tests/integrationtest/s/ *.fail.go tools/bin/ vendor diff --git a/Makefile b/Makefile index a599fbb28a6ce..b1a748119a3fc 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ buildsucc: all: dev server benchkv -dev: checklist check explaintest gogenerate br_unit_test test_part_parser_dev ut check-file-perm +dev: checklist check integrationtest gogenerate br_unit_test test_part_parser_dev ut check-file-perm @>&2 echo "Great, all tests passed." # Install the check tools. @@ -94,7 +94,7 @@ clean: failpoint-disable test: test_part_1 test_part_2 @>&2 echo "Great, all tests passed." -test_part_1: checklist explaintest +test_part_1: checklist integrationtest test_part_2: test_part_parser ut gogenerate br_unit_test dumpling_unit_test @@ -118,9 +118,9 @@ test_part_br: br_unit_test br_integration_test test_part_dumpling: dumpling_unit_test dumpling_integration_test -explaintest: server_check +integrationtest: server_check @mkdir -p $(TEST_COVERAGE_DIR) - @cd cmd/explaintest && GOCOVERDIR=../../$(TEST_COVERAGE_DIR) ./run-tests.sh -s ../../bin/tidb-server + @cd tests/integrationtest && GOCOVERDIR=../../$(TEST_COVERAGE_DIR) ./run-tests.sh -s ../../bin/tidb-server @$(GO) tool covdata textfmt -i=$(TEST_COVERAGE_DIR) -o=coverage.dat ddltest: diff --git a/build/nogo_config.json b/build/nogo_config.json index 9e09050fc0840..d962e816e8ae1 100644 --- a/build/nogo_config.json +++ b/build/nogo_config.json @@ -287,7 +287,7 @@ "tools/check/xprog.go": "ignore tools/check code", "cmd/pluginpkg/pluginpkg.go": "ignore cmd/pluginpkg code", "tools/check/xprog.go:": "ignore tools/check code", - "cmd/explaintest/main.go": "ignore cmd/explaintest code", + "tests/integrationtest/main.go": "ignore tests/integrationtest code", "GOROOT/": "ignore code", "server/internal/testserverclient/server_client.go": "ignore server_client code", ".*_generated\\.go$": "ignore generated code" diff --git a/cmd/explaintest/README.md b/tests/integrationtest/README.md similarity index 77% rename from cmd/explaintest/README.md rename to tests/integrationtest/README.md index 28b1f8e9a793a..bab5155bafaa9 100644 --- a/cmd/explaintest/README.md +++ b/tests/integrationtest/README.md @@ -1,6 +1,6 @@ -# ExplainTest +# IntegrationTest -ExplainTest is a explain test command tool, also with some useful test cases for TiDB execute plan logic, we can run case via `run-tests.sh`. +IntegrationTest is a integration test command tool, also with some useful test cases for TiDB execute plan logic, we can run case via `run-tests.sh`. ``` Usage: ./run-tests.sh [options] @@ -8,7 +8,7 @@ Usage: ./run-tests.sh [options] -h: Print this help message. -s : Use tidb-server in for testing. - eg. "./run-tests.sh -s ./explaintest_tidb-server" + eg. "./run-tests.sh -s ./integrationtest_tidb-server" -b : "y" or "Y" for building test binaries [default "y" if this option is not specified]. "n" or "N" for not to build. @@ -28,7 +28,7 @@ Usage: ./run-tests.sh [options] ## How it works -ExplainTest will read test case in `t/*.test`, and execute them in TiDB server with `s/*.json` stat, and compare explain result in `r/*.result`. +IntegrationTest will read test case in `t/*.test`, and execute them in TiDB server with `s/*.json` stat, and compare integration result in `r/*.result`. For convenience, we can generate new `*.result` and `*.json` from execute by use `-r` parameter for `run-tests.sh` @@ -45,7 +45,7 @@ make dev or ```sh -make explaintest +make integrationtest ``` It will identify execute plan change. @@ -54,7 +54,7 @@ It will identify execute plan change. First, add new test query in `t/` folder. ```sh -cd cmd/explaintest +cd tests/integrationtest ./run-tests.sh -r [casename] `` It will generate result base on last execution, and then we can reuse them or open editor to do some modify. diff --git a/cmd/explaintest/config.toml b/tests/integrationtest/config.toml similarity index 100% rename from cmd/explaintest/config.toml rename to tests/integrationtest/config.toml diff --git a/cmd/explaintest/disable_new_collation.toml b/tests/integrationtest/disable_new_collation.toml similarity index 100% rename from cmd/explaintest/disable_new_collation.toml rename to tests/integrationtest/disable_new_collation.toml diff --git a/cmd/explaintest/r/access_path_selection.result b/tests/integrationtest/r/access_path_selection.result similarity index 100% rename from cmd/explaintest/r/access_path_selection.result rename to tests/integrationtest/r/access_path_selection.result diff --git a/cmd/explaintest/r/agg_predicate_pushdown.result b/tests/integrationtest/r/agg_predicate_pushdown.result similarity index 100% rename from cmd/explaintest/r/agg_predicate_pushdown.result rename to tests/integrationtest/r/agg_predicate_pushdown.result diff --git a/cmd/explaintest/r/black_list.result b/tests/integrationtest/r/black_list.result similarity index 100% rename from cmd/explaintest/r/black_list.result rename to tests/integrationtest/r/black_list.result diff --git a/cmd/explaintest/r/clustered_index.result b/tests/integrationtest/r/clustered_index.result similarity index 100% rename from cmd/explaintest/r/clustered_index.result rename to tests/integrationtest/r/clustered_index.result diff --git a/cmd/explaintest/r/collation_agg_func_disabled.result b/tests/integrationtest/r/collation_agg_func_disabled.result similarity index 100% rename from cmd/explaintest/r/collation_agg_func_disabled.result rename to tests/integrationtest/r/collation_agg_func_disabled.result diff --git a/cmd/explaintest/r/collation_agg_func_enabled.result b/tests/integrationtest/r/collation_agg_func_enabled.result similarity index 100% rename from cmd/explaintest/r/collation_agg_func_enabled.result rename to tests/integrationtest/r/collation_agg_func_enabled.result diff --git a/cmd/explaintest/r/collation_check_use_collation_disabled.result b/tests/integrationtest/r/collation_check_use_collation_disabled.result similarity index 100% rename from cmd/explaintest/r/collation_check_use_collation_disabled.result rename to tests/integrationtest/r/collation_check_use_collation_disabled.result diff --git a/cmd/explaintest/r/collation_check_use_collation_enabled.result b/tests/integrationtest/r/collation_check_use_collation_enabled.result similarity index 100% rename from cmd/explaintest/r/collation_check_use_collation_enabled.result rename to tests/integrationtest/r/collation_check_use_collation_enabled.result diff --git a/cmd/explaintest/r/collation_misc_disabled.result b/tests/integrationtest/r/collation_misc_disabled.result similarity index 100% rename from cmd/explaintest/r/collation_misc_disabled.result rename to tests/integrationtest/r/collation_misc_disabled.result diff --git a/cmd/explaintest/r/collation_misc_enabled.result b/tests/integrationtest/r/collation_misc_enabled.result similarity index 100% rename from cmd/explaintest/r/collation_misc_enabled.result rename to tests/integrationtest/r/collation_misc_enabled.result diff --git a/cmd/explaintest/r/collation_pointget_disabled.result b/tests/integrationtest/r/collation_pointget_disabled.result similarity index 100% rename from cmd/explaintest/r/collation_pointget_disabled.result rename to tests/integrationtest/r/collation_pointget_disabled.result diff --git a/cmd/explaintest/r/collation_pointget_enabled.result b/tests/integrationtest/r/collation_pointget_enabled.result similarity index 100% rename from cmd/explaintest/r/collation_pointget_enabled.result rename to tests/integrationtest/r/collation_pointget_enabled.result diff --git a/cmd/explaintest/r/common_collation.result b/tests/integrationtest/r/common_collation.result similarity index 100% rename from cmd/explaintest/r/common_collation.result rename to tests/integrationtest/r/common_collation.result diff --git a/cmd/explaintest/r/cte.result b/tests/integrationtest/r/cte.result similarity index 100% rename from cmd/explaintest/r/cte.result rename to tests/integrationtest/r/cte.result diff --git a/cmd/explaintest/r/explain-non-select-stmt.result b/tests/integrationtest/r/explain-non-select-stmt.result similarity index 100% rename from cmd/explaintest/r/explain-non-select-stmt.result rename to tests/integrationtest/r/explain-non-select-stmt.result diff --git a/cmd/explaintest/r/explain.result b/tests/integrationtest/r/explain.result similarity index 100% rename from cmd/explaintest/r/explain.result rename to tests/integrationtest/r/explain.result diff --git a/cmd/explaintest/r/explain_complex.result b/tests/integrationtest/r/explain_complex.result similarity index 100% rename from cmd/explaintest/r/explain_complex.result rename to tests/integrationtest/r/explain_complex.result diff --git a/cmd/explaintest/r/explain_complex_stats.result b/tests/integrationtest/r/explain_complex_stats.result similarity index 100% rename from cmd/explaintest/r/explain_complex_stats.result rename to tests/integrationtest/r/explain_complex_stats.result diff --git a/cmd/explaintest/r/explain_cte.result b/tests/integrationtest/r/explain_cte.result similarity index 100% rename from cmd/explaintest/r/explain_cte.result rename to tests/integrationtest/r/explain_cte.result diff --git a/cmd/explaintest/r/explain_easy.result b/tests/integrationtest/r/explain_easy.result similarity index 100% rename from cmd/explaintest/r/explain_easy.result rename to tests/integrationtest/r/explain_easy.result diff --git a/cmd/explaintest/r/explain_easy_stats.result b/tests/integrationtest/r/explain_easy_stats.result similarity index 100% rename from cmd/explaintest/r/explain_easy_stats.result rename to tests/integrationtest/r/explain_easy_stats.result diff --git a/cmd/explaintest/r/explain_foreign_key.result b/tests/integrationtest/r/explain_foreign_key.result similarity index 100% rename from cmd/explaintest/r/explain_foreign_key.result rename to tests/integrationtest/r/explain_foreign_key.result diff --git a/cmd/explaintest/r/explain_generate_column_substitute.result b/tests/integrationtest/r/explain_generate_column_substitute.result similarity index 100% rename from cmd/explaintest/r/explain_generate_column_substitute.result rename to tests/integrationtest/r/explain_generate_column_substitute.result diff --git a/cmd/explaintest/r/explain_indexmerge_stats.result b/tests/integrationtest/r/explain_indexmerge_stats.result similarity index 100% rename from cmd/explaintest/r/explain_indexmerge_stats.result rename to tests/integrationtest/r/explain_indexmerge_stats.result diff --git a/cmd/explaintest/r/explain_join_stats.result b/tests/integrationtest/r/explain_join_stats.result similarity index 100% rename from cmd/explaintest/r/explain_join_stats.result rename to tests/integrationtest/r/explain_join_stats.result diff --git a/cmd/explaintest/r/explain_shard_index.result b/tests/integrationtest/r/explain_shard_index.result similarity index 100% rename from cmd/explaintest/r/explain_shard_index.result rename to tests/integrationtest/r/explain_shard_index.result diff --git a/cmd/explaintest/r/explain_stats.result b/tests/integrationtest/r/explain_stats.result similarity index 100% rename from cmd/explaintest/r/explain_stats.result rename to tests/integrationtest/r/explain_stats.result diff --git a/cmd/explaintest/r/explain_union_scan.result b/tests/integrationtest/r/explain_union_scan.result similarity index 100% rename from cmd/explaintest/r/explain_union_scan.result rename to tests/integrationtest/r/explain_union_scan.result diff --git a/cmd/explaintest/r/expression/issues.result b/tests/integrationtest/r/expression/issues.result similarity index 100% rename from cmd/explaintest/r/expression/issues.result rename to tests/integrationtest/r/expression/issues.result diff --git a/cmd/explaintest/r/generated_columns.result b/tests/integrationtest/r/generated_columns.result similarity index 100% rename from cmd/explaintest/r/generated_columns.result rename to tests/integrationtest/r/generated_columns.result diff --git a/cmd/explaintest/r/imdbload.result b/tests/integrationtest/r/imdbload.result similarity index 100% rename from cmd/explaintest/r/imdbload.result rename to tests/integrationtest/r/imdbload.result diff --git a/cmd/explaintest/r/index_join.result b/tests/integrationtest/r/index_join.result similarity index 100% rename from cmd/explaintest/r/index_join.result rename to tests/integrationtest/r/index_join.result diff --git a/cmd/explaintest/r/index_merge.result b/tests/integrationtest/r/index_merge.result similarity index 100% rename from cmd/explaintest/r/index_merge.result rename to tests/integrationtest/r/index_merge.result diff --git a/cmd/explaintest/r/naaj.result b/tests/integrationtest/r/naaj.result similarity index 100% rename from cmd/explaintest/r/naaj.result rename to tests/integrationtest/r/naaj.result diff --git a/cmd/explaintest/r/new_character_set.result b/tests/integrationtest/r/new_character_set.result similarity index 100% rename from cmd/explaintest/r/new_character_set.result rename to tests/integrationtest/r/new_character_set.result diff --git a/cmd/explaintest/r/new_character_set_builtin.result b/tests/integrationtest/r/new_character_set_builtin.result similarity index 100% rename from cmd/explaintest/r/new_character_set_builtin.result rename to tests/integrationtest/r/new_character_set_builtin.result diff --git a/cmd/explaintest/r/new_character_set_invalid.result b/tests/integrationtest/r/new_character_set_invalid.result similarity index 100% rename from cmd/explaintest/r/new_character_set_invalid.result rename to tests/integrationtest/r/new_character_set_invalid.result diff --git a/cmd/explaintest/r/select.result b/tests/integrationtest/r/select.result similarity index 100% rename from cmd/explaintest/r/select.result rename to tests/integrationtest/r/select.result diff --git a/cmd/explaintest/r/show.result b/tests/integrationtest/r/show.result similarity index 100% rename from cmd/explaintest/r/show.result rename to tests/integrationtest/r/show.result diff --git a/cmd/explaintest/r/subquery.result b/tests/integrationtest/r/subquery.result similarity index 100% rename from cmd/explaintest/r/subquery.result rename to tests/integrationtest/r/subquery.result diff --git a/cmd/explaintest/r/topn_push_down.result b/tests/integrationtest/r/topn_push_down.result similarity index 100% rename from cmd/explaintest/r/topn_push_down.result rename to tests/integrationtest/r/topn_push_down.result diff --git a/cmd/explaintest/r/topn_pushdown.result b/tests/integrationtest/r/topn_pushdown.result similarity index 100% rename from cmd/explaintest/r/topn_pushdown.result rename to tests/integrationtest/r/topn_pushdown.result diff --git a/cmd/explaintest/r/tpch.result b/tests/integrationtest/r/tpch.result similarity index 100% rename from cmd/explaintest/r/tpch.result rename to tests/integrationtest/r/tpch.result diff --git a/cmd/explaintest/r/types/const.result b/tests/integrationtest/r/types/const.result similarity index 100% rename from cmd/explaintest/r/types/const.result rename to tests/integrationtest/r/types/const.result diff --git a/cmd/explaintest/r/vitess_hash.result b/tests/integrationtest/r/vitess_hash.result similarity index 100% rename from cmd/explaintest/r/vitess_hash.result rename to tests/integrationtest/r/vitess_hash.result diff --git a/cmd/explaintest/r/window_function.result b/tests/integrationtest/r/window_function.result similarity index 100% rename from cmd/explaintest/r/window_function.result rename to tests/integrationtest/r/window_function.result diff --git a/cmd/explaintest/run-tests.sh b/tests/integrationtest/run-tests.sh similarity index 95% rename from cmd/explaintest/run-tests.sh rename to tests/integrationtest/run-tests.sh index 863f62b67b065..d4533b201419c 100755 --- a/cmd/explaintest/run-tests.sh +++ b/tests/integrationtest/run-tests.sh @@ -20,7 +20,7 @@ build=1 mysql_tester="./mysql_tester" tidb_server="" portgenerator="" -mysql_tester_log="./explain-test.out" +mysql_tester_log="./integration-test.out" tests="" record=0 record_case="" @@ -41,10 +41,10 @@ function help_message() -d : \"y\" or \"Y\" for only enabling the new collation during test. \"n\" or \"N\" for only disabling the new collation during test. \"b\" or \"B\" for both tests [default]. - Enable/Disable the new collation during the explain test. + Enable/Disable the new collation during the integration test. -s : Use tidb-server in for testing. - eg. \"./run-tests.sh -s ./explaintest_tidb-server\" + eg. \"./run-tests.sh -s ./integrationtest_tidb-server\" -b : \"y\" or \"Y\" for building test binaries [default \"y\" if this option is not specified]. \"n\" or \"N\" for not to build. @@ -74,7 +74,7 @@ function build_portgenerator() function build_tidb_server() { - tidb_server="./explaintest_tidb-server" + tidb_server="./integrationtest_tidb-server" echo "building tidb-server binary: $tidb_server" rm -rf $tidb_server if [ "${TIDB_TEST_STORE_NAME}" = "tikv" ]; then @@ -169,7 +169,7 @@ if [ $build -eq 1 ]; then build_mysql_tester else if [ -z "$tidb_server" ]; then - tidb_server="./explaintest_tidb-server" + tidb_server="./integrationtest_tidb-server" if [[ ! -f "$tidb_server" ]]; then build_tidb_server else @@ -239,9 +239,9 @@ function run_mysql_tester() fi else if [ -z "$tests" ]; then - echo "run all explain test cases ($coll_msg)" + echo "run all integration test cases ($coll_msg)" else - echo "run explain test cases($coll_msg): $tests" + echo "run integration test cases($coll_msg): $tests" fi $mysql_tester -port "$port" --collation-disable=$coll_disabled $tests fi @@ -285,4 +285,4 @@ if [[ $collation_opt = 1 || $collation_opt = 2 ]]; then check_data_race fi -echo "explaintest passed!" +echo "integrationtest passed!" diff --git a/cmd/explaintest/s.zip b/tests/integrationtest/s.zip similarity index 100% rename from cmd/explaintest/s.zip rename to tests/integrationtest/s.zip diff --git a/cmd/explaintest/t/access_path_selection.test b/tests/integrationtest/t/access_path_selection.test similarity index 100% rename from cmd/explaintest/t/access_path_selection.test rename to tests/integrationtest/t/access_path_selection.test diff --git a/cmd/explaintest/t/agg_predicate_pushdown.test b/tests/integrationtest/t/agg_predicate_pushdown.test similarity index 100% rename from cmd/explaintest/t/agg_predicate_pushdown.test rename to tests/integrationtest/t/agg_predicate_pushdown.test diff --git a/cmd/explaintest/t/black_list.test b/tests/integrationtest/t/black_list.test similarity index 100% rename from cmd/explaintest/t/black_list.test rename to tests/integrationtest/t/black_list.test diff --git a/cmd/explaintest/t/clustered_index.test b/tests/integrationtest/t/clustered_index.test similarity index 100% rename from cmd/explaintest/t/clustered_index.test rename to tests/integrationtest/t/clustered_index.test diff --git a/cmd/explaintest/t/collation_agg_func.test b/tests/integrationtest/t/collation_agg_func.test similarity index 100% rename from cmd/explaintest/t/collation_agg_func.test rename to tests/integrationtest/t/collation_agg_func.test diff --git a/cmd/explaintest/t/collation_check_use_collation.test b/tests/integrationtest/t/collation_check_use_collation.test similarity index 100% rename from cmd/explaintest/t/collation_check_use_collation.test rename to tests/integrationtest/t/collation_check_use_collation.test diff --git a/cmd/explaintest/t/collation_misc.test b/tests/integrationtest/t/collation_misc.test similarity index 100% rename from cmd/explaintest/t/collation_misc.test rename to tests/integrationtest/t/collation_misc.test diff --git a/cmd/explaintest/t/collation_pointget.test b/tests/integrationtest/t/collation_pointget.test similarity index 100% rename from cmd/explaintest/t/collation_pointget.test rename to tests/integrationtest/t/collation_pointget.test diff --git a/cmd/explaintest/t/common_collation.test b/tests/integrationtest/t/common_collation.test similarity index 100% rename from cmd/explaintest/t/common_collation.test rename to tests/integrationtest/t/common_collation.test diff --git a/cmd/explaintest/t/cte.test b/tests/integrationtest/t/cte.test similarity index 100% rename from cmd/explaintest/t/cte.test rename to tests/integrationtest/t/cte.test diff --git a/cmd/explaintest/t/explain-non-select-stmt.test b/tests/integrationtest/t/explain-non-select-stmt.test similarity index 100% rename from cmd/explaintest/t/explain-non-select-stmt.test rename to tests/integrationtest/t/explain-non-select-stmt.test diff --git a/cmd/explaintest/t/explain.test b/tests/integrationtest/t/explain.test similarity index 100% rename from cmd/explaintest/t/explain.test rename to tests/integrationtest/t/explain.test diff --git a/cmd/explaintest/t/explain_complex.test b/tests/integrationtest/t/explain_complex.test similarity index 100% rename from cmd/explaintest/t/explain_complex.test rename to tests/integrationtest/t/explain_complex.test diff --git a/cmd/explaintest/t/explain_complex_stats.test b/tests/integrationtest/t/explain_complex_stats.test similarity index 100% rename from cmd/explaintest/t/explain_complex_stats.test rename to tests/integrationtest/t/explain_complex_stats.test diff --git a/cmd/explaintest/t/explain_cte.test b/tests/integrationtest/t/explain_cte.test similarity index 100% rename from cmd/explaintest/t/explain_cte.test rename to tests/integrationtest/t/explain_cte.test diff --git a/cmd/explaintest/t/explain_easy.test b/tests/integrationtest/t/explain_easy.test similarity index 100% rename from cmd/explaintest/t/explain_easy.test rename to tests/integrationtest/t/explain_easy.test diff --git a/cmd/explaintest/t/explain_easy_stats.test b/tests/integrationtest/t/explain_easy_stats.test similarity index 100% rename from cmd/explaintest/t/explain_easy_stats.test rename to tests/integrationtest/t/explain_easy_stats.test diff --git a/cmd/explaintest/t/explain_foreign_key.test b/tests/integrationtest/t/explain_foreign_key.test similarity index 100% rename from cmd/explaintest/t/explain_foreign_key.test rename to tests/integrationtest/t/explain_foreign_key.test diff --git a/cmd/explaintest/t/explain_generate_column_substitute.test b/tests/integrationtest/t/explain_generate_column_substitute.test similarity index 100% rename from cmd/explaintest/t/explain_generate_column_substitute.test rename to tests/integrationtest/t/explain_generate_column_substitute.test diff --git a/cmd/explaintest/t/explain_indexmerge_stats.test b/tests/integrationtest/t/explain_indexmerge_stats.test similarity index 100% rename from cmd/explaintest/t/explain_indexmerge_stats.test rename to tests/integrationtest/t/explain_indexmerge_stats.test diff --git a/cmd/explaintest/t/explain_join_stats.test b/tests/integrationtest/t/explain_join_stats.test similarity index 100% rename from cmd/explaintest/t/explain_join_stats.test rename to tests/integrationtest/t/explain_join_stats.test diff --git a/cmd/explaintest/t/explain_shard_index.test b/tests/integrationtest/t/explain_shard_index.test similarity index 100% rename from cmd/explaintest/t/explain_shard_index.test rename to tests/integrationtest/t/explain_shard_index.test diff --git a/cmd/explaintest/t/explain_stats.test b/tests/integrationtest/t/explain_stats.test similarity index 100% rename from cmd/explaintest/t/explain_stats.test rename to tests/integrationtest/t/explain_stats.test diff --git a/cmd/explaintest/t/explain_union_scan.test b/tests/integrationtest/t/explain_union_scan.test similarity index 100% rename from cmd/explaintest/t/explain_union_scan.test rename to tests/integrationtest/t/explain_union_scan.test diff --git a/cmd/explaintest/t/expression/issues.test b/tests/integrationtest/t/expression/issues.test similarity index 100% rename from cmd/explaintest/t/expression/issues.test rename to tests/integrationtest/t/expression/issues.test diff --git a/cmd/explaintest/t/generated_columns.test b/tests/integrationtest/t/generated_columns.test similarity index 100% rename from cmd/explaintest/t/generated_columns.test rename to tests/integrationtest/t/generated_columns.test diff --git a/cmd/explaintest/t/imdbload.test b/tests/integrationtest/t/imdbload.test similarity index 100% rename from cmd/explaintest/t/imdbload.test rename to tests/integrationtest/t/imdbload.test diff --git a/cmd/explaintest/t/index_join.test b/tests/integrationtest/t/index_join.test similarity index 100% rename from cmd/explaintest/t/index_join.test rename to tests/integrationtest/t/index_join.test diff --git a/cmd/explaintest/t/index_merge.test b/tests/integrationtest/t/index_merge.test similarity index 100% rename from cmd/explaintest/t/index_merge.test rename to tests/integrationtest/t/index_merge.test diff --git a/cmd/explaintest/t/naaj.test b/tests/integrationtest/t/naaj.test similarity index 100% rename from cmd/explaintest/t/naaj.test rename to tests/integrationtest/t/naaj.test diff --git a/cmd/explaintest/t/new_character_set.test b/tests/integrationtest/t/new_character_set.test similarity index 100% rename from cmd/explaintest/t/new_character_set.test rename to tests/integrationtest/t/new_character_set.test diff --git a/cmd/explaintest/t/new_character_set_builtin.test b/tests/integrationtest/t/new_character_set_builtin.test similarity index 100% rename from cmd/explaintest/t/new_character_set_builtin.test rename to tests/integrationtest/t/new_character_set_builtin.test diff --git a/cmd/explaintest/t/new_character_set_invalid.test b/tests/integrationtest/t/new_character_set_invalid.test similarity index 100% rename from cmd/explaintest/t/new_character_set_invalid.test rename to tests/integrationtest/t/new_character_set_invalid.test diff --git a/cmd/explaintest/t/select.test b/tests/integrationtest/t/select.test similarity index 100% rename from cmd/explaintest/t/select.test rename to tests/integrationtest/t/select.test diff --git a/cmd/explaintest/t/show.test b/tests/integrationtest/t/show.test similarity index 100% rename from cmd/explaintest/t/show.test rename to tests/integrationtest/t/show.test diff --git a/cmd/explaintest/t/subquery.test b/tests/integrationtest/t/subquery.test similarity index 100% rename from cmd/explaintest/t/subquery.test rename to tests/integrationtest/t/subquery.test diff --git a/cmd/explaintest/t/topn_push_down.test b/tests/integrationtest/t/topn_push_down.test similarity index 100% rename from cmd/explaintest/t/topn_push_down.test rename to tests/integrationtest/t/topn_push_down.test diff --git a/cmd/explaintest/t/topn_pushdown.test b/tests/integrationtest/t/topn_pushdown.test similarity index 100% rename from cmd/explaintest/t/topn_pushdown.test rename to tests/integrationtest/t/topn_pushdown.test diff --git a/cmd/explaintest/t/tpch.test b/tests/integrationtest/t/tpch.test similarity index 100% rename from cmd/explaintest/t/tpch.test rename to tests/integrationtest/t/tpch.test diff --git a/cmd/explaintest/t/types/const.test b/tests/integrationtest/t/types/const.test similarity index 100% rename from cmd/explaintest/t/types/const.test rename to tests/integrationtest/t/types/const.test diff --git a/cmd/explaintest/t/vitess_hash.test b/tests/integrationtest/t/vitess_hash.test similarity index 100% rename from cmd/explaintest/t/vitess_hash.test rename to tests/integrationtest/t/vitess_hash.test diff --git a/cmd/explaintest/t/window_function.test b/tests/integrationtest/t/window_function.test similarity index 100% rename from cmd/explaintest/t/window_function.test rename to tests/integrationtest/t/window_function.test