From a57ebeb75aa0cacbad39f988dfc70f084ca0752d Mon Sep 17 00:00:00 2001 From: D3Hunter Date: Tue, 2 Apr 2024 12:24:23 +0800 Subject: [PATCH] lightning: move tests out of br (#52289) ref pingcap/tidb#52182 --- .github/licenserc.yml | 2 + Makefile | 25 ++-- br/tests/README.md | 4 +- br/tests/br_charset_gbk/run.sh | 2 +- .../br_check_new_collocation_enable/run.sh | 2 +- br/tests/br_full_cluster_restore/run.sh | 2 +- br/tests/br_gcs/run.sh | 4 +- br/tests/br_incompatible_tidb_config/run.sh | 2 +- br/tests/br_rawkv/run.sh | 2 +- br/tests/br_txn/run.sh | 2 +- br/tests/config/root.cert | 9 -- br/tests/config/root.key | 3 - br/tests/lightning_checksum_mismatch/run.sh | 13 -- br/tests/lightning_cmdline_override/run.sh | 19 --- .../tidb-new-collation.toml | 10 -- .../data/test/test.customer/_SUCCESS | 0 .../data/test/test.district/_SUCCESS | 0 .../data/test/test.history/_SUCCESS | 0 .../data/test/test.item/_SUCCESS | 0 .../data/test/test.new_order/_SUCCESS | 0 .../data/test/test.order_line/_SUCCESS | 0 .../data/test/test.orders/_SUCCESS | 0 .../data/test/test.stock/_SUCCESS | 0 .../data/test/test.warehouse/_SUCCESS | 0 br/tests/lightning_routes_panic/run.sh | 18 --- br/tests/run.sh | 9 +- lightning/README.md | 4 +- lightning/tests/README.md | 64 ++++++++++ lightning/tests/config/pd.toml | 10 ++ lightning/tests/config/tidb.toml | 19 +++ .../tests/config/tikv-multi-rocksdb.toml | 8 +- lightning/tests/config/tikv.toml | 35 ++++++ .../download_integration_test_binaries.sh | 113 ++++++++++++++++++ .../tests/lightning_add_index/config1.toml | 0 .../tests/lightning_add_index/config2.toml | 0 .../data/add_index.multi_indexes-schema.sql | 0 .../data/add_index.multi_indexes.0.sql | 0 .../data/add_index.non_pk_auto_inc-schema.sql | 0 .../data/add_index.non_pk_auto_inc.0.sql | 0 .../tests/lightning_add_index/run.sh | 0 .../tests/lightning_alter_random/config.toml | 0 .../data/alter_random-schema-create.sql | 0 .../data/alter_random.t-schema.sql | 0 .../data/alter_random.t.sql | 0 .../tests/lightning_alter_random/run.sh | 0 .../tests/lightning_auto_columns/config.toml | 0 .../lightning_auto_cols-schema-create.sql | 0 ...lightning_auto_cols.t_auto_incr-schema.sql | 0 .../data/lightning_auto_cols.t_auto_incr.sql | 0 ...ghtning_auto_cols.t_auto_random-schema.sql | 0 .../lightning_auto_cols.t_auto_random.sql | 0 .../tests/lightning_auto_columns/run.sh | 0 .../lightning_auto_random_default/config.toml | 0 .../data/auto_random-schema-create.sql | 0 .../data/auto_random.t-schema.sql | 0 .../data/auto_random.t.0.sql | 0 .../data/auto_random.t.1.sql | 0 .../data2/auto_random.t.000000001.csv | 0 .../lightning_auto_random_default/run.sh | 0 .../tests/lightning_bom_file/config.toml | 0 .../original_data/mytest.testtbl-schema.sql | 0 .../original_data/mytest.testtbl.csv | 0 .../tests/lightning_bom_file/run.sh | 0 .../tests/lightning_character_sets/auto.toml | 0 .../lightning_character_sets/binary.toml | 0 .../lightning_character_sets/gb18030.toml | 0 .../gb18030/charsets-schema-create.sql | 0 .../gb18030/charsets.gb18030-schema.sql | 0 .../gb18030/charsets.gb18030.sql | 0 .../tests/lightning_character_sets/greek.toml | 0 .../greek/charsets-schema-create.sql | 0 .../greek/charsets.greek-schema.sql | 0 .../greek/charsets.greek.sql | 0 .../latin1-only-schema.toml | 0 .../lightning_character_sets/latin1.toml | 0 .../latin1/charsets-schema-create.sql | 0 .../latin1/charsets.latin1-schema.sql | 0 .../latin1/charsets.latin1.csv | 0 .../mixed/charsets-schema-create.sql | 0 .../mixed/charsets.mixed-schema.sql | 0 .../mixed/charsets.mixed.sql | 0 .../tests/lightning_character_sets/run.sh | 0 .../lightning_character_sets/utf8mb4.toml | 0 .../utf8mb4/charsets-schema-create.sql | 0 .../utf8mb4/charsets.utf8mb4-schema.sql | 0 .../utf8mb4/charsets.utf8mb4.sql | 0 .../config.toml | 0 .../data/db01.tbl01-schema.sql | 0 .../data/db01.tbl01.csv | 0 .../lightning_check_partial_imported/run.sh | 0 .../tests/lightning_checkpoint/config.toml | 0 .../tests/lightning_checkpoint/run.sh | 0 .../lightning_checkpoint_chunks/config.toml | 0 .../lightning_checkpoint_chunks/file.toml | 2 +- .../tests/lightning_checkpoint_chunks/run.sh | 0 .../lightning_checkpoint_columns/config.toml | 0 .../tests/lightning_checkpoint_columns/run.sh | 0 .../data/cpdt-schema-create.sql | 0 .../data/cpdt.t-schema.sql | 0 .../data/cpdt.t.sql | 0 .../file.toml | 0 .../mysql.toml | 0 .../lightning_checkpoint_dirty_tableid/run.sh | 0 .../lightning_checkpoint_engines/config.toml | 0 .../data/cpeng-schema-create.sql | 0 .../data/cpeng.a-schema.sql | 0 .../data/cpeng.a.1.sql | 0 .../data/cpeng.a.2.sql | 0 .../data/cpeng.a.3.sql | 0 .../data/cpeng.b-schema.sql | 0 .../data/cpeng.b.1.sql | 0 .../data/cpeng.b.2.sql | 0 .../lightning_checkpoint_engines/mysql.toml | 0 .../tests/lightning_checkpoint_engines/run.sh | 0 .../config.toml | 0 .../disk_quota_checkpoint-schema-create.sql | 0 .../data/disk_quota_checkpoint.t-schema.sql | 0 .../data/disk_quota_checkpoint.t.0.sql | 0 .../data/disk_quota_checkpoint.t.1.sql | 0 .../data/disk_quota_checkpoint.t.2.sql | 0 .../lightning_checkpoint_engines_order/run.sh | 14 ++- .../bad-data/cped-schema-create.sql | 0 .../bad-data/cped.t-schema.sql | 0 .../bad-data/cped.t.sql | 0 .../file.toml | 0 .../good-data/cped-schema-create.sql | 0 .../good-data/cped.t-schema.sql | 0 .../good-data/cped.t.sql | 0 .../mysql.toml | 0 .../lightning_checkpoint_error_destroy/run.sh | 0 .../lightning_checkpoint_parquet/config.toml | 0 .../tests/lightning_checkpoint_parquet/run.sh | 2 +- .../config.toml | 2 +- .../data/cpts-schema-create.sql | 0 .../data/cpts.cpts-schema.sql | 0 .../data/cpts.cpts.1.sql | 0 .../data/cpts.cpts.2.sql | 0 .../lightning_checkpoint_timestamp/mysql.toml | 0 .../lightning_checkpoint_timestamp/run.sh | 0 .../lightning_checksum_mismatch/config1.toml | 0 .../lightning_checksum_mismatch/config2.toml | 0 .../lightning_checksum_mismatch/config3.toml | 0 .../data/cm-schema-create.sql | 0 .../data/cm.t-schema.sql | 0 .../lightning_checksum_mismatch/data/cm.t.csv | 0 .../tests/lightning_checksum_mismatch/run.sh | 27 +++++ .../lightning_cmdline_override/config.toml | 0 .../data/cmdline_override-schema-create.sql | 0 .../data/cmdline_override.t-schema.sql | 0 .../data/cmdline_override.t.sql | 0 .../tests/lightning_cmdline_override/run.sh | 33 +++++ .../lightning_column_permutation/config.toml | 0 .../data/perm-schema-create.sql | 0 .../data/perm.test_perm-schema.sql | 0 .../data/perm.test_perm.0.csv | 0 .../tests/lightning_column_permutation/run.sh | 15 +++ .../tests/lightning_common_handle/config.toml | 0 .../tests/lightning_common_handle/run.sh | 0 .../data.gzip/compress-schema-create.sql.gz | Bin .../compress.empty_strings-schema.sql.gz | Bin .../compress.empty_strings.000000000.csv.gz | Bin .../data.gzip/compress.escapes-schema.sql.gz | Bin .../compress.escapes.000000000.csv.gz | Bin .../compress.multi_rows-schema.sql.gz | Bin .../compress.multi_rows.000000000.csv.gz | Bin .../data.gzip/compress.threads-schema.sql.gz | Bin .../compress.threads.000000000.csv.gz | Bin .../compress-schema-create.sql.snappy | Bin .../compress.empty_strings-schema.sql.snappy | Bin ...ompress.empty_strings.000000000.sql.snappy | Bin .../compress.escapes-schema.sql.snappy | Bin .../compress.escapes.000000000.sql.snappy | Bin .../compress.multi_rows-schema.sql.snappy | Bin .../compress.multi_rows.000000000.sql.snappy | Bin .../compress.threads-schema.sql.snappy | Bin .../compress.threads.000000000.sql.snappy | Bin .../data.zstd/compress-schema-create.sql.zst | Bin .../compress.empty_strings-schema.sql.zst | Bin .../compress.empty_strings.000000000.csv.zst | Bin .../data.zstd/compress.escapes-schema.sql.zst | Bin .../compress.escapes.000000000.csv.zst | Bin .../compress.multi_rows-schema.sql.zst | Bin .../compress.multi_rows.000000000.csv.zst | Bin .../data.zstd/compress.threads-schema.sql.zst | Bin .../compress.threads.000000000.csv.zst | Bin .../lightning_compress/local-config.toml | 0 .../tests/lightning_compress/run.sh | 14 +++ .../tests/lightning_compress/tidb-config.toml | 0 .../lightning_concurrent-restore/config.toml | 0 .../tests/lightning_concurrent-restore/run.sh | 0 .../data/mytest.testtbl-schema.sql | 0 .../data/mytest.testtbl.csv | 0 .../err_config.toml | 0 .../ignore_config.toml | 0 .../normal_config.toml | 0 .../normal_config_old_style.toml | 0 .../tests/lightning_config_max_error/run.sh | 0 .../tidb-error.toml | 0 .../tidb-limit-record.toml | 0 .../lightning_config_max_error/tidb.toml | 0 .../data/mytest.testtbl-schema.sql | 0 .../data/mytest.testtbl.csv | 0 .../err_config.toml | 0 .../err_default_config.toml | 0 .../normal_config.toml | 0 .../lightning_config_skip_csv_header/run.sh | 0 .../lightning_csv/config-pause-global.toml | 0 .../tests/lightning_csv/config.toml | 0 .../data/auto_incr_id-schema-create.sql | 0 .../data/auto_incr_id.clustered-schema.sql | 0 .../data/auto_incr_id.clustered.0.csv | 0 .../auto_incr_id.clustered_cache1-schema.sql | 0 .../data/auto_incr_id.clustered_cache1.0.csv | 0 .../data/auto_incr_id.nonclustered-schema.sql | 0 .../data/auto_incr_id.nonclustered.0.csv | 0 ...uto_incr_id.nonclustered_cache1-schema.sql | 0 .../auto_incr_id.nonclustered_cache1.0.csv | 0 .../lightning_csv/data/csv-schema-create.sql | 0 .../data/csv.empty_strings-schema.sql | 0 .../lightning_csv/data/csv.empty_strings.csv | 0 .../lightning_csv/data/csv.escapes-schema.sql | 0 .../tests/lightning_csv/data/csv.escapes.CSV | 0 .../lightning_csv/data/csv.threads-schema.sql | 0 .../tests/lightning_csv/data/csv.threads.csv | 0 .../data/no_auto_incr_id-schema-create.sql | 0 .../data/no_auto_incr_id.clustered-schema.sql | 0 .../data/no_auto_incr_id.clustered.0.csv | 0 ...o_auto_incr_id.clustered_cache1-schema.sql | 0 .../no_auto_incr_id.clustered_cache1.0.csv | 0 .../data/no_auto_incr_id.no_pk-schema.sql | 0 .../data/no_auto_incr_id.no_pk.0.csv | 0 .../no_auto_incr_id.no_pk_cache1-schema.sql | 0 .../data/no_auto_incr_id.no_pk_cache1.0.csv | 0 .../no_auto_incr_id.nonclustered-schema.sql | 0 .../data/no_auto_incr_id.nonclustered.0.csv | 0 ...uto_incr_id.nonclustered_cache1-schema.sql | 0 .../no_auto_incr_id.nonclustered_cache1.0.csv | 0 .../errData/db-schema-create.sql | 0 .../lightning_csv/errData/db.test-schema.sql | 0 .../tests/lightning_csv/errData/db.test.1.csv | 0 {br => lightning}/tests/lightning_csv/run.sh | 14 +++ .../lightning_default-columns/config.toml | 0 .../data/defcol-schema-create.sql | 0 .../data/defcol.t-schema.sql | 0 .../data/defcol.t.1.sql | 0 .../data/defcol.t.2.sql | 0 .../data/defcol.u-schema.sql | 0 .../data/defcol.u.1.sql | 0 .../tests/lightning_default-columns/run.sh | 0 .../config.toml | 0 .../data/test-schema-create.sql | 0 .../data/test.t-schema.sql | 0 .../data/test.t.sql | 0 .../run.sh | 0 .../tests/lightning_disk_quota/config.toml | 0 .../data/disk_quota-schema-create.sql | 0 .../data/disk_quota.t-schema.sql | 0 .../data/disk_quota.t.0.sql | 0 .../data/disk_quota.t.1.sql | 0 .../data/disk_quota.t.2.sql | 0 .../data/disk_quota.t.3.sql | 0 .../tests/lightning_disk_quota/run.sh | 0 .../lightning_distributed_import/config.toml | 0 .../distributed_import-schema-create.sql | 0 .../data1/distributed_import.t-schema.sql | 0 .../data1/distributed_import.t.csv | 0 .../distributed_import-schema-create.sql | 0 .../data2/distributed_import.t-schema.sql | 0 .../data2/distributed_import.t.csv | 0 .../tests/lightning_distributed_import/run.sh | 0 .../config.toml | 0 .../data/lntest.tbl01-schema.sql | 0 .../data/lntest.tbl01.csv | 0 .../run.sh | 0 .../config1.toml | 0 .../config2.toml | 0 .../data/dup_detect-schema-create.sql | 0 .../data/dup_detect.ta-schema.sql | 0 .../data/dup_detect.ta.0.sql | 0 .../data/dup_detect.ta.1.sql | 0 .../data/dup_detect.tb-schema.sql | 0 .../data/dup_detect.tb.0.sql | 0 .../data/dup_detect.tb.1.sql | 0 .../data/dup_detect.tc-schema.sql | 0 .../data/dup_detect.tc.0.sql | 0 .../data/dup_detect.tc.1.sql | 0 .../data/dup_detect.td-schema.sql | 0 .../data/dup_detect.td.0.sql | 0 .../data/dup_detect.td.1.sql | 0 .../data/dup_detect.te-schema.sql | 0 .../data/dup_detect.te.0.sql | 0 .../data/dup_detect.te.1.sql | 0 .../data/dup_detect.tf-schema.sql | 0 .../data/dup_detect.tf.0.sql | 0 .../data/dup_detect.tf.1.sql | 0 .../data/dup_detect.tg-schema.sql | 0 .../data/dup_detect.tg.0.sql | 0 .../data/dup_detect.tg.1.sql | 0 .../lightning_duplicate_detection/run.sh | 0 .../data/test.dup_detect-schema.sql | 0 .../data/test.dup_detect.1.sql | 0 .../data/test.dup_detect.2.sql | 0 .../data/test.dup_detect.3.sql | 0 .../data/test.dup_detect.4.sql | 0 .../local-error.toml | 0 .../local-limit-error-records.toml | 0 .../local-replace.toml | 0 .../lightning_duplicate_detection_new/run.sh | 0 .../tidb-ignore.toml | 0 .../tidb-replace.toml | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../data/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../data/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../data/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config1.toml | 0 .../config2.toml | 0 .../data/dup_resolve_detect-schema-create.sql | 0 .../data/dup_resolve_detect.ta-schema.sql | 0 .../data/dup_resolve_detect.ta.0.sql | 0 .../data/dup_resolve_detect.ta.1.sql | 0 .../run.sh | 0 .../config.toml | 0 .../data1/dup_resolve-schema-create.sql | 0 .../data1/dup_resolve.a-schema.sql | 0 .../data1/dup_resolve.a.1.csv | 0 .../data1/dup_resolve.a.2.csv | 0 .../data2/dup_resolve-schema-create.sql | 0 .../data2/dup_resolve.a-schema.sql | 0 .../data2/dup_resolve.a.1.csv | 0 .../data2/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../data/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../data/dup_resolve.a.2.csv | 0 .../run.sh | 0 .../config.toml | 0 .../data/dup_resolve-schema-create.sql | 0 .../data/dup_resolve.a-schema.sql | 0 .../data/dup_resolve.a.1.csv | 0 .../run.sh | 0 .../tests/lightning_error_summary/config.toml | 0 .../data/error_summary-schema-create.sql | 0 .../data/error_summary.a-schema.sql | 0 .../data/error_summary.a.sql | 0 .../data/error_summary.b-schema.sql | 0 .../data/error_summary.b.sql | 0 .../data/error_summary.c-schema.sql | 0 .../data/error_summary.c.sql | 0 .../tests/lightning_error_summary/run.sh | 0 .../tests/lightning_examples/1.toml | 0 .../tests/lightning_examples/131072.toml | 0 .../tests/lightning_examples/512.toml | 0 .../tests/lightning_examples/run.sh | 0 .../lightning_exotic_filenames/config.toml | 0 .../data/xfn-schema-create.sql | 0 .../data/xfn.etn-schema.sql | 0 .../data/xfn.etn.sql | 0 .../data/zwk-schema-create.sql | 0 .../data/zwk.zwb-schema.sql | 0 .../data/zwk.zwb.sql | 0 .../tests/lightning_exotic_filenames/run.sh | 0 .../tests/lightning_extend_routes/config.toml | 0 .../data/routes_a0-schema-create.sql | 0 .../data/routes_a0.t0-schema.sql | 0 .../data/routes_a0.t0.1.sql | 0 .../data/routes_a0.t0.2.sql | 0 .../data/routes_a0.t1-schema.sql | 0 .../data/routes_a0.t1.1.sql | 0 .../data/routes_a1-schema-create.sql | 0 .../data/routes_a1.s1-schema.sql | 0 .../data/routes_a1.s1.sql | 0 .../data/routes_a1.t2-schema.sql | 0 .../data/routes_a1.t2.sql | 0 .../tests/lightning_extend_routes/run.sh | 14 +++ .../tests/lightning_fail_fast/chunk.toml | 0 .../data/fail_fast-schema-create.sql | 0 .../data/fail_fast.tb-schema.sql | 0 .../data/fail_fast.tb.0.csv | 0 .../data/fail_fast.tb.1.csv | 0 .../data/fail_fast.tb.2.csv | 0 .../tests/lightning_fail_fast/engine.toml | 0 .../tests/lightning_fail_fast/run.sh | 0 .../config.toml | 0 .../data/csv-schema-create.sql | 0 .../data/csv.threads-schema.sql | 0 .../data/csv.threads.csv | 0 .../run.sh | 14 +++ .../tests/lightning_file_routing/config.toml | 0 .../tests/lightning_file_routing/run.sh | 0 .../data/fk.child-schema.sql | 0 .../lightning_foreign_key/data/fk.child.sql | 0 .../data/fk.parent-schema.sql | 0 .../lightning_foreign_key/data/fk.parent.sql | 0 .../data/fk.t-schema.sql | 0 .../tests/lightning_foreign_key/data/fk.t.csv | 0 .../lightning_foreign_key/local-config.toml | 0 .../tests/lightning_foreign_key/run.sh | 0 .../lightning_foreign_key/tidb-config.toml | 0 .../tests/lightning_gcs/config.toml | 0 {br => lightning}/tests/lightning_gcs/run.sh | 6 +- .../lightning_generated_columns/config.toml | 0 .../data/gencol-schema-create.sql | 0 .../data/gencol.expr_index-schema.sql | 0 .../data/gencol.expr_index.0.sql | 0 .../data/gencol.nested-schema.sql | 0 .../data/gencol.nested.0.sql | 0 .../data/gencol.uuid-schema.sql | 0 .../data/gencol.uuid.0.sql | 0 .../data/gencol.various_types-schema.sql | 0 .../data/gencol.various_types.0.sql | 0 .../data/gencol.virtual_only-schema.sql | 0 .../data/gencol.virtual_only.0.sql | 0 .../tests/lightning_generated_columns/run.sh | 0 .../lightning_ignore_columns/config.toml | 0 .../data/routes_a0-schema-create.sql | 0 .../data/routes_a0.t0-schema.sql | 0 .../data/routes_a0.t0.1.sql | 0 .../data/routes_a0.t0.2.sql | 0 .../data/routes_a0.t1-schema.sql | 0 .../data/routes_a0.t1.1.sql | 0 .../data/routes_a1-schema-create.sql | 0 .../data/routes_a1.s1-schema.sql | 0 .../data/routes_a1.s1.sql | 0 .../data/routes_a1.t2-schema.sql | 0 .../data/routes_a1.t2.sql | 0 .../tests/lightning_ignore_columns/run.sh | 14 +++ .../lightning_import_compress/config.toml | 0 .../lightning_import_compress/config_gz.toml | 0 .../config_gzip.toml | 0 .../tests/lightning_import_compress/run.sh | 6 +- .../tests/lightning_incremental/config.toml | 0 .../data/incr-schema-create.sql | 0 .../data/incr.auto_random-schema.sql | 0 .../data/incr.auto_random.sql | 0 .../data/incr.empty_table-schema.sql | 0 .../data/incr.pk_auto_inc-schema.sql | 0 .../data/incr.pk_auto_inc.sql | 0 .../data/incr.rowid_uk_inc-schema.sql | 0 .../data/incr.rowid_uk_inc.sql | 0 .../data/incr.uk_auto_inc-schema.sql | 0 .../data/incr.uk_auto_inc.sql | 0 .../data1/incr-schema-create.sql | 0 .../data1/incr.auto_random-schema.sql | 0 .../data1/incr.auto_random.sql | 0 .../data1/incr.empty_table-schema.sql | 0 .../data1/incr.empty_table2-schema.sql | 0 .../data1/incr.pk_auto_inc-schema.sql | 0 .../data1/incr.pk_auto_inc.sql | 0 .../data1/incr.rowid_uk_inc-schema.sql | 0 .../data1/incr.rowid_uk_inc.sql | 0 .../data1/incr.uk_auto_inc-schema.sql | 0 .../data1/incr.uk_auto_inc.sql | 0 .../tests/lightning_incremental/run.sh | 0 .../tests/lightning_issue_282/config.toml | 0 .../data/issue282-schema-create.sql | 0 .../data/issue282.t_access3-schema.sql | 0 .../data/issue282.t_access3.sql | 0 .../tests/lightning_issue_282/run.sh | 0 .../tests/lightning_issue_40657/config.toml | 0 .../data1/test.t-schema.sql | 0 .../lightning_issue_40657/data1/test.t.0.csv | 0 .../data2/test.t-schema.sql | 0 .../lightning_issue_40657/data2/test.t.0.csv | 0 .../tests/lightning_issue_40657/run.sh | 0 .../tests/lightning_issue_410/config.toml | 0 .../data/issue410-schema-create.sql | 0 .../data/issue410.row_flow_d-schema.sql | 0 .../data/issue410.row_flow_d.0.csv | 0 .../tests/lightning_issue_410/run.sh | 0 .../tests/lightning_issue_519/config.toml | 0 .../data/issue519-schema-create.sql | 0 .../data/issue519.t-schema.sql | 0 .../lightning_issue_519/data/issue519.t.csv | 0 .../tests/lightning_issue_519/run.sh | 0 .../tests/lightning_local_backend/config.toml | 0 .../data/cpeng-schema-create.sql | 0 .../data/cpeng.a-schema.sql | 0 .../data/cpeng.a.1.sql | 0 .../data/cpeng.a.2.sql | 0 .../data/cpeng.a.3.sql | 0 .../data/cpeng.b-schema.sql | 0 .../data/cpeng.b.1.sql | 0 .../data/cpeng.b.2.sql | 0 .../tests/lightning_local_backend/file.toml | 0 .../tests/lightning_local_backend/mysql.toml | 0 .../tests/lightning_local_backend/run.sh | 0 .../tests/lightning_max_incr/config.toml | 0 .../data/db-schema-create.sql | 0 .../data/db.test-schema.sql | 0 .../data/db.test.000000000.csv | 0 .../data/db.test1-schema.sql | 0 .../data/db.test1.000000000.csv | 0 .../tests/lightning_max_incr/run.sh | 0 .../tests/lightning_max_random/config.toml | 0 .../data/db-schema-create.sql | 0 .../data/db.test-schema.sql | 0 .../data/db.test.000000000.csv | 0 .../data/db.test1-schema.sql | 0 .../data/db.test1.000000000.csv | 0 .../data/db.test2-schema.sql | 0 .../data/db.test2.000000000.csv | 0 .../tests/lightning_max_random/run.sh | 0 .../lightning_multi_valued_index/config.toml | 0 .../data/mv-schema.sql | 0 .../data/mv.l-schema.sql | 0 .../data/mv.l.0.csv | 0 .../data/mv.t-schema.sql | 0 .../data/mv.t.0.sql | 0 .../tests/lightning_multi_valued_index/run.sh | 0 .../tests/lightning_new_collation/config.toml | 0 .../data-gbk/nc.gbk_source-schema.sql | 0 .../data-gbk/nc.gbk_source.0.csv | 0 .../data/nc-schema-create.sql | 0 .../data/nc.ci-schema.sql | 0 .../lightning_new_collation/data/nc.ci.0.csv | 0 .../data/nc.gbk_test-schema.sql | 0 .../data/nc.gbk_test.0.csv | 0 .../data/nc.t-schema.sql | 0 .../lightning_new_collation/data/nc.t.0.sql | 0 .../lightning_new_collation/data/nc.t.1.sql | 0 .../tests/lightning_new_collation/gbk.toml | 0 .../tests/lightning_new_collation/run.sh | 2 +- .../tidb-new-collation.toml | 10 ++ .../tests/lightning_no_schema/config.toml | 0 .../lightning_no_schema/data/noschema.t.sql | 0 .../tests/lightning_no_schema/run.sh | 0 .../tests/lightning_parquet/config.toml | 0 .../data/export_info_ci.json | 0 .../export_tables_info_ci_from_1_to_9.json | 0 ...51c-49ba-bdf3-5864befff481-c000.gz.parquet | Bin ...765-432a-8f18-cd17b4607f2a-c000.gz.parquet | Bin ...169-4335-a93f-8805e02def97-c000.gz.parquet | Bin ...c54-477f-9907-6e3eae50358b-c000.gz.parquet | Bin ...629-4445-bd96-d34b6674b09d-c000.gz.parquet | Bin ...f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet | Bin ...2c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet | Bin .../special_col_name.parquet | Bin ...034-4d65-b375-ee55aa479215-c000.gz.parquet | Bin .../data/test/test.test_time/000000_0.parquet | Bin ...d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet | Bin .../tests/lightning_parquet/db.sql | 0 .../tests/lightning_parquet/run.sh | 0 .../config.toml | 0 .../config1.toml | 0 .../config2.toml | 0 .../data/incr.auto_rowid-schema.sql | 0 .../data/incr.auto_rowid.csv | 0 .../data/incr.non_pk_auto_inc-schema.sql | 0 .../data/incr.non_pk_auto_inc.csv | 0 .../data1/incr.auto_rowid-schema.sql | 0 .../data1/incr.auto_rowid.csv | 0 .../data1/incr.non_pk_auto_inc-schema.sql | 0 .../data1/incr.non_pk_auto_inc.csv | 0 .../data2/incr.auto_rowid-schema.sql | 0 .../data2/incr.auto_rowid.csv | 0 .../data2/incr.non_pk_auto_inc-schema.sql | 0 .../data2/incr.non_pk_auto_inc.csv | 0 .../lightning_partition_incremental/run.sh | 0 .../lightning_partitioned-table/config.toml | 0 .../data/partitioned-schema-create.sql | 0 .../data/partitioned.a-schema.sql | 0 .../data/partitioned.a.sql | 0 .../data/partitioned.defaultlist-schema.sql | 0 .../data/partitioned.defaultlist.sql | 0 .../data/partitioned.list-schema.sql | 0 .../data/partitioned.list.sql | 0 .../data/partitioned.range-schema.sql | 0 .../data/partitioned.range.sql | 0 .../tests/lightning_partitioned-table/run.sh | 0 .../lightning_pd_leader_switch/config.toml | 0 .../data/cpeng-schema-create.sql | 0 .../data/cpeng.a-schema.sql | 0 .../data/cpeng.a.1.sql | 0 .../data/cpeng.a.2.sql | 0 .../data/cpeng.a.3.sql | 0 .../data/cpeng.b-schema.sql | 0 .../data/cpeng.b.1.sql | 0 .../data/cpeng.b.2.sql | 0 .../tests/lightning_pd_leader_switch/run.sh | 10 +- .../lightning_record_network/config.toml | 0 .../data/db-schema-create.sql | 0 .../data/db.test-schema.sql | 0 .../data/db.test.1.sql | 0 .../tests/lightning_record_network/run.sh | 0 .../tests/lightning_reload_cert/config.toml | 0 .../data/test-schema-create.sql | 0 .../data/test.t-schema.sql | 0 .../lightning_reload_cert/data/test.t.sql | 0 .../tests/lightning_reload_cert/run.sh | 0 .../tests/lightning_restore/config.toml | 0 .../tests/lightning_restore/run.sh | 0 .../tests/lightning_routes/config.toml | 0 .../data/routes_a0-schema-create.sql | 0 .../data/routes_a0.t0-schema.sql | 0 .../lightning_routes/data/routes_a0.t0.1.sql | 0 .../lightning_routes/data/routes_a0.t0.2.sql | 0 .../data/routes_a0.t1-schema.sql | 0 .../lightning_routes/data/routes_a0.t1.1.sql | 0 .../data/routes_a1-schema-create.sql | 0 .../data/routes_a1.s1-schema.sql | 0 .../lightning_routes/data/routes_a1.s1.sql | 0 .../data/routes_a1.t2-schema.sql | 0 .../lightning_routes/data/routes_a1.t2.sql | 0 .../tests/lightning_routes/run.sh | 14 +++ .../tests/lightning_routes_panic/config.toml | 0 .../data/test1.dump_test.001.sql | 0 .../data/test1.dump_test.002.sql | 0 .../data/test1.dump_test.003.sql | 0 lightning/tests/lightning_routes_panic/run.sh | 32 +++++ .../tests/lightning_row-format-v2/config.toml | 0 .../data/rowformatv2-schema-create.sql | 0 .../data/rowformatv2.t1-schema.sql | 0 .../data/rowformatv2.t1.1.sql | 0 .../tests/lightning_row-format-v2/run.sh | 14 +++ .../tests/lightning_s3/config.toml | 0 .../lightning_s3/config_manual_files.toml | 0 .../lightning_s3/config_s3_checkpoint.toml | 0 {br => lightning}/tests/lightning_s3/run.sh | 2 +- .../tests/lightning_shard_rowid/config.toml | 0 .../data/shard_rowid-schema-create.sql | 0 .../data/shard_rowid.shr-schema.sql | 0 .../data/shard_rowid.shr.0.sql | 0 .../tests/lightning_shard_rowid/run.sh | 0 .../lightning_source_linkfile/config.toml | 0 .../tests/lightning_source_linkfile/run.sh | 0 .../data/sqlmodedb-schema-create.sql | 0 .../data/sqlmodedb.t-schema.sql | 0 .../lightning_sqlmode/data/sqlmodedb.t.1.sql | 0 .../tests/lightning_sqlmode/off.toml | 0 .../tests/lightning_sqlmode/on.toml | 0 .../tests/lightning_sqlmode/run.sh | 0 .../data/dup-schema-create.sql | 0 .../data/dup.dup-schema.sql | 0 .../data/dup.dup.sql | 0 .../lightning_tidb_duplicate_data/error.toml | 0 .../lightning_tidb_duplicate_data/ignore.toml | 0 .../replace.toml | 0 .../lightning_tidb_duplicate_data/run.sh | 0 .../tests/lightning_tidb_rowid/config.toml | 0 .../data/rowid-schema-create.sql | 0 .../data/rowid.explicit_tidb_rowid-schema.sql | 0 .../data/rowid.explicit_tidb_rowid.sql | 0 .../data/rowid.non_pk-schema.sql | 0 .../data/rowid.non_pk.sql | 0 .../data/rowid.non_pk_auto_inc-schema.sql | 0 .../data/rowid.non_pk_auto_inc.sql | 0 .../data/rowid.pre_rebase-schema.sql | 0 .../data/rowid.pre_rebase.sql | 0 .../data/rowid.specific_auto_inc-schema.sql | 0 .../data/rowid.specific_auto_inc.sql | 0 .../tests/lightning_tidb_rowid/run.sh | 0 .../tests/lightning_tiflash/config.toml | 0 .../tests/lightning_tiflash/run.sh | 0 .../lightning_tikv_multi_rocksdb/config.toml | 0 .../data/cpeng-schema-create.sql | 0 .../data/cpeng.a-schema.sql | 0 .../data/cpeng.a.1.sql | 0 .../data/cpeng.a.2.sql | 0 .../data/cpeng.a.3.sql | 0 .../data/cpeng.b-schema.sql | 0 .../data/cpeng.b.1.sql | 0 .../data/cpeng.b.2.sql | 0 .../tests/lightning_tikv_multi_rocksdb/run.sh | 2 +- .../lightning_too_many_columns/config.toml | 0 .../data/too_many_columns-schema-create.sql | 0 .../data/too_many_columns.t-schema.sql | 0 .../data/too_many_columns.t.0.csv | 0 .../tests/lightning_too_many_columns/run.sh | 0 .../tests/lightning_tool_135/config.toml | 0 .../data/tool_135-schema-create.sql | 0 .../data/tool_135.bar1-schema.sql | 0 .../lightning_tool_135/data/tool_135.bar1.sql | 0 .../data/tool_135.bar2-schema.sql | 0 .../lightning_tool_135/data/tool_135.bar2.sql | 0 .../data/tool_135.bar3-schema.sql | 0 .../lightning_tool_135/data/tool_135.bar3.sql | 0 .../data/tool_135.bar4-schema.sql | 0 .../lightning_tool_135/data/tool_135.bar4.sql | 0 .../data/tool_135.bar5-schema.sql | 0 .../lightning_tool_135/data/tool_135.bar5.sql | 0 .../tests/lightning_tool_135/run.sh | 0 .../tests/lightning_tool_1420/config.toml | 0 .../data/EE1420-schema-create.sql | 0 .../data/EE1420.pt_role-schema.sql | 0 .../data/EE1420.pt_role.sql | 0 .../tests/lightning_tool_1420/run.sh | 0 .../tests/lightning_tool_1472/config.toml | 0 .../data/EE1472-schema-create.sql | 0 .../data/EE1472.notpk-schema.sql | 0 .../data/EE1472.notpk.1.sql | 0 .../data/EE1472.notpk.2.sql | 0 .../data/EE1472.pk-schema.sql | 0 .../lightning_tool_1472/data/EE1472.pk.1.sql | 0 .../lightning_tool_1472/data/EE1472.pk.2.sql | 0 .../tests/lightning_tool_1472/run.sh | 0 .../tests/lightning_tool_241/config.toml | 0 .../data/qyjc-schema-create.sql | 0 .../data/qyjc.q_alarm_group-schema.sql | 0 .../data/qyjc.q_alarm_group.sql | 0 .../data/qyjc.q_alarm_message_log-schema.sql | 0 .../data/qyjc.q_alarm_message_log.sql | 0 .../data/qyjc.q_alarm_receiver-schema.sql | 0 .../data/qyjc.q_config-schema.sql | 0 .../data/qyjc.q_fish_event-schema.sql | 0 .../data/qyjc.q_fish_event.sql | 0 .../qyjc.q_report_circular_data-schema.sql | 0 .../data/qyjc.q_report_desc-schema.sql | 0 .../data/qyjc.q_report_summary-schema.sql | 0 .../data/qyjc.q_system_update-schema.sql | 0 .../data/qyjc.q_system_update.sql | 0 .../data/qyjc.q_user_log-schema.sql | 0 .../data/qyjc.q_user_log.sql | 0 .../tests/lightning_tool_241/run.sh | 0 .../tests/lightning_ttl/config.toml | 0 .../data/ttldb-schema-create.sql | 0 .../lightning_ttl/data/ttldb.t1-schema.sql | 0 .../tests/lightning_ttl/data/ttldb.t1.0.sql | 0 {br => lightning}/tests/lightning_ttl/run.sh | 0 .../lightning_unused_config_keys/config.toml | 0 .../data/unused_config_keys-schema-create.sql | 0 .../tests/lightning_unused_config_keys/run.sh | 0 .../tests/lightning_various_types/config.toml | 0 .../data/vt-schema-create.sql | 0 .../data/vt.bigint-schema.sql | 0 .../data/vt.bigint.0.sql | 0 .../data/vt.binary-schema.sql | 0 .../data/vt.binary.sql | 0 .../data/vt.bit-schema.sql | 0 .../lightning_various_types/data/vt.bit.sql | 0 .../data/vt.char-schema.sql | 0 .../lightning_various_types/data/vt.char.sql | 0 .../data/vt.datetime-schema.sql | 0 .../data/vt.datetime.sql | 0 .../data/vt.decimal-schema.sql | 0 .../data/vt.decimal.sql | 0 .../data/vt.double-schema.sql | 0 .../data/vt.double.sql | 0 .../data/vt.empty_strings-schema.sql | 0 .../data/vt.empty_strings.sql | 0 .../data/vt.enum-set-schema.sql | 0 .../data/vt.enum-set.sql | 0 .../data/vt.json-schema.sql | 0 .../lightning_various_types/data/vt.json.sql | 0 .../data/vt.precise_types-schema.sql | 0 .../data/vt.precise_types.sql | 0 .../tests/lightning_various_types/run.sh | 0 .../tests/lightning_view/config.toml | 0 .../lightning_view/data/db0-schema-create.sql | 0 .../data/db0.v2-schema-view.sql | 0 .../lightning_view/data/db0.v2-schema.sql | 0 .../lightning_view/data/db1-schema-create.sql | 0 .../lightning_view/data/db1.tbl-schema.sql | 0 .../tests/lightning_view/data/db1.tbl.0.sql | 0 .../data/db1.v1-schema-view.sql | 0 .../lightning_view/data/db1.v1-schema.sql | 0 {br => lightning}/tests/lightning_view/run.sh | 0 .../tests/lightning_write_batch/kv-count.toml | 0 .../tests/lightning_write_batch/kv-size.toml | 0 .../tests/lightning_write_batch/run.sh | 0 .../tests/lightning_write_limit/config.toml | 0 .../tests/lightning_write_limit/run.sh | 0 lightning/tests/run.sh | 83 +++++++++++++ .../tests/run_group_lightning_tests.sh | 18 ++- .../_utils/br_tikv_outage_util | 18 ++- .../_utils/check_cluster_version | 0 {br/tests => tests}/_utils/check_contains | 0 {br/tests => tests}/_utils/check_not_contains | 0 {br/tests => tests/_utils}/config/ipsan.cnf | 0 {br/tests => tests/_utils}/config/rootca.conf | 0 {br/tests => tests}/_utils/generate_certs | 4 +- .../_utils/make_tiflash_config | 14 +++ {br/tests => tests}/_utils/read_result | 0 {br/tests => tests}/_utils/run_br | 0 {br/tests => tests}/_utils/run_cdc | 0 {br/tests => tests}/_utils/run_curl | 0 {br/tests => tests}/_utils/run_lightning | 6 +- {br/tests => tests}/_utils/run_lightning_ctl | 2 +- {br/tests => tests}/_utils/run_pd_ctl | 0 {br/tests => tests}/_utils/run_services | 5 +- {br/tests => tests}/_utils/run_sql | 0 {br/tests => tests}/_utils/run_sql_file | 0 .../_utils/run_sql_in_container | 0 .../br_gcs => tools/fake-oauth}/BUILD.bazel | 10 +- .../oauth.go => tools/fake-oauth/main.go | 0 .../gen-parquet}/BUILD.bazel | 10 +- .../parquet.go => tools/gen-parquet/main.go | 14 +++ 853 files changed, 686 insertions(+), 142 deletions(-) delete mode 100644 br/tests/config/root.cert delete mode 100644 br/tests/config/root.key delete mode 100755 br/tests/lightning_checksum_mismatch/run.sh delete mode 100755 br/tests/lightning_cmdline_override/run.sh delete mode 100644 br/tests/lightning_new_collation/tidb-new-collation.toml delete mode 100644 br/tests/lightning_parquet/data/test/test.customer/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.district/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.history/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.item/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.new_order/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.order_line/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.orders/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.stock/_SUCCESS delete mode 100644 br/tests/lightning_parquet/data/test/test.warehouse/_SUCCESS delete mode 100755 br/tests/lightning_routes_panic/run.sh create mode 100644 lightning/tests/README.md create mode 100644 lightning/tests/config/pd.toml create mode 100644 lightning/tests/config/tidb.toml rename {br => lightning}/tests/config/tikv-multi-rocksdb.toml (69%) create mode 100644 lightning/tests/config/tikv.toml create mode 100644 lightning/tests/download_integration_test_binaries.sh rename {br => lightning}/tests/lightning_add_index/config1.toml (100%) rename {br => lightning}/tests/lightning_add_index/config2.toml (100%) rename {br => lightning}/tests/lightning_add_index/data/add_index.multi_indexes-schema.sql (100%) rename {br => lightning}/tests/lightning_add_index/data/add_index.multi_indexes.0.sql (100%) rename {br => lightning}/tests/lightning_add_index/data/add_index.non_pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_add_index/data/add_index.non_pk_auto_inc.0.sql (100%) rename {br => lightning}/tests/lightning_add_index/run.sh (100%) rename {br => lightning}/tests/lightning_alter_random/config.toml (100%) rename {br => lightning}/tests/lightning_alter_random/data/alter_random-schema-create.sql (100%) rename {br => lightning}/tests/lightning_alter_random/data/alter_random.t-schema.sql (100%) rename {br => lightning}/tests/lightning_alter_random/data/alter_random.t.sql (100%) rename {br => lightning}/tests/lightning_alter_random/run.sh (100%) rename {br => lightning}/tests/lightning_auto_columns/config.toml (100%) rename {br => lightning}/tests/lightning_auto_columns/data/lightning_auto_cols-schema-create.sql (100%) rename {br => lightning}/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr-schema.sql (100%) rename {br => lightning}/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr.sql (100%) rename {br => lightning}/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random-schema.sql (100%) rename {br => lightning}/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random.sql (100%) rename {br => lightning}/tests/lightning_auto_columns/run.sh (100%) rename {br => lightning}/tests/lightning_auto_random_default/config.toml (100%) rename {br => lightning}/tests/lightning_auto_random_default/data/auto_random-schema-create.sql (100%) rename {br => lightning}/tests/lightning_auto_random_default/data/auto_random.t-schema.sql (100%) rename {br => lightning}/tests/lightning_auto_random_default/data/auto_random.t.0.sql (100%) rename {br => lightning}/tests/lightning_auto_random_default/data/auto_random.t.1.sql (100%) rename {br => lightning}/tests/lightning_auto_random_default/data2/auto_random.t.000000001.csv (100%) rename {br => lightning}/tests/lightning_auto_random_default/run.sh (100%) rename {br => lightning}/tests/lightning_bom_file/config.toml (100%) rename {br => lightning}/tests/lightning_bom_file/original_data/mytest.testtbl-schema.sql (100%) rename {br => lightning}/tests/lightning_bom_file/original_data/mytest.testtbl.csv (100%) rename {br => lightning}/tests/lightning_bom_file/run.sh (100%) rename {br => lightning}/tests/lightning_character_sets/auto.toml (100%) rename {br => lightning}/tests/lightning_character_sets/binary.toml (100%) rename {br => lightning}/tests/lightning_character_sets/gb18030.toml (100%) rename {br => lightning}/tests/lightning_character_sets/gb18030/charsets-schema-create.sql (100%) rename {br => lightning}/tests/lightning_character_sets/gb18030/charsets.gb18030-schema.sql (100%) rename {br => lightning}/tests/lightning_character_sets/gb18030/charsets.gb18030.sql (100%) rename {br => lightning}/tests/lightning_character_sets/greek.toml (100%) rename {br => lightning}/tests/lightning_character_sets/greek/charsets-schema-create.sql (100%) rename {br => lightning}/tests/lightning_character_sets/greek/charsets.greek-schema.sql (100%) rename {br => lightning}/tests/lightning_character_sets/greek/charsets.greek.sql (100%) rename {br => lightning}/tests/lightning_character_sets/latin1-only-schema.toml (100%) rename {br => lightning}/tests/lightning_character_sets/latin1.toml (100%) rename {br => lightning}/tests/lightning_character_sets/latin1/charsets-schema-create.sql (100%) rename {br => lightning}/tests/lightning_character_sets/latin1/charsets.latin1-schema.sql (100%) rename {br => lightning}/tests/lightning_character_sets/latin1/charsets.latin1.csv (100%) rename {br => lightning}/tests/lightning_character_sets/mixed/charsets-schema-create.sql (100%) rename {br => lightning}/tests/lightning_character_sets/mixed/charsets.mixed-schema.sql (100%) rename {br => lightning}/tests/lightning_character_sets/mixed/charsets.mixed.sql (100%) rename {br => lightning}/tests/lightning_character_sets/run.sh (100%) rename {br => lightning}/tests/lightning_character_sets/utf8mb4.toml (100%) rename {br => lightning}/tests/lightning_character_sets/utf8mb4/charsets-schema-create.sql (100%) rename {br => lightning}/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql (100%) rename {br => lightning}/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4.sql (100%) rename {br => lightning}/tests/lightning_check_partial_imported/config.toml (100%) rename {br => lightning}/tests/lightning_check_partial_imported/data/db01.tbl01-schema.sql (100%) rename {br => lightning}/tests/lightning_check_partial_imported/data/db01.tbl01.csv (100%) rename {br => lightning}/tests/lightning_check_partial_imported/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_chunks/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_chunks/file.toml (84%) rename {br => lightning}/tests/lightning_checkpoint_chunks/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_columns/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_columns/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/data/cpdt-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/file.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/mysql.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_dirty_tableid/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.a-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.a.1.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.a.2.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.a.3.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.b-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.b.1.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/data/cpeng.b.2.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/mysql.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_engines/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.0.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.1.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_engines_order/run.sh (75%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/bad-data/cped-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/bad-data/cped.t-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/bad-data/cped.t.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/file.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/good-data/cped-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/good-data/cped.t-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/good-data/cped.t.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/mysql.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_error_destroy/run.sh (100%) rename {br => lightning}/tests/lightning_checkpoint_parquet/config.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_parquet/run.sh (96%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/config.toml (82%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/data/cpts-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/data/cpts.cpts-schema.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/data/cpts.cpts.1.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/data/cpts.cpts.2.sql (100%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/mysql.toml (100%) rename {br => lightning}/tests/lightning_checkpoint_timestamp/run.sh (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/config1.toml (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/config2.toml (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/config3.toml (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/data/cm-schema-create.sql (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/data/cm.t-schema.sql (100%) rename {br => lightning}/tests/lightning_checksum_mismatch/data/cm.t.csv (100%) create mode 100755 lightning/tests/lightning_checksum_mismatch/run.sh rename {br => lightning}/tests/lightning_cmdline_override/config.toml (100%) rename {br => lightning}/tests/lightning_cmdline_override/data/cmdline_override-schema-create.sql (100%) rename {br => lightning}/tests/lightning_cmdline_override/data/cmdline_override.t-schema.sql (100%) rename {br => lightning}/tests/lightning_cmdline_override/data/cmdline_override.t.sql (100%) create mode 100755 lightning/tests/lightning_cmdline_override/run.sh rename {br => lightning}/tests/lightning_column_permutation/config.toml (100%) rename {br => lightning}/tests/lightning_column_permutation/data/perm-schema-create.sql (100%) rename {br => lightning}/tests/lightning_column_permutation/data/perm.test_perm-schema.sql (100%) rename {br => lightning}/tests/lightning_column_permutation/data/perm.test_perm.0.csv (100%) rename {br => lightning}/tests/lightning_column_permutation/run.sh (50%) rename {br => lightning}/tests/lightning_common_handle/config.toml (100%) rename {br => lightning}/tests/lightning_common_handle/run.sh (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress-schema-create.sql.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.empty_strings-schema.sql.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.empty_strings.000000000.csv.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.escapes-schema.sql.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.escapes.000000000.csv.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.multi_rows-schema.sql.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.multi_rows.000000000.csv.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.threads-schema.sql.gz (100%) rename {br => lightning}/tests/lightning_compress/data.gzip/compress.threads.000000000.csv.gz (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress-schema-create.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.empty_strings-schema.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.empty_strings.000000000.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.escapes-schema.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.escapes.000000000.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.multi_rows-schema.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.multi_rows.000000000.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.threads-schema.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.snappy/compress.threads.000000000.sql.snappy (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress-schema-create.sql.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.empty_strings-schema.sql.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.empty_strings.000000000.csv.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.escapes-schema.sql.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.escapes.000000000.csv.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.multi_rows-schema.sql.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.multi_rows.000000000.csv.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.threads-schema.sql.zst (100%) rename {br => lightning}/tests/lightning_compress/data.zstd/compress.threads.000000000.csv.zst (100%) rename {br => lightning}/tests/lightning_compress/local-config.toml (100%) rename {br => lightning}/tests/lightning_compress/run.sh (80%) rename {br => lightning}/tests/lightning_compress/tidb-config.toml (100%) rename {br => lightning}/tests/lightning_concurrent-restore/config.toml (100%) rename {br => lightning}/tests/lightning_concurrent-restore/run.sh (100%) rename {br => lightning}/tests/lightning_config_max_error/data/mytest.testtbl-schema.sql (100%) rename {br => lightning}/tests/lightning_config_max_error/data/mytest.testtbl.csv (100%) rename {br => lightning}/tests/lightning_config_max_error/err_config.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/ignore_config.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/normal_config.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/normal_config_old_style.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/run.sh (100%) rename {br => lightning}/tests/lightning_config_max_error/tidb-error.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/tidb-limit-record.toml (100%) rename {br => lightning}/tests/lightning_config_max_error/tidb.toml (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/data/mytest.testtbl-schema.sql (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/data/mytest.testtbl.csv (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/err_config.toml (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/err_default_config.toml (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/normal_config.toml (100%) rename {br => lightning}/tests/lightning_config_skip_csv_header/run.sh (100%) rename {br => lightning}/tests/lightning_csv/config-pause-global.toml (100%) rename {br => lightning}/tests/lightning_csv/config.toml (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id-schema-create.sql (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.clustered-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.clustered.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.clustered_cache1-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.clustered_cache1.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.nonclustered-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.nonclustered.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/csv-schema-create.sql (100%) rename {br => lightning}/tests/lightning_csv/data/csv.empty_strings-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/csv.empty_strings.csv (100%) rename {br => lightning}/tests/lightning_csv/data/csv.escapes-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/csv.escapes.CSV (100%) rename {br => lightning}/tests/lightning_csv/data/csv.threads-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/csv.threads.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id-schema-create.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.clustered-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.clustered.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.no_pk-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.no_pk.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.nonclustered-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.nonclustered.0.csv (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1.0.csv (100%) rename {br => lightning}/tests/lightning_csv/errData/db-schema-create.sql (100%) rename {br => lightning}/tests/lightning_csv/errData/db.test-schema.sql (100%) rename {br => lightning}/tests/lightning_csv/errData/db.test.1.csv (100%) rename {br => lightning}/tests/lightning_csv/run.sh (84%) rename {br => lightning}/tests/lightning_default-columns/config.toml (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol-schema-create.sql (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol.t-schema.sql (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol.t.1.sql (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol.t.2.sql (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol.u-schema.sql (100%) rename {br => lightning}/tests/lightning_default-columns/data/defcol.u.1.sql (100%) rename {br => lightning}/tests/lightning_default-columns/run.sh (100%) rename {br => lightning}/tests/lightning_disable_scheduler_by_key_range/config.toml (100%) rename {br => lightning}/tests/lightning_disable_scheduler_by_key_range/data/test-schema-create.sql (100%) rename {br => lightning}/tests/lightning_disable_scheduler_by_key_range/data/test.t-schema.sql (100%) rename {br => lightning}/tests/lightning_disable_scheduler_by_key_range/data/test.t.sql (100%) rename {br => lightning}/tests/lightning_disable_scheduler_by_key_range/run.sh (100%) rename {br => lightning}/tests/lightning_disk_quota/config.toml (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota-schema-create.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota.t-schema.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota.t.0.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota.t.1.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota.t.2.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/data/disk_quota.t.3.sql (100%) rename {br => lightning}/tests/lightning_disk_quota/run.sh (100%) rename {br => lightning}/tests/lightning_distributed_import/config.toml (100%) rename {br => lightning}/tests/lightning_distributed_import/data1/distributed_import-schema-create.sql (100%) rename {br => lightning}/tests/lightning_distributed_import/data1/distributed_import.t-schema.sql (100%) rename {br => lightning}/tests/lightning_distributed_import/data1/distributed_import.t.csv (100%) rename {br => lightning}/tests/lightning_distributed_import/data2/distributed_import-schema-create.sql (100%) rename {br => lightning}/tests/lightning_distributed_import/data2/distributed_import.t-schema.sql (100%) rename {br => lightning}/tests/lightning_distributed_import/data2/distributed_import.t.csv (100%) rename {br => lightning}/tests/lightning_distributed_import/run.sh (100%) rename {br => lightning}/tests/lightning_drop_other_tables_halfway/config.toml (100%) rename {br => lightning}/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01-schema.sql (100%) rename {br => lightning}/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01.csv (100%) rename {br => lightning}/tests/lightning_drop_other_tables_halfway/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_detection/config1.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection/config2.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.ta-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.ta.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tb-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tb.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tc-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tc.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.td.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.te-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.te.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.te.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tf-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tg-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tg.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/data/test.dup_detect-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/data/test.dup_detect.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/data/test.dup_detect.2.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/data/test.dup_detect.3.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/data/test.dup_detect.4.sql (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/local-error.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/local-limit-error-records.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/local-replace.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/tidb-ignore.toml (100%) rename {br => lightning}/tests/lightning_duplicate_detection_new/tidb-replace.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_pk_multiple_files/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/config1.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/config2.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.0.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.1.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_incremental/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data1/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data2/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_merge/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.2.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/run.sh (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/config.toml (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve-schema-create.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a-schema.sql (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a.1.csv (100%) rename {br => lightning}/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/run.sh (100%) rename {br => lightning}/tests/lightning_error_summary/config.toml (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary-schema-create.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.a-schema.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.a.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.b-schema.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.b.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.c-schema.sql (100%) rename {br => lightning}/tests/lightning_error_summary/data/error_summary.c.sql (100%) rename {br => lightning}/tests/lightning_error_summary/run.sh (100%) rename {br => lightning}/tests/lightning_examples/1.toml (100%) rename {br => lightning}/tests/lightning_examples/131072.toml (100%) rename {br => lightning}/tests/lightning_examples/512.toml (100%) rename {br => lightning}/tests/lightning_examples/run.sh (100%) rename {br => lightning}/tests/lightning_exotic_filenames/config.toml (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/xfn-schema-create.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/xfn.etn-schema.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/xfn.etn.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/zwk-schema-create.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/zwk.zwb-schema.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/data/zwk.zwb.sql (100%) rename {br => lightning}/tests/lightning_exotic_filenames/run.sh (100%) rename {br => lightning}/tests/lightning_extend_routes/config.toml (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0-schema-create.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0.t0-schema.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0.t0.1.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0.t0.2.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0.t1-schema.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a0.t1.1.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a1-schema-create.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a1.s1-schema.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a1.s1.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a1.t2-schema.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/data/routes_a1.t2.sql (100%) rename {br => lightning}/tests/lightning_extend_routes/run.sh (71%) rename {br => lightning}/tests/lightning_fail_fast/chunk.toml (100%) rename {br => lightning}/tests/lightning_fail_fast/data/fail_fast-schema-create.sql (100%) rename {br => lightning}/tests/lightning_fail_fast/data/fail_fast.tb-schema.sql (100%) rename {br => lightning}/tests/lightning_fail_fast/data/fail_fast.tb.0.csv (100%) rename {br => lightning}/tests/lightning_fail_fast/data/fail_fast.tb.1.csv (100%) rename {br => lightning}/tests/lightning_fail_fast/data/fail_fast.tb.2.csv (100%) rename {br => lightning}/tests/lightning_fail_fast/engine.toml (100%) rename {br => lightning}/tests/lightning_fail_fast/run.sh (100%) rename {br => lightning}/tests/lightning_fail_fast_on_nonretry_err/config.toml (100%) rename {br => lightning}/tests/lightning_fail_fast_on_nonretry_err/data/csv-schema-create.sql (100%) rename {br => lightning}/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads-schema.sql (100%) rename {br => lightning}/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads.csv (100%) rename {br => lightning}/tests/lightning_fail_fast_on_nonretry_err/run.sh (55%) rename {br => lightning}/tests/lightning_file_routing/config.toml (100%) rename {br => lightning}/tests/lightning_file_routing/run.sh (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.child-schema.sql (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.child.sql (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.parent-schema.sql (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.parent.sql (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.t-schema.sql (100%) rename {br => lightning}/tests/lightning_foreign_key/data/fk.t.csv (100%) rename {br => lightning}/tests/lightning_foreign_key/local-config.toml (100%) rename {br => lightning}/tests/lightning_foreign_key/run.sh (100%) rename {br => lightning}/tests/lightning_foreign_key/tidb-config.toml (100%) rename {br => lightning}/tests/lightning_gcs/config.toml (100%) rename {br => lightning}/tests/lightning_gcs/run.sh (96%) rename {br => lightning}/tests/lightning_generated_columns/config.toml (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol-schema-create.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.expr_index-schema.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.expr_index.0.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.nested-schema.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.nested.0.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.uuid-schema.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.uuid.0.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.various_types-schema.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.various_types.0.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql (100%) rename {br => lightning}/tests/lightning_generated_columns/run.sh (100%) rename {br => lightning}/tests/lightning_ignore_columns/config.toml (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0-schema-create.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0.t0-schema.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0.t0.1.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0.t0.2.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0.t1-schema.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a0.t1.1.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a1-schema-create.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a1.s1-schema.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a1.s1.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a1.t2-schema.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/data/routes_a1.t2.sql (100%) rename {br => lightning}/tests/lightning_ignore_columns/run.sh (73%) rename {br => lightning}/tests/lightning_import_compress/config.toml (100%) rename {br => lightning}/tests/lightning_import_compress/config_gz.toml (100%) rename {br => lightning}/tests/lightning_import_compress/config_gzip.toml (100%) rename {br => lightning}/tests/lightning_import_compress/run.sh (88%) rename {br => lightning}/tests/lightning_incremental/config.toml (100%) rename {br => lightning}/tests/lightning_incremental/data/incr-schema-create.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.auto_random-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.auto_random.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.empty_table-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.pk_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.rowid_uk_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.rowid_uk_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.uk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data/incr.uk_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr-schema-create.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.auto_random-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.auto_random.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.empty_table-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.empty_table2-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.pk_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.rowid_uk_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.rowid_uk_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.uk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_incremental/data1/incr.uk_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_incremental/run.sh (100%) rename {br => lightning}/tests/lightning_issue_282/config.toml (100%) rename {br => lightning}/tests/lightning_issue_282/data/issue282-schema-create.sql (100%) rename {br => lightning}/tests/lightning_issue_282/data/issue282.t_access3-schema.sql (100%) rename {br => lightning}/tests/lightning_issue_282/data/issue282.t_access3.sql (100%) rename {br => lightning}/tests/lightning_issue_282/run.sh (100%) rename {br => lightning}/tests/lightning_issue_40657/config.toml (100%) rename {br => lightning}/tests/lightning_issue_40657/data1/test.t-schema.sql (100%) rename {br => lightning}/tests/lightning_issue_40657/data1/test.t.0.csv (100%) rename {br => lightning}/tests/lightning_issue_40657/data2/test.t-schema.sql (100%) rename {br => lightning}/tests/lightning_issue_40657/data2/test.t.0.csv (100%) rename {br => lightning}/tests/lightning_issue_40657/run.sh (100%) rename {br => lightning}/tests/lightning_issue_410/config.toml (100%) rename {br => lightning}/tests/lightning_issue_410/data/issue410-schema-create.sql (100%) rename {br => lightning}/tests/lightning_issue_410/data/issue410.row_flow_d-schema.sql (100%) rename {br => lightning}/tests/lightning_issue_410/data/issue410.row_flow_d.0.csv (100%) rename {br => lightning}/tests/lightning_issue_410/run.sh (100%) rename {br => lightning}/tests/lightning_issue_519/config.toml (100%) rename {br => lightning}/tests/lightning_issue_519/data/issue519-schema-create.sql (100%) rename {br => lightning}/tests/lightning_issue_519/data/issue519.t-schema.sql (100%) rename {br => lightning}/tests/lightning_issue_519/data/issue519.t.csv (100%) rename {br => lightning}/tests/lightning_issue_519/run.sh (100%) rename {br => lightning}/tests/lightning_local_backend/config.toml (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng-schema-create.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.a-schema.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.a.1.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.a.2.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.a.3.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.b-schema.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.b.1.sql (100%) rename {br => lightning}/tests/lightning_local_backend/data/cpeng.b.2.sql (100%) rename {br => lightning}/tests/lightning_local_backend/file.toml (100%) rename {br => lightning}/tests/lightning_local_backend/mysql.toml (100%) rename {br => lightning}/tests/lightning_local_backend/run.sh (100%) rename {br => lightning}/tests/lightning_max_incr/config.toml (100%) rename {br => lightning}/tests/lightning_max_incr/data/db-schema-create.sql (100%) rename {br => lightning}/tests/lightning_max_incr/data/db.test-schema.sql (100%) rename {br => lightning}/tests/lightning_max_incr/data/db.test.000000000.csv (100%) rename {br => lightning}/tests/lightning_max_incr/data/db.test1-schema.sql (100%) rename {br => lightning}/tests/lightning_max_incr/data/db.test1.000000000.csv (100%) rename {br => lightning}/tests/lightning_max_incr/run.sh (100%) rename {br => lightning}/tests/lightning_max_random/config.toml (100%) rename {br => lightning}/tests/lightning_max_random/data/db-schema-create.sql (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test-schema.sql (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test.000000000.csv (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test1-schema.sql (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test1.000000000.csv (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test2-schema.sql (100%) rename {br => lightning}/tests/lightning_max_random/data/db.test2.000000000.csv (100%) rename {br => lightning}/tests/lightning_max_random/run.sh (100%) rename {br => lightning}/tests/lightning_multi_valued_index/config.toml (100%) rename {br => lightning}/tests/lightning_multi_valued_index/data/mv-schema.sql (100%) rename {br => lightning}/tests/lightning_multi_valued_index/data/mv.l-schema.sql (100%) rename {br => lightning}/tests/lightning_multi_valued_index/data/mv.l.0.csv (100%) rename {br => lightning}/tests/lightning_multi_valued_index/data/mv.t-schema.sql (100%) rename {br => lightning}/tests/lightning_multi_valued_index/data/mv.t.0.sql (100%) rename {br => lightning}/tests/lightning_multi_valued_index/run.sh (100%) rename {br => lightning}/tests/lightning_new_collation/config.toml (100%) rename {br => lightning}/tests/lightning_new_collation/data-gbk/nc.gbk_source-schema.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data-gbk/nc.gbk_source.0.csv (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc-schema-create.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.ci-schema.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.ci.0.csv (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.gbk_test-schema.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.gbk_test.0.csv (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.t-schema.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.t.0.sql (100%) rename {br => lightning}/tests/lightning_new_collation/data/nc.t.1.sql (100%) rename {br => lightning}/tests/lightning_new_collation/gbk.toml (100%) rename {br => lightning}/tests/lightning_new_collation/run.sh (98%) create mode 100644 lightning/tests/lightning_new_collation/tidb-new-collation.toml rename {br => lightning}/tests/lightning_no_schema/config.toml (100%) rename {br => lightning}/tests/lightning_no_schema/data/noschema.t.sql (100%) rename {br => lightning}/tests/lightning_no_schema/run.sh (100%) rename {br => lightning}/tests/lightning_parquet/config.toml (100%) rename {br => lightning}/tests/lightning_parquet/data/export_info_ci.json (100%) rename {br => lightning}/tests/lightning_parquet/data/export_tables_info_ci_from_1_to_9.json (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.customer/part-00000-c3744aeb-351c-49ba-bdf3-5864befff481-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.district/part-00000-f61f4bef-6765-432a-8f18-cd17b4607f2a-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.history/part-00000-8cf0e97a-1169-4335-a93f-8805e02def97-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.item/part-00000-8905ded8-4c54-477f-9907-6e3eae50358b-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.new_order/part-00000-d868200e-b629-4445-bd96-d34b6674b09d-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.order_line/part-00000-e36fecd0-3f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.orders/part-00000-b45481f5-92c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.special_col_name/special_col_name.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.stock/part-00000-eef45943-3034-4d65-b375-ee55aa479215-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.test_time/000000_0.parquet (100%) rename {br => lightning}/tests/lightning_parquet/data/test/test.warehouse/part-00000-c6c33252-4d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet (100%) rename {br => lightning}/tests/lightning_parquet/db.sql (100%) rename {br => lightning}/tests/lightning_parquet/run.sh (100%) rename {br => lightning}/tests/lightning_partition_incremental/config.toml (100%) rename {br => lightning}/tests/lightning_partition_incremental/config1.toml (100%) rename {br => lightning}/tests/lightning_partition_incremental/config2.toml (100%) rename {br => lightning}/tests/lightning_partition_incremental/data/incr.auto_rowid-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data/incr.auto_rowid.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/data1/incr.auto_rowid-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data1/incr.auto_rowid.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/data2/incr.auto_rowid-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data2/incr.auto_rowid.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc.csv (100%) rename {br => lightning}/tests/lightning_partition_incremental/run.sh (100%) rename {br => lightning}/tests/lightning_partitioned-table/config.toml (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned-schema-create.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.a-schema.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.a.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.list-schema.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.list.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.range-schema.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/data/partitioned.range.sql (100%) rename {br => lightning}/tests/lightning_partitioned-table/run.sh (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/config.toml (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng-schema-create.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.a-schema.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.a.1.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.a.2.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.a.3.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.b-schema.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.b.1.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/data/cpeng.b.2.sql (100%) rename {br => lightning}/tests/lightning_pd_leader_switch/run.sh (87%) rename {br => lightning}/tests/lightning_record_network/config.toml (100%) rename {br => lightning}/tests/lightning_record_network/data/db-schema-create.sql (100%) rename {br => lightning}/tests/lightning_record_network/data/db.test-schema.sql (100%) rename {br => lightning}/tests/lightning_record_network/data/db.test.1.sql (100%) rename {br => lightning}/tests/lightning_record_network/run.sh (100%) rename {br => lightning}/tests/lightning_reload_cert/config.toml (100%) rename {br => lightning}/tests/lightning_reload_cert/data/test-schema-create.sql (100%) rename {br => lightning}/tests/lightning_reload_cert/data/test.t-schema.sql (100%) rename {br => lightning}/tests/lightning_reload_cert/data/test.t.sql (100%) rename {br => lightning}/tests/lightning_reload_cert/run.sh (100%) rename {br => lightning}/tests/lightning_restore/config.toml (100%) rename {br => lightning}/tests/lightning_restore/run.sh (100%) rename {br => lightning}/tests/lightning_routes/config.toml (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0-schema-create.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0.t0-schema.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0.t0.1.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0.t0.2.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0.t1-schema.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a0.t1.1.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a1-schema-create.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a1.s1-schema.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a1.s1.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a1.t2-schema.sql (100%) rename {br => lightning}/tests/lightning_routes/data/routes_a1.t2.sql (100%) rename {br => lightning}/tests/lightning_routes/run.sh (54%) rename {br => lightning}/tests/lightning_routes_panic/config.toml (100%) rename {br => lightning}/tests/lightning_routes_panic/data/test1.dump_test.001.sql (100%) rename {br => lightning}/tests/lightning_routes_panic/data/test1.dump_test.002.sql (100%) rename {br => lightning}/tests/lightning_routes_panic/data/test1.dump_test.003.sql (100%) create mode 100755 lightning/tests/lightning_routes_panic/run.sh rename {br => lightning}/tests/lightning_row-format-v2/config.toml (100%) rename {br => lightning}/tests/lightning_row-format-v2/data/rowformatv2-schema-create.sql (100%) rename {br => lightning}/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql (100%) rename {br => lightning}/tests/lightning_row-format-v2/data/rowformatv2.t1.1.sql (100%) rename {br => lightning}/tests/lightning_row-format-v2/run.sh (59%) rename {br => lightning}/tests/lightning_s3/config.toml (100%) rename {br => lightning}/tests/lightning_s3/config_manual_files.toml (100%) rename {br => lightning}/tests/lightning_s3/config_s3_checkpoint.toml (100%) rename {br => lightning}/tests/lightning_s3/run.sh (99%) rename {br => lightning}/tests/lightning_shard_rowid/config.toml (100%) rename {br => lightning}/tests/lightning_shard_rowid/data/shard_rowid-schema-create.sql (100%) rename {br => lightning}/tests/lightning_shard_rowid/data/shard_rowid.shr-schema.sql (100%) rename {br => lightning}/tests/lightning_shard_rowid/data/shard_rowid.shr.0.sql (100%) rename {br => lightning}/tests/lightning_shard_rowid/run.sh (100%) rename {br => lightning}/tests/lightning_source_linkfile/config.toml (100%) rename {br => lightning}/tests/lightning_source_linkfile/run.sh (100%) rename {br => lightning}/tests/lightning_sqlmode/data/sqlmodedb-schema-create.sql (100%) rename {br => lightning}/tests/lightning_sqlmode/data/sqlmodedb.t-schema.sql (100%) rename {br => lightning}/tests/lightning_sqlmode/data/sqlmodedb.t.1.sql (100%) rename {br => lightning}/tests/lightning_sqlmode/off.toml (100%) rename {br => lightning}/tests/lightning_sqlmode/on.toml (100%) rename {br => lightning}/tests/lightning_sqlmode/run.sh (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/data/dup-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/data/dup.dup-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/data/dup.dup.sql (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/error.toml (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/ignore.toml (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/replace.toml (100%) rename {br => lightning}/tests/lightning_tidb_duplicate_data/run.sh (100%) rename {br => lightning}/tests/lightning_tidb_rowid/config.toml (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.non_pk-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.non_pk.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.pre_rebase-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.pre_rebase.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc-schema.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc.sql (100%) rename {br => lightning}/tests/lightning_tidb_rowid/run.sh (100%) rename {br => lightning}/tests/lightning_tiflash/config.toml (100%) rename {br => lightning}/tests/lightning_tiflash/run.sh (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/config.toml (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.a-schema.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.1.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.2.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.3.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.b-schema.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.1.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.2.sql (100%) rename {br => lightning}/tests/lightning_tikv_multi_rocksdb/run.sh (97%) rename {br => lightning}/tests/lightning_too_many_columns/config.toml (100%) rename {br => lightning}/tests/lightning_too_many_columns/data/too_many_columns-schema-create.sql (100%) rename {br => lightning}/tests/lightning_too_many_columns/data/too_many_columns.t-schema.sql (100%) rename {br => lightning}/tests/lightning_too_many_columns/data/too_many_columns.t.0.csv (100%) rename {br => lightning}/tests/lightning_too_many_columns/run.sh (100%) rename {br => lightning}/tests/lightning_tool_135/config.toml (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar1-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar1.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar2-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar2.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar3-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar3.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar4-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar4.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar5-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_135/data/tool_135.bar5.sql (100%) rename {br => lightning}/tests/lightning_tool_135/run.sh (100%) rename {br => lightning}/tests/lightning_tool_1420/config.toml (100%) rename {br => lightning}/tests/lightning_tool_1420/data/EE1420-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tool_1420/data/EE1420.pt_role-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_1420/data/EE1420.pt_role.sql (100%) rename {br => lightning}/tests/lightning_tool_1420/run.sh (100%) rename {br => lightning}/tests/lightning_tool_1472/config.toml (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.notpk-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.notpk.1.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.notpk.2.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.pk-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.pk.1.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/data/EE1472.pk.2.sql (100%) rename {br => lightning}/tests/lightning_tool_1472/run.sh (100%) rename {br => lightning}/tests/lightning_tool_241/config.toml (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc-schema-create.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_alarm_group-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_alarm_group.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_alarm_message_log.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_alarm_receiver-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_config-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_fish_event-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_fish_event.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_report_circular_data-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_report_desc-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_report_summary-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_system_update.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_user_log-schema.sql (100%) rename {br => lightning}/tests/lightning_tool_241/data/qyjc.q_user_log.sql (100%) rename {br => lightning}/tests/lightning_tool_241/run.sh (100%) rename {br => lightning}/tests/lightning_ttl/config.toml (100%) rename {br => lightning}/tests/lightning_ttl/data/ttldb-schema-create.sql (100%) rename {br => lightning}/tests/lightning_ttl/data/ttldb.t1-schema.sql (100%) rename {br => lightning}/tests/lightning_ttl/data/ttldb.t1.0.sql (100%) rename {br => lightning}/tests/lightning_ttl/run.sh (100%) rename {br => lightning}/tests/lightning_unused_config_keys/config.toml (100%) rename {br => lightning}/tests/lightning_unused_config_keys/data/unused_config_keys-schema-create.sql (100%) rename {br => lightning}/tests/lightning_unused_config_keys/run.sh (100%) rename {br => lightning}/tests/lightning_various_types/config.toml (100%) rename {br => lightning}/tests/lightning_various_types/data/vt-schema-create.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.bigint-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.bigint.0.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.binary-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.binary.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.bit-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.bit.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.char-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.char.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.datetime-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.datetime.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.decimal-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.decimal.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.double-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.double.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.empty_strings-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.empty_strings.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.enum-set-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.enum-set.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.json-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.json.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.precise_types-schema.sql (100%) rename {br => lightning}/tests/lightning_various_types/data/vt.precise_types.sql (100%) rename {br => lightning}/tests/lightning_various_types/run.sh (100%) rename {br => lightning}/tests/lightning_view/config.toml (100%) rename {br => lightning}/tests/lightning_view/data/db0-schema-create.sql (100%) rename {br => lightning}/tests/lightning_view/data/db0.v2-schema-view.sql (100%) rename {br => lightning}/tests/lightning_view/data/db0.v2-schema.sql (100%) rename {br => lightning}/tests/lightning_view/data/db1-schema-create.sql (100%) rename {br => lightning}/tests/lightning_view/data/db1.tbl-schema.sql (100%) rename {br => lightning}/tests/lightning_view/data/db1.tbl.0.sql (100%) rename {br => lightning}/tests/lightning_view/data/db1.v1-schema-view.sql (100%) rename {br => lightning}/tests/lightning_view/data/db1.v1-schema.sql (100%) rename {br => lightning}/tests/lightning_view/run.sh (100%) rename {br => lightning}/tests/lightning_write_batch/kv-count.toml (100%) rename {br => lightning}/tests/lightning_write_batch/kv-size.toml (100%) rename {br => lightning}/tests/lightning_write_batch/run.sh (100%) rename {br => lightning}/tests/lightning_write_limit/config.toml (100%) rename {br => lightning}/tests/lightning_write_limit/run.sh (100%) create mode 100755 lightning/tests/run.sh rename {br => lightning}/tests/run_group_lightning_tests.sh (88%) rename {br/tests => tests}/_utils/br_tikv_outage_util (69%) rename {br/tests => tests}/_utils/check_cluster_version (100%) rename {br/tests => tests}/_utils/check_contains (100%) rename {br/tests => tests}/_utils/check_not_contains (100%) rename {br/tests => tests/_utils}/config/ipsan.cnf (100%) rename {br/tests => tests/_utils}/config/rootca.conf (100%) rename {br/tests => tests}/_utils/generate_certs (90%) rename {br/tests => tests}/_utils/make_tiflash_config (66%) rename {br/tests => tests}/_utils/read_result (100%) rename {br/tests => tests}/_utils/run_br (100%) rename {br/tests => tests}/_utils/run_cdc (100%) rename {br/tests => tests}/_utils/run_curl (100%) rename {br/tests => tests}/_utils/run_lightning (87%) rename {br/tests => tests}/_utils/run_lightning_ctl (96%) rename {br/tests => tests}/_utils/run_pd_ctl (100%) rename {br/tests => tests}/_utils/run_services (96%) rename {br/tests => tests}/_utils/run_sql (100%) rename {br/tests => tests}/_utils/run_sql_file (100%) rename {br/tests => tests}/_utils/run_sql_in_container (100%) rename {br/tests/br_gcs => tools/fake-oauth}/BUILD.bazel (51%) rename br/tests/br_gcs/oauth.go => tools/fake-oauth/main.go (100%) rename {br/tests/lightning_checkpoint_parquet => tools/gen-parquet}/BUILD.bazel (55%) rename br/tests/lightning_checkpoint_parquet/parquet.go => tools/gen-parquet/main.go (70%) diff --git a/.github/licenserc.yml b/.github/licenserc.yml index 8bbe8d40536e0..47612a058679a 100644 --- a/.github/licenserc.yml +++ b/.github/licenserc.yml @@ -45,6 +45,7 @@ header: - "pkg/tidb-binlog/proto/go-binlog/secondary_binlog.pb.go" - "**/*.sql" - "**/*.csv" + - "**/*.CSV" - "**/*.parquet" - "**/*.zst" - ".bazelversion" @@ -63,4 +64,5 @@ header: - "pkg/lightning/manual/manual_nocgo.go" - "pkg/lightning/mydump/bytes.go" - "pkg/lightning/mydump/examples/metadata" + - "tests/_utils/config/" comment: on-failure diff --git a/Makefile b/Makefile index ee2728ad8eb01..c1dcc0537756e 100644 --- a/Makefile +++ b/Makefile @@ -329,13 +329,9 @@ build_lightning: build_lightning-ctl: CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_CTL_BIN) ./lightning/cmd/tidb-lightning-ctl -build_for_br_integration_test: +build_for_lightning_integration_test: @make failpoint-enable ($(GOTEST) -c -cover -covermode=count \ - -coverpkg=github.com/pingcap/tidb/br/... \ - -o $(BR_BIN).test \ - github.com/pingcap/tidb/br/cmd/br && \ - $(GOTEST) -c -cover -covermode=count \ -coverpkg=github.com/pingcap/tidb/lightning/...,github.com/pingcap/tidb/pkg/lightning/... \ -o $(LIGHTNING_BIN).test \ github.com/pingcap/tidb/lightning/cmd/tidb-lightning && \ @@ -343,12 +339,25 @@ build_for_br_integration_test: -coverpkg=github.com/pingcap/tidb/lightning/...,github.com/pingcap/tidb/pkg/lightning/... \ -o $(LIGHTNING_CTL_BIN).test \ github.com/pingcap/tidb/lightning/cmd/tidb-lightning-ctl && \ + $(GOBUILD) $(RACE_FLAG) -o bin/fake-oauth tools/fake-oauth/main.go && \ + $(GOBUILD) $(RACE_FLAG) -o bin/parquet_gen tools/gen-parquet/main.go \ + ) || (make failpoint-disable && exit 1) + @make failpoint-disable + +lightning_integration_test: build_lightning build_for_lightning_integration_test + lightning/tests/run.sh + +build_for_br_integration_test: + @make failpoint-enable + ($(GOTEST) -c -cover -covermode=count \ + -coverpkg=github.com/pingcap/tidb/br/... \ + -o $(BR_BIN).test \ + github.com/pingcap/tidb/br/cmd/br && \ $(GOBUILD) $(RACE_FLAG) -o bin/locker br/tests/br_key_locked/*.go && \ $(GOBUILD) $(RACE_FLAG) -o bin/gc br/tests/br_z_gc_safepoint/*.go && \ - $(GOBUILD) $(RACE_FLAG) -o bin/oauth br/tests/br_gcs/*.go && \ + $(GOBUILD) $(RACE_FLAG) -o bin/fake-oauth tools/fake-oauth/main.go && \ $(GOBUILD) $(RACE_FLAG) -o bin/rawkv br/tests/br_rawkv/*.go && \ - $(GOBUILD) $(RACE_FLAG) -o bin/txnkv br/tests/br_txn/*.go && \ - $(GOBUILD) $(RACE_FLAG) -o bin/parquet_gen br/tests/lightning_checkpoint_parquet/*.go \ + $(GOBUILD) $(RACE_FLAG) -o bin/txnkv br/tests/br_txn/*.go \ ) || (make failpoint-disable && exit 1) @make failpoint-disable diff --git a/br/tests/README.md b/br/tests/README.md index 4c93237b88535..4bdeed264e8da 100644 --- a/br/tests/README.md +++ b/br/tests/README.md @@ -89,8 +89,8 @@ After executing the tests, run `make br_coverage` to get a coverage report at 1. New integration tests can be written as shell scripts in `tests/TEST_NAME/run.sh`. The script should exit with a nonzero error code on failure. -2. Add TEST_NAME to existing group in [run_group_br_tests.sh](./run_group_br_tests.sh)(Recommended) or [run_group_lightning_tests.sh](./run_group_lightning_tests.sh)(Recommended), or add a new group for it. -3. If you add a new group, the name of the new group must be added to CI [br-integration-test](https://github.com/PingCAP-QE/ci/blob/main/pipelines/pingcap/tidb/latest/pull_br_integration_test.groovy) or [lightning-integration-test](https://github.com/PingCAP-QE/ci/blob/main/pipelines/pingcap/tidb/latest/pull_lightning_integration_test.groovy). +2. Add TEST_NAME to existing group in [run_group_br_tests.sh](./run_group_br_tests.sh)(Recommended), or add a new group for it. +3. If you add a new group, the name of the new group must be added to CI [br-integration-test](https://github.com/PingCAP-QE/ci/blob/main/pipelines/pingcap/tidb/latest/pull_br_integration_test.groovy). Several convenient commands are provided: diff --git a/br/tests/br_charset_gbk/run.sh b/br/tests/br_charset_gbk/run.sh index 5fba35411142c..3333b25a5bf26 100755 --- a/br/tests/br_charset_gbk/run.sh +++ b/br/tests/br_charset_gbk/run.sh @@ -19,7 +19,7 @@ check_cluster_version 5 4 0 'new collation' || { echo 'TiDB does not support new set -eu cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -. $cur/../_utils/run_services +. $UTILS_DIR/run_services # restart cluster with new collation enabled start_services --tidb-cfg $cur/tidb-new-collation.toml diff --git a/br/tests/br_check_new_collocation_enable/run.sh b/br/tests/br_check_new_collocation_enable/run.sh index cb264247b2a99..3f8429cebded0 100755 --- a/br/tests/br_check_new_collocation_enable/run.sh +++ b/br/tests/br_check_new_collocation_enable/run.sh @@ -18,7 +18,7 @@ set -eu DB="$TEST_NAME" cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -source $cur/../_utils/run_services +source $UTILS_DIR/run_services PROGRESS_FILE="$TEST_DIR/progress_unit_file" rm -rf $PROGRESS_FILE diff --git a/br/tests/br_full_cluster_restore/run.sh b/br/tests/br_full_cluster_restore/run.sh index f05b28deeabdc..f39865a9441c4 100644 --- a/br/tests/br_full_cluster_restore/run.sh +++ b/br/tests/br_full_cluster_restore/run.sh @@ -8,7 +8,7 @@ backup_dir=$TEST_DIR/keep_${TEST_NAME} incr_backup_dir=${backup_dir}_inc res_file="$TEST_DIR/sql_res.$TEST_NAME.txt" br_log_file=$TEST_DIR/br.log -source $CUR/../_utils/run_services +source $UTILS_DIR/run_services function run_sql_as() { user=$1 diff --git a/br/tests/br_gcs/run.sh b/br/tests/br_gcs/run.sh index 9f9e63921a578..c71cecf5c0ccd 100755 --- a/br/tests/br_gcs/run.sh +++ b/br/tests/br_gcs/run.sh @@ -37,11 +37,11 @@ while ! curl -o /dev/null -v -s "http://$GCS_HOST:$GCS_PORT/"; do done # start oauth server -bin/oauth & +bin/fake-oauth & stop_gcs() { killall -9 fake-gcs-server || true - killall -9 oauth || true + killall -9 fake-oauth || true } trap stop_gcs EXIT diff --git a/br/tests/br_incompatible_tidb_config/run.sh b/br/tests/br_incompatible_tidb_config/run.sh index a6bdf089ce698..973e54da74537 100755 --- a/br/tests/br_incompatible_tidb_config/run.sh +++ b/br/tests/br_incompatible_tidb_config/run.sh @@ -17,7 +17,7 @@ set -eux cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -source $cur/../_utils/run_services +source $UTILS_DIR/run_services DB="$TEST_NAME" diff --git a/br/tests/br_rawkv/run.sh b/br/tests/br_rawkv/run.sh index de7e2b702868b..ed7dc7804f88c 100755 --- a/br/tests/br_rawkv/run.sh +++ b/br/tests/br_rawkv/run.sh @@ -17,7 +17,7 @@ set -eux # restart service without tiflash -source $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../_utils/run_services +source $UTILS_DIR/run_services start_services --no-tiflash BACKUP_DIR=$TEST_DIR/"raw_backup" diff --git a/br/tests/br_txn/run.sh b/br/tests/br_txn/run.sh index 8b15f78764af4..ff98bcc8fdb7d 100755 --- a/br/tests/br_txn/run.sh +++ b/br/tests/br_txn/run.sh @@ -17,7 +17,7 @@ set -eux # restart service without tiflash -source $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../_utils/run_services +source $UTILS_DIR/run_services start_services --no-tiflash BACKUP_DIR=$TEST_DIR/"txn_backup" diff --git a/br/tests/config/root.cert b/br/tests/config/root.cert deleted file mode 100644 index 5f220f79bd429..0000000000000 --- a/br/tests/config/root.cert +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIBKDCB26ADAgECAhB6vebGMUfKnmBKyqoApRSOMAUGAytlcDAbMRkwFwYDVQQD -DBByb290QHBsYXkubWluLmlvMB4XDTIwMDQzMDE1MjIyNVoXDTI1MDQyOTE1MjIy -NVowGzEZMBcGA1UEAwwQcm9vdEBwbGF5Lm1pbi5pbzAqMAUGAytlcAMhALzn735W -fmSH/ghKs+4iPWziZMmWdiWr/sqvqeW+WwSxozUwMzAOBgNVHQ8BAf8EBAMCB4Aw -EwYDVR0lBAwwCgYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAFBgMrZXADQQDZOrGK -b2ATkDlu2pTcP3LyhSBDpYh7V4TvjRkBTRgjkacCzwFLm+mh+7US8V4dBpIDsJ4u -uWoF0y6vbLVGIlkG ------END CERTIFICATE----- diff --git a/br/tests/config/root.key b/br/tests/config/root.key deleted file mode 100644 index 53a47e25da515..0000000000000 --- a/br/tests/config/root.key +++ /dev/null @@ -1,3 +0,0 @@ ------BEGIN PRIVATE KEY----- -MC4CAQAwBQYDK2VwBCIEID9E7FSYWrMD+VjhI6q545cYT9YOyFxZb7UnjEepYDRc ------END PRIVATE KEY----- diff --git a/br/tests/lightning_checksum_mismatch/run.sh b/br/tests/lightning_checksum_mismatch/run.sh deleted file mode 100755 index 82a2500c398d4..0000000000000 --- a/br/tests/lightning_checksum_mismatch/run.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -eux - -CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) - -run_lightning --config "$CUR/config1.toml" 2>&1 | grep -q "checksum mismatched remote vs local" - -run_sql 'DROP DATABASE IF EXISTS cm' -run_lightning --config "$CUR/config2.toml" 2>&1 | grep -q "checksum mismatched remote vs local" - -run_sql 'DROP DATABASE IF EXISTS cm' -run_lightning --config "$CUR/config3.toml" 2>&1 | grep -q "checksum mismatched remote vs local" diff --git a/br/tests/lightning_cmdline_override/run.sh b/br/tests/lightning_cmdline_override/run.sh deleted file mode 100755 index 59e8648dd5000..0000000000000 --- a/br/tests/lightning_cmdline_override/run.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -eux - -CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) - -run_lightning \ - -L info \ - --log-file "$TEST_DIR/lightning.log" \ - --tidb-host 127.0.0.1 \ - --tidb-port 4000 \ - --tidb-user root \ - --tidb-status 10080 \ - --pd-urls 127.0.0.1:2379 \ - -d "$CUR/data" \ - --backend 'tidb' - -run_sql 'SELECT * FROM cmdline_override.t' -check_contains 'a: 15' diff --git a/br/tests/lightning_new_collation/tidb-new-collation.toml b/br/tests/lightning_new_collation/tidb-new-collation.toml deleted file mode 100644 index c6ec963671953..0000000000000 --- a/br/tests/lightning_new_collation/tidb-new-collation.toml +++ /dev/null @@ -1,10 +0,0 @@ -# config of tidb -new_collations_enabled_on_first_bootstrap = true - -[security] -ssl-ca = "/tmp/backup_restore_test/certs/ca.pem" -ssl-cert = "/tmp/backup_restore_test/certs/tidb.pem" -ssl-key = "/tmp/backup_restore_test/certs/tidb.key" -cluster-ssl-ca = "/tmp/backup_restore_test/certs/ca.pem" -cluster-ssl-cert = "/tmp/backup_restore_test/certs/tidb.pem" -cluster-ssl-key = "/tmp/backup_restore_test/certs/tidb.key" diff --git a/br/tests/lightning_parquet/data/test/test.customer/_SUCCESS b/br/tests/lightning_parquet/data/test/test.customer/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.district/_SUCCESS b/br/tests/lightning_parquet/data/test/test.district/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.history/_SUCCESS b/br/tests/lightning_parquet/data/test/test.history/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.item/_SUCCESS b/br/tests/lightning_parquet/data/test/test.item/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.new_order/_SUCCESS b/br/tests/lightning_parquet/data/test/test.new_order/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.order_line/_SUCCESS b/br/tests/lightning_parquet/data/test/test.order_line/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.orders/_SUCCESS b/br/tests/lightning_parquet/data/test/test.orders/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.stock/_SUCCESS b/br/tests/lightning_parquet/data/test/test.stock/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_parquet/data/test/test.warehouse/_SUCCESS b/br/tests/lightning_parquet/data/test/test.warehouse/_SUCCESS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/br/tests/lightning_routes_panic/run.sh b/br/tests/lightning_routes_panic/run.sh deleted file mode 100755 index 37661999b3320..0000000000000 --- a/br/tests/lightning_routes_panic/run.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# Basic check for whether routing rules work - -set -eux - -run_sql 'DROP DATABASE IF EXISTS test1;' -run_sql 'DROP DATABASE IF EXISTS test;' - -run_sql 'CREATE DATABASE test1;' -run_sql 'CREATE DATABASE test;' -run_sql 'CREATE TABLE test1.dump_test (x real primary key);' -run_sql 'CREATE TABLE test.u (x real primary key);' - -run_lightning - -run_sql 'SELECT sum(x) FROM test.u;' -check_contains 'sum(x): 43' diff --git a/br/tests/run.sh b/br/tests/run.sh index a70cd28ffa6f1..67248a9e018d1 100755 --- a/br/tests/run.sh +++ b/br/tests/run.sh @@ -16,11 +16,16 @@ set -eu CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) -export PATH="$PATH:$CUR/../../bin:$CUR/../bin:$CUR/_utils" +export UTILS_DIR="$CUR/../../tests/_utils" +export PATH="$PATH:$CUR/../../bin:$CUR/../bin:$UTILS_DIR" export TEST_DIR=/tmp/backup_restore_test export COV_DIR="/tmp/group_cover" mkdir -p $COV_DIR || true -source $CUR/_utils/run_services +export TIDB_CONFIG="$CUR/config/tidb.toml" +export TIKV_CONFIG="$CUR/config/tikv.toml" +export PD_CONFIG="$CUR/config/pd.toml" +export TESTS_ROOT="$CUR" +source $UTILS_DIR/run_services # Create COV_DIR if not exists if [ -d "$COV_DIR" ]; then diff --git a/lightning/README.md b/lightning/README.md index ef7ff508876c8..7329f478270cd 100644 --- a/lightning/README.md +++ b/lightning/README.md @@ -25,9 +25,7 @@ When TiDB-Lightning is built successfully, you can find binary in the `bin` dire ## Running tests -See [this document](../br/tests/README.md) for how to run integration tests. - -Due to history reasons, BR and TiDB-Lightning share the same test directory. You can find the test cases in the [`tests`](../br/tests) directory. +See [this document](../lightning/tests/README.md) for how to run integration tests. ## Quick start See [Quick Start for TiDB Lightning](https://docs.pingcap.com/tidb/stable/get-started-with-tidb-lightning). diff --git a/lightning/tests/README.md b/lightning/tests/README.md new file mode 100644 index 0000000000000..ea9b2698d7924 --- /dev/null +++ b/lightning/tests/README.md @@ -0,0 +1,64 @@ +# Integration tests + +This folder contains all tests which relies on external processes such as TiDB. + +## Preparations + +1. The following executables must be copied or linked into these locations: + + * `bin/tidb-server` + * `bin/tikv-server` + * `bin/pd-server` + * `bin/pd-ctl` + * `bin/minio` + * `bin/mc` + * `bin/tiflash` + + The versions must be ≥2.1.0. + + What's more, there must be dynamic link library for TiFlash, see make target `bin` to learn more. + You can install most of dependencies by running `download_tools.sh`. + +2. `make build_for_lightning_integration_test` + +3. The following programs must be installed: + + * `mysql` (the CLI client) + * `curl` + * `openssl` + * `wget` + * `lsof` + +4. The user executing the tests must have permission to create the folder + `/tmp/lightning_test`. All test artifacts will be written into this folder. + +## Running + +Run `make lightning_integration_test` to execute all the integration tests. +- Logs will be written into `/tmp/lightning_test` directory. + +Run `tests/run.sh --debug` to pause immediately after all servers are started. + +If you only want to run some tests, you can use: +```shell +TEST_NAME="lightning_gcs lightning_view" lightning/tests/run.sh +``` + +Case names are separated by spaces. + +## Writing new tests + +1. New integration tests can be written as shell scripts in `tests/TEST_NAME/run.sh`. + - `TEST_NAME` should start with `lightning_`. + - The script should exit with a nonzero error code on failure. +2. Add TEST_NAME to existing group in [run_group_lightning_tests.sh](./run_group_lightning_tests.sh)(Recommended), or add a new group for it. +3. If you add a new group, the name of the new group must be added to CI [lightning-integration-test](https://github.com/PingCAP-QE/ci/blob/main/pipelines/pingcap/tidb/latest/pull_lightning_integration_test.groovy). + +Several convenient commands are provided in [utils](../../tests/_utils/): + +* `run_sql ` — Executes an SQL query on the TiDB database +* `run_lightning [CONFIG]` — Starts `tidb-lightning` using `tests/TEST_NAME/CONFIG.toml` +* `check_contains ` — Checks if the previous `run_sql` result contains the given text + (in `-E` format) +* `check_not_contains ` — Checks if the previous `run_sql` result does not contain the given + text (in `-E` format) diff --git a/lightning/tests/config/pd.toml b/lightning/tests/config/pd.toml new file mode 100644 index 0000000000000..bc9f064451512 --- /dev/null +++ b/lightning/tests/config/pd.toml @@ -0,0 +1,10 @@ +lease = 360 +tso-save-interval = "360s" + +[replication] +enable-placement-rules = true + +[security] +cacert-path = "/tmp/lightning_test/certs/ca.pem" +cert-path = "/tmp/lightning_test/certs/pd.pem" +key-path = "/tmp/lightning_test/certs/pd.key" diff --git a/lightning/tests/config/tidb.toml b/lightning/tests/config/tidb.toml new file mode 100644 index 0000000000000..5e05c83f94e90 --- /dev/null +++ b/lightning/tests/config/tidb.toml @@ -0,0 +1,19 @@ +# config of tidb + +# Schema lease duration +# There are lot of ddl in the tests, setting this +# to 360s to test whther BR is gracefully shutdown. +lease = "360s" +[security] +ssl-ca = "/tmp/lightning_test/certs/ca.pem" +ssl-cert = "/tmp/lightning_test/certs/tidb.pem" +ssl-key = "/tmp/lightning_test/certs/tidb.key" +cluster-ssl-ca = "/tmp/lightning_test/certs/ca.pem" +cluster-ssl-cert = "/tmp/lightning_test/certs/tidb.pem" +cluster-ssl-key = "/tmp/lightning_test/certs/tidb.key" + +# experimental section controls the features that are still experimental: their semantics, +# interfaces are subject to change, using these features in the production environment is not recommended. +[experimental] +# enable creating expression index. +allow-expression-index = true diff --git a/br/tests/config/tikv-multi-rocksdb.toml b/lightning/tests/config/tikv-multi-rocksdb.toml similarity index 69% rename from br/tests/config/tikv-multi-rocksdb.toml rename to lightning/tests/config/tikv-multi-rocksdb.toml index c75c065da37b7..e82a2c30d620e 100644 --- a/br/tests/config/tikv-multi-rocksdb.toml +++ b/lightning/tests/config/tikv-multi-rocksdb.toml @@ -1,7 +1,7 @@ # config of tikv [storage] reserve-space = "1KB" -data-dir = "/tmp/backup_restore_test/tikv1/" +data-dir = "/tmp/lightning_test/tikv1/" engine = "partitioned-raft-kv" [coprocessor] @@ -24,6 +24,6 @@ pd-heartbeat-tick-interval = "1s" hibernate-regions-compatible=false [security] -ca-path = "/tmp/backup_restore_test/certs/ca.pem" -cert-path = "/tmp/backup_restore_test/certs/tikv.pem" -key-path = "/tmp/backup_restore_test/certs/tikv.key" +ca-path = "/tmp/lightning_test/certs/ca.pem" +cert-path = "/tmp/lightning_test/certs/tikv.pem" +key-path = "/tmp/lightning_test/certs/tikv.key" diff --git a/lightning/tests/config/tikv.toml b/lightning/tests/config/tikv.toml new file mode 100644 index 0000000000000..29079dbbff53e --- /dev/null +++ b/lightning/tests/config/tikv.toml @@ -0,0 +1,35 @@ +# config of tikv +[storage] +reserve-space = "1KB" +data-dir = "/tmp/lightning_test/tikv1/" + +[coprocessor] +region-max-keys = 100 +region-split-keys = 60 + +[rocksdb] +max-open-files = 4096 +[raftdb] +max-open-files = 4096 + +[raftstore] +# true (default value) for high reliability, this can prevent data loss when power failure. +sync-log = false +capacity = "10GB" +# Speed up TiKV region heartbeat +pd-heartbeat-tick-interval = "1s" + +[cdc] +hibernate-regions-compatible=false + +[security] +ca-path = "/tmp/lightning_test/certs/ca.pem" +cert-path = "/tmp/lightning_test/certs/tikv.pem" +key-path = "/tmp/lightning_test/certs/tikv.key" + +[security.encryption] +data-encryption-method = "aes256-ctr" + +[security.encryption.master-key] +type = "file" +path = "/tmp/lightning_test/master-key-file" diff --git a/lightning/tests/download_integration_test_binaries.sh b/lightning/tests/download_integration_test_binaries.sh new file mode 100644 index 0000000000000..459a423b2e5b8 --- /dev/null +++ b/lightning/tests/download_integration_test_binaries.sh @@ -0,0 +1,113 @@ +#! /usr/bin/env bash +# +# Copyright 2023 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# help +# download some third party tools for br&lightning integration test +# example: ./download_integration_test_binaries.sh master + + +set -o errexit +set -o pipefail + + +# Specify which branch to be utilized for executing the test, which is +# exclusively accessible when obtaining binaries from +# http://fileserver.pingcap.net. +branch=${1:-master} +file_server_url=${2:-http://fileserver.pingcap.net} + +tikv_importer_branch="release-5.0" +tikv_sha1_url="${file_server_url}/download/refs/pingcap/tikv/${branch}/sha1" +pd_sha1_url="${file_server_url}/download/refs/pingcap/pd/${branch}/sha1" +tiflash_sha1_url="${file_server_url}/download/refs/pingcap/tiflash/${branch}/sha1" +ticdc_sha1_url="${file_server_url}/download/refs/pingcap/ticdc/${branch}/sha1" +tikv_importer_sha1_url="${file_server_url}/download/refs/pingcap/importer/${tikv_importer_branch}/sha1" + +pd_sha1=$(curl "$pd_sha1_url") +tikv_sha1=$(curl "$tikv_sha1_url") +tiflash_sha1=$(curl "$tiflash_sha1_url") +tikv_importer_sha1=$(curl "$tikv_importer_sha1_url") +ticdc_sha1=$(curl "$ticdc_sha1_url") + +# download pd / tikv / tiflash binary build from tibuid multibranch pipeline +pd_download_url="${file_server_url}/download/builds/pingcap/pd/${pd_sha1}/centos7/pd-server.tar.gz" +tikv_download_url="${file_server_url}/download/builds/pingcap/tikv/${tikv_sha1}/centos7/tikv-server.tar.gz" +tiflash_download_url="${file_server_url}/download/builds/pingcap/tiflash/${branch}/${tiflash_sha1}/centos7/tiflash.tar.gz" +tikv_importer_download_url="${file_server_url}/download/builds/pingcap/importer/${tikv_importer_sha1}/centos7/importer.tar.gz" +ticdc_download_url="${file_server_url}/download/builds/pingcap/ticdc/${ticdc_sha1}/centos7/ticdc-linux-amd64.tar.gz" + + +# download some dependencies tool binary from file server +minio_url="${file_server_url}/download/builds/minio/minio/RELEASE.2020-02-27T00-23-05Z/minio" +go_ycsb_url="${file_server_url}/download/builds/pingcap/go-ycsb/test-br/go-ycsb" +minio_cli_url="${file_server_url}/download/builds/minio/minio/RELEASE.2020-02-27T00-23-05Z/mc" +kes_url="${file_server_url}/download/kes" +fake_gcs_server_url="${file_server_url}/download/builds/fake-gcs-server" +brv_url="${file_server_url}/download/builds/brv4.0.8" + +set -o nounset + +# See https://misc.flogisoft.com/bash/tip_colors_and_formatting. +color-green() { # Green + echo -e "\x1B[1;32m${*}\x1B[0m" +} + +function download() { + local url=$1 + local file_name=$2 + local file_path=$3 + if [[ -f "${file_path}" ]]; then + echo "file ${file_name} already exists, skip download" + return + fi + echo "download ${file_name} from ${url}" + wget --no-verbose --retry-connrefused --waitretry=1 -t 3 -O "${file_path}" "${url}" +} + +function main() { + rm -rf third_bin + rm -rf tmp + mkdir third_bin + mkdir tmp + download "$pd_download_url" "pd-server.tar.gz" "tmp/pd-server.tar.gz" + tar -xz -C third_bin 'bin/*' -f tmp/pd-server.tar.gz && mv third_bin/bin/* third_bin/ + download "$tikv_download_url" "tikv-server.tar.gz" "tmp/tikv-server.tar.gz" + tar -xz -C third_bin 'bin/*' -f tmp/tikv-server.tar.gz && mv third_bin/bin/* third_bin/ + download "$tiflash_download_url" "tiflash.tar.gz" "tmp/tiflash.tar.gz" + tar -xz -C third_bin -f tmp/tiflash.tar.gz + mv third_bin/tiflash third_bin/_tiflash + mv third_bin/_tiflash/* third_bin && rm -rf third_bin/_tiflash + download "$tikv_importer_download_url" "importer.tar.gz" "tmp/importer.tar.gz" + tar -xz -C third_bin bin/tikv-importer -f tmp/importer.tar.gz && mv third_bin/bin/tikv-importer third_bin/ + download "$ticdc_download_url" "ticdc-linux-amd64.tar.gz" "tmp/ticdc-linux-amd64.tar.gz" + tar -xz -C third_bin -f tmp/ticdc-linux-amd64.tar.gz && mv third_bin/ticdc-linux-amd64/bin/* third_bin/ && rm -rf third_bin/ticdc-linux-amd64 + + download "$minio_url" "minio" "third_bin/minio" + download "$go_ycsb_url" "go-ycsb" "third_bin/go-ycsb" + download "$minio_cli_url" "mc" "third_bin/mc" + download "$kes_url" "kes" "third_bin/kes" + download "$fake_gcs_server_url" "fake-gcs-server" "third_bin/fake-gcs-server" + download "$brv_url" "brv4.0.8" "third_bin/brv4.0.8" + + chmod +x third_bin/* + rm -rf tmp + rm -rf third_bin/bin + ls -alh third_bin/ +} + +main "$@" + +color-green "Download SUCCESS" diff --git a/br/tests/lightning_add_index/config1.toml b/lightning/tests/lightning_add_index/config1.toml similarity index 100% rename from br/tests/lightning_add_index/config1.toml rename to lightning/tests/lightning_add_index/config1.toml diff --git a/br/tests/lightning_add_index/config2.toml b/lightning/tests/lightning_add_index/config2.toml similarity index 100% rename from br/tests/lightning_add_index/config2.toml rename to lightning/tests/lightning_add_index/config2.toml diff --git a/br/tests/lightning_add_index/data/add_index.multi_indexes-schema.sql b/lightning/tests/lightning_add_index/data/add_index.multi_indexes-schema.sql similarity index 100% rename from br/tests/lightning_add_index/data/add_index.multi_indexes-schema.sql rename to lightning/tests/lightning_add_index/data/add_index.multi_indexes-schema.sql diff --git a/br/tests/lightning_add_index/data/add_index.multi_indexes.0.sql b/lightning/tests/lightning_add_index/data/add_index.multi_indexes.0.sql similarity index 100% rename from br/tests/lightning_add_index/data/add_index.multi_indexes.0.sql rename to lightning/tests/lightning_add_index/data/add_index.multi_indexes.0.sql diff --git a/br/tests/lightning_add_index/data/add_index.non_pk_auto_inc-schema.sql b/lightning/tests/lightning_add_index/data/add_index.non_pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_add_index/data/add_index.non_pk_auto_inc-schema.sql rename to lightning/tests/lightning_add_index/data/add_index.non_pk_auto_inc-schema.sql diff --git a/br/tests/lightning_add_index/data/add_index.non_pk_auto_inc.0.sql b/lightning/tests/lightning_add_index/data/add_index.non_pk_auto_inc.0.sql similarity index 100% rename from br/tests/lightning_add_index/data/add_index.non_pk_auto_inc.0.sql rename to lightning/tests/lightning_add_index/data/add_index.non_pk_auto_inc.0.sql diff --git a/br/tests/lightning_add_index/run.sh b/lightning/tests/lightning_add_index/run.sh similarity index 100% rename from br/tests/lightning_add_index/run.sh rename to lightning/tests/lightning_add_index/run.sh diff --git a/br/tests/lightning_alter_random/config.toml b/lightning/tests/lightning_alter_random/config.toml similarity index 100% rename from br/tests/lightning_alter_random/config.toml rename to lightning/tests/lightning_alter_random/config.toml diff --git a/br/tests/lightning_alter_random/data/alter_random-schema-create.sql b/lightning/tests/lightning_alter_random/data/alter_random-schema-create.sql similarity index 100% rename from br/tests/lightning_alter_random/data/alter_random-schema-create.sql rename to lightning/tests/lightning_alter_random/data/alter_random-schema-create.sql diff --git a/br/tests/lightning_alter_random/data/alter_random.t-schema.sql b/lightning/tests/lightning_alter_random/data/alter_random.t-schema.sql similarity index 100% rename from br/tests/lightning_alter_random/data/alter_random.t-schema.sql rename to lightning/tests/lightning_alter_random/data/alter_random.t-schema.sql diff --git a/br/tests/lightning_alter_random/data/alter_random.t.sql b/lightning/tests/lightning_alter_random/data/alter_random.t.sql similarity index 100% rename from br/tests/lightning_alter_random/data/alter_random.t.sql rename to lightning/tests/lightning_alter_random/data/alter_random.t.sql diff --git a/br/tests/lightning_alter_random/run.sh b/lightning/tests/lightning_alter_random/run.sh similarity index 100% rename from br/tests/lightning_alter_random/run.sh rename to lightning/tests/lightning_alter_random/run.sh diff --git a/br/tests/lightning_auto_columns/config.toml b/lightning/tests/lightning_auto_columns/config.toml similarity index 100% rename from br/tests/lightning_auto_columns/config.toml rename to lightning/tests/lightning_auto_columns/config.toml diff --git a/br/tests/lightning_auto_columns/data/lightning_auto_cols-schema-create.sql b/lightning/tests/lightning_auto_columns/data/lightning_auto_cols-schema-create.sql similarity index 100% rename from br/tests/lightning_auto_columns/data/lightning_auto_cols-schema-create.sql rename to lightning/tests/lightning_auto_columns/data/lightning_auto_cols-schema-create.sql diff --git a/br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr-schema.sql b/lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr-schema.sql similarity index 100% rename from br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr-schema.sql rename to lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr-schema.sql diff --git a/br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr.sql b/lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr.sql similarity index 100% rename from br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr.sql rename to lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_incr.sql diff --git a/br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random-schema.sql b/lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random-schema.sql similarity index 100% rename from br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random-schema.sql rename to lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random-schema.sql diff --git a/br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random.sql b/lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random.sql similarity index 100% rename from br/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random.sql rename to lightning/tests/lightning_auto_columns/data/lightning_auto_cols.t_auto_random.sql diff --git a/br/tests/lightning_auto_columns/run.sh b/lightning/tests/lightning_auto_columns/run.sh similarity index 100% rename from br/tests/lightning_auto_columns/run.sh rename to lightning/tests/lightning_auto_columns/run.sh diff --git a/br/tests/lightning_auto_random_default/config.toml b/lightning/tests/lightning_auto_random_default/config.toml similarity index 100% rename from br/tests/lightning_auto_random_default/config.toml rename to lightning/tests/lightning_auto_random_default/config.toml diff --git a/br/tests/lightning_auto_random_default/data/auto_random-schema-create.sql b/lightning/tests/lightning_auto_random_default/data/auto_random-schema-create.sql similarity index 100% rename from br/tests/lightning_auto_random_default/data/auto_random-schema-create.sql rename to lightning/tests/lightning_auto_random_default/data/auto_random-schema-create.sql diff --git a/br/tests/lightning_auto_random_default/data/auto_random.t-schema.sql b/lightning/tests/lightning_auto_random_default/data/auto_random.t-schema.sql similarity index 100% rename from br/tests/lightning_auto_random_default/data/auto_random.t-schema.sql rename to lightning/tests/lightning_auto_random_default/data/auto_random.t-schema.sql diff --git a/br/tests/lightning_auto_random_default/data/auto_random.t.0.sql b/lightning/tests/lightning_auto_random_default/data/auto_random.t.0.sql similarity index 100% rename from br/tests/lightning_auto_random_default/data/auto_random.t.0.sql rename to lightning/tests/lightning_auto_random_default/data/auto_random.t.0.sql diff --git a/br/tests/lightning_auto_random_default/data/auto_random.t.1.sql b/lightning/tests/lightning_auto_random_default/data/auto_random.t.1.sql similarity index 100% rename from br/tests/lightning_auto_random_default/data/auto_random.t.1.sql rename to lightning/tests/lightning_auto_random_default/data/auto_random.t.1.sql diff --git a/br/tests/lightning_auto_random_default/data2/auto_random.t.000000001.csv b/lightning/tests/lightning_auto_random_default/data2/auto_random.t.000000001.csv similarity index 100% rename from br/tests/lightning_auto_random_default/data2/auto_random.t.000000001.csv rename to lightning/tests/lightning_auto_random_default/data2/auto_random.t.000000001.csv diff --git a/br/tests/lightning_auto_random_default/run.sh b/lightning/tests/lightning_auto_random_default/run.sh similarity index 100% rename from br/tests/lightning_auto_random_default/run.sh rename to lightning/tests/lightning_auto_random_default/run.sh diff --git a/br/tests/lightning_bom_file/config.toml b/lightning/tests/lightning_bom_file/config.toml similarity index 100% rename from br/tests/lightning_bom_file/config.toml rename to lightning/tests/lightning_bom_file/config.toml diff --git a/br/tests/lightning_bom_file/original_data/mytest.testtbl-schema.sql b/lightning/tests/lightning_bom_file/original_data/mytest.testtbl-schema.sql similarity index 100% rename from br/tests/lightning_bom_file/original_data/mytest.testtbl-schema.sql rename to lightning/tests/lightning_bom_file/original_data/mytest.testtbl-schema.sql diff --git a/br/tests/lightning_bom_file/original_data/mytest.testtbl.csv b/lightning/tests/lightning_bom_file/original_data/mytest.testtbl.csv similarity index 100% rename from br/tests/lightning_bom_file/original_data/mytest.testtbl.csv rename to lightning/tests/lightning_bom_file/original_data/mytest.testtbl.csv diff --git a/br/tests/lightning_bom_file/run.sh b/lightning/tests/lightning_bom_file/run.sh similarity index 100% rename from br/tests/lightning_bom_file/run.sh rename to lightning/tests/lightning_bom_file/run.sh diff --git a/br/tests/lightning_character_sets/auto.toml b/lightning/tests/lightning_character_sets/auto.toml similarity index 100% rename from br/tests/lightning_character_sets/auto.toml rename to lightning/tests/lightning_character_sets/auto.toml diff --git a/br/tests/lightning_character_sets/binary.toml b/lightning/tests/lightning_character_sets/binary.toml similarity index 100% rename from br/tests/lightning_character_sets/binary.toml rename to lightning/tests/lightning_character_sets/binary.toml diff --git a/br/tests/lightning_character_sets/gb18030.toml b/lightning/tests/lightning_character_sets/gb18030.toml similarity index 100% rename from br/tests/lightning_character_sets/gb18030.toml rename to lightning/tests/lightning_character_sets/gb18030.toml diff --git a/br/tests/lightning_character_sets/gb18030/charsets-schema-create.sql b/lightning/tests/lightning_character_sets/gb18030/charsets-schema-create.sql similarity index 100% rename from br/tests/lightning_character_sets/gb18030/charsets-schema-create.sql rename to lightning/tests/lightning_character_sets/gb18030/charsets-schema-create.sql diff --git a/br/tests/lightning_character_sets/gb18030/charsets.gb18030-schema.sql b/lightning/tests/lightning_character_sets/gb18030/charsets.gb18030-schema.sql similarity index 100% rename from br/tests/lightning_character_sets/gb18030/charsets.gb18030-schema.sql rename to lightning/tests/lightning_character_sets/gb18030/charsets.gb18030-schema.sql diff --git a/br/tests/lightning_character_sets/gb18030/charsets.gb18030.sql b/lightning/tests/lightning_character_sets/gb18030/charsets.gb18030.sql similarity index 100% rename from br/tests/lightning_character_sets/gb18030/charsets.gb18030.sql rename to lightning/tests/lightning_character_sets/gb18030/charsets.gb18030.sql diff --git a/br/tests/lightning_character_sets/greek.toml b/lightning/tests/lightning_character_sets/greek.toml similarity index 100% rename from br/tests/lightning_character_sets/greek.toml rename to lightning/tests/lightning_character_sets/greek.toml diff --git a/br/tests/lightning_character_sets/greek/charsets-schema-create.sql b/lightning/tests/lightning_character_sets/greek/charsets-schema-create.sql similarity index 100% rename from br/tests/lightning_character_sets/greek/charsets-schema-create.sql rename to lightning/tests/lightning_character_sets/greek/charsets-schema-create.sql diff --git a/br/tests/lightning_character_sets/greek/charsets.greek-schema.sql b/lightning/tests/lightning_character_sets/greek/charsets.greek-schema.sql similarity index 100% rename from br/tests/lightning_character_sets/greek/charsets.greek-schema.sql rename to lightning/tests/lightning_character_sets/greek/charsets.greek-schema.sql diff --git a/br/tests/lightning_character_sets/greek/charsets.greek.sql b/lightning/tests/lightning_character_sets/greek/charsets.greek.sql similarity index 100% rename from br/tests/lightning_character_sets/greek/charsets.greek.sql rename to lightning/tests/lightning_character_sets/greek/charsets.greek.sql diff --git a/br/tests/lightning_character_sets/latin1-only-schema.toml b/lightning/tests/lightning_character_sets/latin1-only-schema.toml similarity index 100% rename from br/tests/lightning_character_sets/latin1-only-schema.toml rename to lightning/tests/lightning_character_sets/latin1-only-schema.toml diff --git a/br/tests/lightning_character_sets/latin1.toml b/lightning/tests/lightning_character_sets/latin1.toml similarity index 100% rename from br/tests/lightning_character_sets/latin1.toml rename to lightning/tests/lightning_character_sets/latin1.toml diff --git a/br/tests/lightning_character_sets/latin1/charsets-schema-create.sql b/lightning/tests/lightning_character_sets/latin1/charsets-schema-create.sql similarity index 100% rename from br/tests/lightning_character_sets/latin1/charsets-schema-create.sql rename to lightning/tests/lightning_character_sets/latin1/charsets-schema-create.sql diff --git a/br/tests/lightning_character_sets/latin1/charsets.latin1-schema.sql b/lightning/tests/lightning_character_sets/latin1/charsets.latin1-schema.sql similarity index 100% rename from br/tests/lightning_character_sets/latin1/charsets.latin1-schema.sql rename to lightning/tests/lightning_character_sets/latin1/charsets.latin1-schema.sql diff --git a/br/tests/lightning_character_sets/latin1/charsets.latin1.csv b/lightning/tests/lightning_character_sets/latin1/charsets.latin1.csv similarity index 100% rename from br/tests/lightning_character_sets/latin1/charsets.latin1.csv rename to lightning/tests/lightning_character_sets/latin1/charsets.latin1.csv diff --git a/br/tests/lightning_character_sets/mixed/charsets-schema-create.sql b/lightning/tests/lightning_character_sets/mixed/charsets-schema-create.sql similarity index 100% rename from br/tests/lightning_character_sets/mixed/charsets-schema-create.sql rename to lightning/tests/lightning_character_sets/mixed/charsets-schema-create.sql diff --git a/br/tests/lightning_character_sets/mixed/charsets.mixed-schema.sql b/lightning/tests/lightning_character_sets/mixed/charsets.mixed-schema.sql similarity index 100% rename from br/tests/lightning_character_sets/mixed/charsets.mixed-schema.sql rename to lightning/tests/lightning_character_sets/mixed/charsets.mixed-schema.sql diff --git a/br/tests/lightning_character_sets/mixed/charsets.mixed.sql b/lightning/tests/lightning_character_sets/mixed/charsets.mixed.sql similarity index 100% rename from br/tests/lightning_character_sets/mixed/charsets.mixed.sql rename to lightning/tests/lightning_character_sets/mixed/charsets.mixed.sql diff --git a/br/tests/lightning_character_sets/run.sh b/lightning/tests/lightning_character_sets/run.sh similarity index 100% rename from br/tests/lightning_character_sets/run.sh rename to lightning/tests/lightning_character_sets/run.sh diff --git a/br/tests/lightning_character_sets/utf8mb4.toml b/lightning/tests/lightning_character_sets/utf8mb4.toml similarity index 100% rename from br/tests/lightning_character_sets/utf8mb4.toml rename to lightning/tests/lightning_character_sets/utf8mb4.toml diff --git a/br/tests/lightning_character_sets/utf8mb4/charsets-schema-create.sql b/lightning/tests/lightning_character_sets/utf8mb4/charsets-schema-create.sql similarity index 100% rename from br/tests/lightning_character_sets/utf8mb4/charsets-schema-create.sql rename to lightning/tests/lightning_character_sets/utf8mb4/charsets-schema-create.sql diff --git a/br/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql b/lightning/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql similarity index 100% rename from br/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql rename to lightning/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql diff --git a/br/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4.sql b/lightning/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4.sql similarity index 100% rename from br/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4.sql rename to lightning/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4.sql diff --git a/br/tests/lightning_check_partial_imported/config.toml b/lightning/tests/lightning_check_partial_imported/config.toml similarity index 100% rename from br/tests/lightning_check_partial_imported/config.toml rename to lightning/tests/lightning_check_partial_imported/config.toml diff --git a/br/tests/lightning_check_partial_imported/data/db01.tbl01-schema.sql b/lightning/tests/lightning_check_partial_imported/data/db01.tbl01-schema.sql similarity index 100% rename from br/tests/lightning_check_partial_imported/data/db01.tbl01-schema.sql rename to lightning/tests/lightning_check_partial_imported/data/db01.tbl01-schema.sql diff --git a/br/tests/lightning_check_partial_imported/data/db01.tbl01.csv b/lightning/tests/lightning_check_partial_imported/data/db01.tbl01.csv similarity index 100% rename from br/tests/lightning_check_partial_imported/data/db01.tbl01.csv rename to lightning/tests/lightning_check_partial_imported/data/db01.tbl01.csv diff --git a/br/tests/lightning_check_partial_imported/run.sh b/lightning/tests/lightning_check_partial_imported/run.sh similarity index 100% rename from br/tests/lightning_check_partial_imported/run.sh rename to lightning/tests/lightning_check_partial_imported/run.sh diff --git a/br/tests/lightning_checkpoint/config.toml b/lightning/tests/lightning_checkpoint/config.toml similarity index 100% rename from br/tests/lightning_checkpoint/config.toml rename to lightning/tests/lightning_checkpoint/config.toml diff --git a/br/tests/lightning_checkpoint/run.sh b/lightning/tests/lightning_checkpoint/run.sh similarity index 100% rename from br/tests/lightning_checkpoint/run.sh rename to lightning/tests/lightning_checkpoint/run.sh diff --git a/br/tests/lightning_checkpoint_chunks/config.toml b/lightning/tests/lightning_checkpoint_chunks/config.toml similarity index 100% rename from br/tests/lightning_checkpoint_chunks/config.toml rename to lightning/tests/lightning_checkpoint_chunks/config.toml diff --git a/br/tests/lightning_checkpoint_chunks/file.toml b/lightning/tests/lightning_checkpoint_chunks/file.toml similarity index 84% rename from br/tests/lightning_checkpoint_chunks/file.toml rename to lightning/tests/lightning_checkpoint_chunks/file.toml index fc919f637bb5b..f9efffab9ea4d 100644 --- a/br/tests/lightning_checkpoint_chunks/file.toml +++ b/lightning/tests/lightning_checkpoint_chunks/file.toml @@ -8,7 +8,7 @@ backend = "local" enable = true schema = "tidb_lightning_checkpoint_test_cpch" driver = "file" -dsn = "/tmp/backup_restore_test/cpch.pb" +dsn = "/tmp/lightning_test/cpch.pb" keep-after-success = true [post-restore] diff --git a/br/tests/lightning_checkpoint_chunks/run.sh b/lightning/tests/lightning_checkpoint_chunks/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_chunks/run.sh rename to lightning/tests/lightning_checkpoint_chunks/run.sh diff --git a/br/tests/lightning_checkpoint_columns/config.toml b/lightning/tests/lightning_checkpoint_columns/config.toml similarity index 100% rename from br/tests/lightning_checkpoint_columns/config.toml rename to lightning/tests/lightning_checkpoint_columns/config.toml diff --git a/br/tests/lightning_checkpoint_columns/run.sh b/lightning/tests/lightning_checkpoint_columns/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_columns/run.sh rename to lightning/tests/lightning_checkpoint_columns/run.sh diff --git a/br/tests/lightning_checkpoint_dirty_tableid/data/cpdt-schema-create.sql b/lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/data/cpdt-schema-create.sql rename to lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt-schema-create.sql diff --git a/br/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t-schema.sql b/lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t-schema.sql rename to lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t-schema.sql diff --git a/br/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t.sql b/lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t.sql similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t.sql rename to lightning/tests/lightning_checkpoint_dirty_tableid/data/cpdt.t.sql diff --git a/br/tests/lightning_checkpoint_dirty_tableid/file.toml b/lightning/tests/lightning_checkpoint_dirty_tableid/file.toml similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/file.toml rename to lightning/tests/lightning_checkpoint_dirty_tableid/file.toml diff --git a/br/tests/lightning_checkpoint_dirty_tableid/mysql.toml b/lightning/tests/lightning_checkpoint_dirty_tableid/mysql.toml similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/mysql.toml rename to lightning/tests/lightning_checkpoint_dirty_tableid/mysql.toml diff --git a/br/tests/lightning_checkpoint_dirty_tableid/run.sh b/lightning/tests/lightning_checkpoint_dirty_tableid/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_dirty_tableid/run.sh rename to lightning/tests/lightning_checkpoint_dirty_tableid/run.sh diff --git a/br/tests/lightning_checkpoint_engines/config.toml b/lightning/tests/lightning_checkpoint_engines/config.toml similarity index 100% rename from br/tests/lightning_checkpoint_engines/config.toml rename to lightning/tests/lightning_checkpoint_engines/config.toml diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng-schema-create.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng-schema-create.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng-schema-create.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.a-schema.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.a-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.a-schema.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.a-schema.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.a.1.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.a.1.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.a.1.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.a.1.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.a.2.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.a.2.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.a.2.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.a.2.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.a.3.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.a.3.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.a.3.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.a.3.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.b-schema.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.b-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.b-schema.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.b-schema.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.b.1.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.b.1.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.b.1.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.b.1.sql diff --git a/br/tests/lightning_checkpoint_engines/data/cpeng.b.2.sql b/lightning/tests/lightning_checkpoint_engines/data/cpeng.b.2.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines/data/cpeng.b.2.sql rename to lightning/tests/lightning_checkpoint_engines/data/cpeng.b.2.sql diff --git a/br/tests/lightning_checkpoint_engines/mysql.toml b/lightning/tests/lightning_checkpoint_engines/mysql.toml similarity index 100% rename from br/tests/lightning_checkpoint_engines/mysql.toml rename to lightning/tests/lightning_checkpoint_engines/mysql.toml diff --git a/br/tests/lightning_checkpoint_engines/run.sh b/lightning/tests/lightning_checkpoint_engines/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_engines/run.sh rename to lightning/tests/lightning_checkpoint_engines/run.sh diff --git a/br/tests/lightning_checkpoint_engines_order/config.toml b/lightning/tests/lightning_checkpoint_engines_order/config.toml similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/config.toml rename to lightning/tests/lightning_checkpoint_engines_order/config.toml diff --git a/br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint-schema-create.sql b/lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint-schema-create.sql rename to lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint-schema-create.sql diff --git a/br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t-schema.sql b/lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t-schema.sql rename to lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t-schema.sql diff --git a/br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.0.sql b/lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.0.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.0.sql rename to lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.0.sql diff --git a/br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.1.sql b/lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.1.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.1.sql rename to lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.1.sql diff --git a/br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql b/lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql similarity index 100% rename from br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql rename to lightning/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql diff --git a/br/tests/lightning_checkpoint_engines_order/run.sh b/lightning/tests/lightning_checkpoint_engines_order/run.sh similarity index 75% rename from br/tests/lightning_checkpoint_engines_order/run.sh rename to lightning/tests/lightning_checkpoint_engines_order/run.sh index 2ffae0ae9c82d..a8c321a784caa 100644 --- a/br/tests/lightning_checkpoint_engines_order/run.sh +++ b/lightning/tests/lightning_checkpoint_engines_order/run.sh @@ -1,6 +1,18 @@ #!/bin/sh # -# Copyright 2021 PingCAP, Inc. Licensed under Apache-2.0. +# Copyright 2019 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -eux diff --git a/br/tests/lightning_checkpoint_error_destroy/bad-data/cped-schema-create.sql b/lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/bad-data/cped-schema-create.sql rename to lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped-schema-create.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/bad-data/cped.t-schema.sql b/lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped.t-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/bad-data/cped.t-schema.sql rename to lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped.t-schema.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/bad-data/cped.t.sql b/lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped.t.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/bad-data/cped.t.sql rename to lightning/tests/lightning_checkpoint_error_destroy/bad-data/cped.t.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/file.toml b/lightning/tests/lightning_checkpoint_error_destroy/file.toml similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/file.toml rename to lightning/tests/lightning_checkpoint_error_destroy/file.toml diff --git a/br/tests/lightning_checkpoint_error_destroy/good-data/cped-schema-create.sql b/lightning/tests/lightning_checkpoint_error_destroy/good-data/cped-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/good-data/cped-schema-create.sql rename to lightning/tests/lightning_checkpoint_error_destroy/good-data/cped-schema-create.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/good-data/cped.t-schema.sql b/lightning/tests/lightning_checkpoint_error_destroy/good-data/cped.t-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/good-data/cped.t-schema.sql rename to lightning/tests/lightning_checkpoint_error_destroy/good-data/cped.t-schema.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/good-data/cped.t.sql b/lightning/tests/lightning_checkpoint_error_destroy/good-data/cped.t.sql similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/good-data/cped.t.sql rename to lightning/tests/lightning_checkpoint_error_destroy/good-data/cped.t.sql diff --git a/br/tests/lightning_checkpoint_error_destroy/mysql.toml b/lightning/tests/lightning_checkpoint_error_destroy/mysql.toml similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/mysql.toml rename to lightning/tests/lightning_checkpoint_error_destroy/mysql.toml diff --git a/br/tests/lightning_checkpoint_error_destroy/run.sh b/lightning/tests/lightning_checkpoint_error_destroy/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_error_destroy/run.sh rename to lightning/tests/lightning_checkpoint_error_destroy/run.sh diff --git a/br/tests/lightning_checkpoint_parquet/config.toml b/lightning/tests/lightning_checkpoint_parquet/config.toml similarity index 100% rename from br/tests/lightning_checkpoint_parquet/config.toml rename to lightning/tests/lightning_checkpoint_parquet/config.toml diff --git a/br/tests/lightning_checkpoint_parquet/run.sh b/lightning/tests/lightning_checkpoint_parquet/run.sh similarity index 96% rename from br/tests/lightning_checkpoint_parquet/run.sh rename to lightning/tests/lightning_checkpoint_parquet/run.sh index fe95bebf324f6..1a31d43c06f28 100755 --- a/br/tests/lightning_checkpoint_parquet/run.sh +++ b/lightning/tests/lightning_checkpoint_parquet/run.sh @@ -28,7 +28,7 @@ mkdir -p $DBPATH echo 'CREATE DATABASE cppq_tsr;' > "$DBPATH/cppq_tsr-schema-create.sql" # column "iVal" use for testing column name with upper case is properly handled echo 'CREATE TABLE tbl(iVal INT PRIMARY KEY, s VARCHAR(16));' > "$DBPATH/cppq_tsr.tbl-schema.sql" -bin/parquet_gen --dir $DBPATH --schema cppq_tsr --table tbl --chunk 1 --rows $ROW_COUNT +parquet_gen --dir $DBPATH --schema cppq_tsr --table tbl --chunk 1 --rows $ROW_COUNT # Set the failpoint to kill the lightning instance as soon as one batch data is written PKG="github.com/pingcap/tidb/lightning/pkg/importer" diff --git a/br/tests/lightning_checkpoint_timestamp/config.toml b/lightning/tests/lightning_checkpoint_timestamp/config.toml similarity index 82% rename from br/tests/lightning_checkpoint_timestamp/config.toml rename to lightning/tests/lightning_checkpoint_timestamp/config.toml index a85083e17b78b..490284b3890e2 100644 --- a/br/tests/lightning_checkpoint_timestamp/config.toml +++ b/lightning/tests/lightning_checkpoint_timestamp/config.toml @@ -5,7 +5,7 @@ region-concurrency = 1 enable = true schema = "tidb_lightning_checkpoint_timestamp" driver = "file" -dsn = "/tmp/backup_restore_test/cpts.pb" +dsn = "/tmp/lightning_test/cpts.pb" [tikv-importer] backend = "local" diff --git a/br/tests/lightning_checkpoint_timestamp/data/cpts-schema-create.sql b/lightning/tests/lightning_checkpoint_timestamp/data/cpts-schema-create.sql similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/data/cpts-schema-create.sql rename to lightning/tests/lightning_checkpoint_timestamp/data/cpts-schema-create.sql diff --git a/br/tests/lightning_checkpoint_timestamp/data/cpts.cpts-schema.sql b/lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts-schema.sql similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/data/cpts.cpts-schema.sql rename to lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts-schema.sql diff --git a/br/tests/lightning_checkpoint_timestamp/data/cpts.cpts.1.sql b/lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts.1.sql similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/data/cpts.cpts.1.sql rename to lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts.1.sql diff --git a/br/tests/lightning_checkpoint_timestamp/data/cpts.cpts.2.sql b/lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts.2.sql similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/data/cpts.cpts.2.sql rename to lightning/tests/lightning_checkpoint_timestamp/data/cpts.cpts.2.sql diff --git a/br/tests/lightning_checkpoint_timestamp/mysql.toml b/lightning/tests/lightning_checkpoint_timestamp/mysql.toml similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/mysql.toml rename to lightning/tests/lightning_checkpoint_timestamp/mysql.toml diff --git a/br/tests/lightning_checkpoint_timestamp/run.sh b/lightning/tests/lightning_checkpoint_timestamp/run.sh similarity index 100% rename from br/tests/lightning_checkpoint_timestamp/run.sh rename to lightning/tests/lightning_checkpoint_timestamp/run.sh diff --git a/br/tests/lightning_checksum_mismatch/config1.toml b/lightning/tests/lightning_checksum_mismatch/config1.toml similarity index 100% rename from br/tests/lightning_checksum_mismatch/config1.toml rename to lightning/tests/lightning_checksum_mismatch/config1.toml diff --git a/br/tests/lightning_checksum_mismatch/config2.toml b/lightning/tests/lightning_checksum_mismatch/config2.toml similarity index 100% rename from br/tests/lightning_checksum_mismatch/config2.toml rename to lightning/tests/lightning_checksum_mismatch/config2.toml diff --git a/br/tests/lightning_checksum_mismatch/config3.toml b/lightning/tests/lightning_checksum_mismatch/config3.toml similarity index 100% rename from br/tests/lightning_checksum_mismatch/config3.toml rename to lightning/tests/lightning_checksum_mismatch/config3.toml diff --git a/br/tests/lightning_checksum_mismatch/data/cm-schema-create.sql b/lightning/tests/lightning_checksum_mismatch/data/cm-schema-create.sql similarity index 100% rename from br/tests/lightning_checksum_mismatch/data/cm-schema-create.sql rename to lightning/tests/lightning_checksum_mismatch/data/cm-schema-create.sql diff --git a/br/tests/lightning_checksum_mismatch/data/cm.t-schema.sql b/lightning/tests/lightning_checksum_mismatch/data/cm.t-schema.sql similarity index 100% rename from br/tests/lightning_checksum_mismatch/data/cm.t-schema.sql rename to lightning/tests/lightning_checksum_mismatch/data/cm.t-schema.sql diff --git a/br/tests/lightning_checksum_mismatch/data/cm.t.csv b/lightning/tests/lightning_checksum_mismatch/data/cm.t.csv similarity index 100% rename from br/tests/lightning_checksum_mismatch/data/cm.t.csv rename to lightning/tests/lightning_checksum_mismatch/data/cm.t.csv diff --git a/lightning/tests/lightning_checksum_mismatch/run.sh b/lightning/tests/lightning_checksum_mismatch/run.sh new file mode 100755 index 0000000000000..da2edc42602ca --- /dev/null +++ b/lightning/tests/lightning_checksum_mismatch/run.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eux + +CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) + +run_lightning --config "$CUR/config1.toml" 2>&1 | grep -q "checksum mismatched remote vs local" + +run_sql 'DROP DATABASE IF EXISTS cm' +run_lightning --config "$CUR/config2.toml" 2>&1 | grep -q "checksum mismatched remote vs local" + +run_sql 'DROP DATABASE IF EXISTS cm' +run_lightning --config "$CUR/config3.toml" 2>&1 | grep -q "checksum mismatched remote vs local" diff --git a/br/tests/lightning_cmdline_override/config.toml b/lightning/tests/lightning_cmdline_override/config.toml similarity index 100% rename from br/tests/lightning_cmdline_override/config.toml rename to lightning/tests/lightning_cmdline_override/config.toml diff --git a/br/tests/lightning_cmdline_override/data/cmdline_override-schema-create.sql b/lightning/tests/lightning_cmdline_override/data/cmdline_override-schema-create.sql similarity index 100% rename from br/tests/lightning_cmdline_override/data/cmdline_override-schema-create.sql rename to lightning/tests/lightning_cmdline_override/data/cmdline_override-schema-create.sql diff --git a/br/tests/lightning_cmdline_override/data/cmdline_override.t-schema.sql b/lightning/tests/lightning_cmdline_override/data/cmdline_override.t-schema.sql similarity index 100% rename from br/tests/lightning_cmdline_override/data/cmdline_override.t-schema.sql rename to lightning/tests/lightning_cmdline_override/data/cmdline_override.t-schema.sql diff --git a/br/tests/lightning_cmdline_override/data/cmdline_override.t.sql b/lightning/tests/lightning_cmdline_override/data/cmdline_override.t.sql similarity index 100% rename from br/tests/lightning_cmdline_override/data/cmdline_override.t.sql rename to lightning/tests/lightning_cmdline_override/data/cmdline_override.t.sql diff --git a/lightning/tests/lightning_cmdline_override/run.sh b/lightning/tests/lightning_cmdline_override/run.sh new file mode 100755 index 0000000000000..3f85685aca69c --- /dev/null +++ b/lightning/tests/lightning_cmdline_override/run.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eux + +CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) + +run_lightning \ + -L info \ + --log-file "$TEST_DIR/lightning.log" \ + --tidb-host 127.0.0.1 \ + --tidb-port 4000 \ + --tidb-user root \ + --tidb-status 10080 \ + --pd-urls 127.0.0.1:2379 \ + -d "$CUR/data" \ + --backend 'tidb' + +run_sql 'SELECT * FROM cmdline_override.t' +check_contains 'a: 15' diff --git a/br/tests/lightning_column_permutation/config.toml b/lightning/tests/lightning_column_permutation/config.toml similarity index 100% rename from br/tests/lightning_column_permutation/config.toml rename to lightning/tests/lightning_column_permutation/config.toml diff --git a/br/tests/lightning_column_permutation/data/perm-schema-create.sql b/lightning/tests/lightning_column_permutation/data/perm-schema-create.sql similarity index 100% rename from br/tests/lightning_column_permutation/data/perm-schema-create.sql rename to lightning/tests/lightning_column_permutation/data/perm-schema-create.sql diff --git a/br/tests/lightning_column_permutation/data/perm.test_perm-schema.sql b/lightning/tests/lightning_column_permutation/data/perm.test_perm-schema.sql similarity index 100% rename from br/tests/lightning_column_permutation/data/perm.test_perm-schema.sql rename to lightning/tests/lightning_column_permutation/data/perm.test_perm-schema.sql diff --git a/br/tests/lightning_column_permutation/data/perm.test_perm.0.csv b/lightning/tests/lightning_column_permutation/data/perm.test_perm.0.csv similarity index 100% rename from br/tests/lightning_column_permutation/data/perm.test_perm.0.csv rename to lightning/tests/lightning_column_permutation/data/perm.test_perm.0.csv diff --git a/br/tests/lightning_column_permutation/run.sh b/lightning/tests/lightning_column_permutation/run.sh similarity index 50% rename from br/tests/lightning_column_permutation/run.sh rename to lightning/tests/lightning_column_permutation/run.sh index 8613dd9c915e5..c689f2382273c 100644 --- a/br/tests/lightning_column_permutation/run.sh +++ b/lightning/tests/lightning_column_permutation/run.sh @@ -1,3 +1,18 @@ +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -eu for BACKEND in local tidb; do diff --git a/br/tests/lightning_common_handle/config.toml b/lightning/tests/lightning_common_handle/config.toml similarity index 100% rename from br/tests/lightning_common_handle/config.toml rename to lightning/tests/lightning_common_handle/config.toml diff --git a/br/tests/lightning_common_handle/run.sh b/lightning/tests/lightning_common_handle/run.sh similarity index 100% rename from br/tests/lightning_common_handle/run.sh rename to lightning/tests/lightning_common_handle/run.sh diff --git a/br/tests/lightning_compress/data.gzip/compress-schema-create.sql.gz b/lightning/tests/lightning_compress/data.gzip/compress-schema-create.sql.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress-schema-create.sql.gz rename to lightning/tests/lightning_compress/data.gzip/compress-schema-create.sql.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.empty_strings-schema.sql.gz b/lightning/tests/lightning_compress/data.gzip/compress.empty_strings-schema.sql.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.empty_strings-schema.sql.gz rename to lightning/tests/lightning_compress/data.gzip/compress.empty_strings-schema.sql.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.empty_strings.000000000.csv.gz b/lightning/tests/lightning_compress/data.gzip/compress.empty_strings.000000000.csv.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.empty_strings.000000000.csv.gz rename to lightning/tests/lightning_compress/data.gzip/compress.empty_strings.000000000.csv.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.escapes-schema.sql.gz b/lightning/tests/lightning_compress/data.gzip/compress.escapes-schema.sql.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.escapes-schema.sql.gz rename to lightning/tests/lightning_compress/data.gzip/compress.escapes-schema.sql.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.escapes.000000000.csv.gz b/lightning/tests/lightning_compress/data.gzip/compress.escapes.000000000.csv.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.escapes.000000000.csv.gz rename to lightning/tests/lightning_compress/data.gzip/compress.escapes.000000000.csv.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.multi_rows-schema.sql.gz b/lightning/tests/lightning_compress/data.gzip/compress.multi_rows-schema.sql.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.multi_rows-schema.sql.gz rename to lightning/tests/lightning_compress/data.gzip/compress.multi_rows-schema.sql.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.multi_rows.000000000.csv.gz b/lightning/tests/lightning_compress/data.gzip/compress.multi_rows.000000000.csv.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.multi_rows.000000000.csv.gz rename to lightning/tests/lightning_compress/data.gzip/compress.multi_rows.000000000.csv.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.threads-schema.sql.gz b/lightning/tests/lightning_compress/data.gzip/compress.threads-schema.sql.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.threads-schema.sql.gz rename to lightning/tests/lightning_compress/data.gzip/compress.threads-schema.sql.gz diff --git a/br/tests/lightning_compress/data.gzip/compress.threads.000000000.csv.gz b/lightning/tests/lightning_compress/data.gzip/compress.threads.000000000.csv.gz similarity index 100% rename from br/tests/lightning_compress/data.gzip/compress.threads.000000000.csv.gz rename to lightning/tests/lightning_compress/data.gzip/compress.threads.000000000.csv.gz diff --git a/br/tests/lightning_compress/data.snappy/compress-schema-create.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress-schema-create.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress-schema-create.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress-schema-create.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.empty_strings-schema.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.empty_strings-schema.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.empty_strings-schema.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.empty_strings-schema.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.empty_strings.000000000.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.empty_strings.000000000.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.empty_strings.000000000.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.empty_strings.000000000.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.escapes-schema.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.escapes-schema.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.escapes-schema.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.escapes-schema.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.escapes.000000000.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.escapes.000000000.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.escapes.000000000.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.escapes.000000000.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.multi_rows-schema.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.multi_rows-schema.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.multi_rows-schema.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.multi_rows-schema.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.multi_rows.000000000.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.multi_rows.000000000.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.multi_rows.000000000.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.multi_rows.000000000.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.threads-schema.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.threads-schema.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.threads-schema.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.threads-schema.sql.snappy diff --git a/br/tests/lightning_compress/data.snappy/compress.threads.000000000.sql.snappy b/lightning/tests/lightning_compress/data.snappy/compress.threads.000000000.sql.snappy similarity index 100% rename from br/tests/lightning_compress/data.snappy/compress.threads.000000000.sql.snappy rename to lightning/tests/lightning_compress/data.snappy/compress.threads.000000000.sql.snappy diff --git a/br/tests/lightning_compress/data.zstd/compress-schema-create.sql.zst b/lightning/tests/lightning_compress/data.zstd/compress-schema-create.sql.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress-schema-create.sql.zst rename to lightning/tests/lightning_compress/data.zstd/compress-schema-create.sql.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.empty_strings-schema.sql.zst b/lightning/tests/lightning_compress/data.zstd/compress.empty_strings-schema.sql.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.empty_strings-schema.sql.zst rename to lightning/tests/lightning_compress/data.zstd/compress.empty_strings-schema.sql.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.empty_strings.000000000.csv.zst b/lightning/tests/lightning_compress/data.zstd/compress.empty_strings.000000000.csv.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.empty_strings.000000000.csv.zst rename to lightning/tests/lightning_compress/data.zstd/compress.empty_strings.000000000.csv.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.escapes-schema.sql.zst b/lightning/tests/lightning_compress/data.zstd/compress.escapes-schema.sql.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.escapes-schema.sql.zst rename to lightning/tests/lightning_compress/data.zstd/compress.escapes-schema.sql.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.escapes.000000000.csv.zst b/lightning/tests/lightning_compress/data.zstd/compress.escapes.000000000.csv.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.escapes.000000000.csv.zst rename to lightning/tests/lightning_compress/data.zstd/compress.escapes.000000000.csv.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.multi_rows-schema.sql.zst b/lightning/tests/lightning_compress/data.zstd/compress.multi_rows-schema.sql.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.multi_rows-schema.sql.zst rename to lightning/tests/lightning_compress/data.zstd/compress.multi_rows-schema.sql.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.multi_rows.000000000.csv.zst b/lightning/tests/lightning_compress/data.zstd/compress.multi_rows.000000000.csv.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.multi_rows.000000000.csv.zst rename to lightning/tests/lightning_compress/data.zstd/compress.multi_rows.000000000.csv.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.threads-schema.sql.zst b/lightning/tests/lightning_compress/data.zstd/compress.threads-schema.sql.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.threads-schema.sql.zst rename to lightning/tests/lightning_compress/data.zstd/compress.threads-schema.sql.zst diff --git a/br/tests/lightning_compress/data.zstd/compress.threads.000000000.csv.zst b/lightning/tests/lightning_compress/data.zstd/compress.threads.000000000.csv.zst similarity index 100% rename from br/tests/lightning_compress/data.zstd/compress.threads.000000000.csv.zst rename to lightning/tests/lightning_compress/data.zstd/compress.threads.000000000.csv.zst diff --git a/br/tests/lightning_compress/local-config.toml b/lightning/tests/lightning_compress/local-config.toml similarity index 100% rename from br/tests/lightning_compress/local-config.toml rename to lightning/tests/lightning_compress/local-config.toml diff --git a/br/tests/lightning_compress/run.sh b/lightning/tests/lightning_compress/run.sh similarity index 80% rename from br/tests/lightning_compress/run.sh rename to lightning/tests/lightning_compress/run.sh index 39bebee1c3808..b049e4d41d44b 100755 --- a/br/tests/lightning_compress/run.sh +++ b/lightning/tests/lightning_compress/run.sh @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -eu diff --git a/br/tests/lightning_compress/tidb-config.toml b/lightning/tests/lightning_compress/tidb-config.toml similarity index 100% rename from br/tests/lightning_compress/tidb-config.toml rename to lightning/tests/lightning_compress/tidb-config.toml diff --git a/br/tests/lightning_concurrent-restore/config.toml b/lightning/tests/lightning_concurrent-restore/config.toml similarity index 100% rename from br/tests/lightning_concurrent-restore/config.toml rename to lightning/tests/lightning_concurrent-restore/config.toml diff --git a/br/tests/lightning_concurrent-restore/run.sh b/lightning/tests/lightning_concurrent-restore/run.sh similarity index 100% rename from br/tests/lightning_concurrent-restore/run.sh rename to lightning/tests/lightning_concurrent-restore/run.sh diff --git a/br/tests/lightning_config_max_error/data/mytest.testtbl-schema.sql b/lightning/tests/lightning_config_max_error/data/mytest.testtbl-schema.sql similarity index 100% rename from br/tests/lightning_config_max_error/data/mytest.testtbl-schema.sql rename to lightning/tests/lightning_config_max_error/data/mytest.testtbl-schema.sql diff --git a/br/tests/lightning_config_max_error/data/mytest.testtbl.csv b/lightning/tests/lightning_config_max_error/data/mytest.testtbl.csv similarity index 100% rename from br/tests/lightning_config_max_error/data/mytest.testtbl.csv rename to lightning/tests/lightning_config_max_error/data/mytest.testtbl.csv diff --git a/br/tests/lightning_config_max_error/err_config.toml b/lightning/tests/lightning_config_max_error/err_config.toml similarity index 100% rename from br/tests/lightning_config_max_error/err_config.toml rename to lightning/tests/lightning_config_max_error/err_config.toml diff --git a/br/tests/lightning_config_max_error/ignore_config.toml b/lightning/tests/lightning_config_max_error/ignore_config.toml similarity index 100% rename from br/tests/lightning_config_max_error/ignore_config.toml rename to lightning/tests/lightning_config_max_error/ignore_config.toml diff --git a/br/tests/lightning_config_max_error/normal_config.toml b/lightning/tests/lightning_config_max_error/normal_config.toml similarity index 100% rename from br/tests/lightning_config_max_error/normal_config.toml rename to lightning/tests/lightning_config_max_error/normal_config.toml diff --git a/br/tests/lightning_config_max_error/normal_config_old_style.toml b/lightning/tests/lightning_config_max_error/normal_config_old_style.toml similarity index 100% rename from br/tests/lightning_config_max_error/normal_config_old_style.toml rename to lightning/tests/lightning_config_max_error/normal_config_old_style.toml diff --git a/br/tests/lightning_config_max_error/run.sh b/lightning/tests/lightning_config_max_error/run.sh similarity index 100% rename from br/tests/lightning_config_max_error/run.sh rename to lightning/tests/lightning_config_max_error/run.sh diff --git a/br/tests/lightning_config_max_error/tidb-error.toml b/lightning/tests/lightning_config_max_error/tidb-error.toml similarity index 100% rename from br/tests/lightning_config_max_error/tidb-error.toml rename to lightning/tests/lightning_config_max_error/tidb-error.toml diff --git a/br/tests/lightning_config_max_error/tidb-limit-record.toml b/lightning/tests/lightning_config_max_error/tidb-limit-record.toml similarity index 100% rename from br/tests/lightning_config_max_error/tidb-limit-record.toml rename to lightning/tests/lightning_config_max_error/tidb-limit-record.toml diff --git a/br/tests/lightning_config_max_error/tidb.toml b/lightning/tests/lightning_config_max_error/tidb.toml similarity index 100% rename from br/tests/lightning_config_max_error/tidb.toml rename to lightning/tests/lightning_config_max_error/tidb.toml diff --git a/br/tests/lightning_config_skip_csv_header/data/mytest.testtbl-schema.sql b/lightning/tests/lightning_config_skip_csv_header/data/mytest.testtbl-schema.sql similarity index 100% rename from br/tests/lightning_config_skip_csv_header/data/mytest.testtbl-schema.sql rename to lightning/tests/lightning_config_skip_csv_header/data/mytest.testtbl-schema.sql diff --git a/br/tests/lightning_config_skip_csv_header/data/mytest.testtbl.csv b/lightning/tests/lightning_config_skip_csv_header/data/mytest.testtbl.csv similarity index 100% rename from br/tests/lightning_config_skip_csv_header/data/mytest.testtbl.csv rename to lightning/tests/lightning_config_skip_csv_header/data/mytest.testtbl.csv diff --git a/br/tests/lightning_config_skip_csv_header/err_config.toml b/lightning/tests/lightning_config_skip_csv_header/err_config.toml similarity index 100% rename from br/tests/lightning_config_skip_csv_header/err_config.toml rename to lightning/tests/lightning_config_skip_csv_header/err_config.toml diff --git a/br/tests/lightning_config_skip_csv_header/err_default_config.toml b/lightning/tests/lightning_config_skip_csv_header/err_default_config.toml similarity index 100% rename from br/tests/lightning_config_skip_csv_header/err_default_config.toml rename to lightning/tests/lightning_config_skip_csv_header/err_default_config.toml diff --git a/br/tests/lightning_config_skip_csv_header/normal_config.toml b/lightning/tests/lightning_config_skip_csv_header/normal_config.toml similarity index 100% rename from br/tests/lightning_config_skip_csv_header/normal_config.toml rename to lightning/tests/lightning_config_skip_csv_header/normal_config.toml diff --git a/br/tests/lightning_config_skip_csv_header/run.sh b/lightning/tests/lightning_config_skip_csv_header/run.sh similarity index 100% rename from br/tests/lightning_config_skip_csv_header/run.sh rename to lightning/tests/lightning_config_skip_csv_header/run.sh diff --git a/br/tests/lightning_csv/config-pause-global.toml b/lightning/tests/lightning_csv/config-pause-global.toml similarity index 100% rename from br/tests/lightning_csv/config-pause-global.toml rename to lightning/tests/lightning_csv/config-pause-global.toml diff --git a/br/tests/lightning_csv/config.toml b/lightning/tests/lightning_csv/config.toml similarity index 100% rename from br/tests/lightning_csv/config.toml rename to lightning/tests/lightning_csv/config.toml diff --git a/br/tests/lightning_csv/data/auto_incr_id-schema-create.sql b/lightning/tests/lightning_csv/data/auto_incr_id-schema-create.sql similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id-schema-create.sql rename to lightning/tests/lightning_csv/data/auto_incr_id-schema-create.sql diff --git a/br/tests/lightning_csv/data/auto_incr_id.clustered-schema.sql b/lightning/tests/lightning_csv/data/auto_incr_id.clustered-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.clustered-schema.sql rename to lightning/tests/lightning_csv/data/auto_incr_id.clustered-schema.sql diff --git a/br/tests/lightning_csv/data/auto_incr_id.clustered.0.csv b/lightning/tests/lightning_csv/data/auto_incr_id.clustered.0.csv similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.clustered.0.csv rename to lightning/tests/lightning_csv/data/auto_incr_id.clustered.0.csv diff --git a/br/tests/lightning_csv/data/auto_incr_id.clustered_cache1-schema.sql b/lightning/tests/lightning_csv/data/auto_incr_id.clustered_cache1-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.clustered_cache1-schema.sql rename to lightning/tests/lightning_csv/data/auto_incr_id.clustered_cache1-schema.sql diff --git a/br/tests/lightning_csv/data/auto_incr_id.clustered_cache1.0.csv b/lightning/tests/lightning_csv/data/auto_incr_id.clustered_cache1.0.csv similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.clustered_cache1.0.csv rename to lightning/tests/lightning_csv/data/auto_incr_id.clustered_cache1.0.csv diff --git a/br/tests/lightning_csv/data/auto_incr_id.nonclustered-schema.sql b/lightning/tests/lightning_csv/data/auto_incr_id.nonclustered-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.nonclustered-schema.sql rename to lightning/tests/lightning_csv/data/auto_incr_id.nonclustered-schema.sql diff --git a/br/tests/lightning_csv/data/auto_incr_id.nonclustered.0.csv b/lightning/tests/lightning_csv/data/auto_incr_id.nonclustered.0.csv similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.nonclustered.0.csv rename to lightning/tests/lightning_csv/data/auto_incr_id.nonclustered.0.csv diff --git a/br/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1-schema.sql b/lightning/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1-schema.sql rename to lightning/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1-schema.sql diff --git a/br/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1.0.csv b/lightning/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1.0.csv similarity index 100% rename from br/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1.0.csv rename to lightning/tests/lightning_csv/data/auto_incr_id.nonclustered_cache1.0.csv diff --git a/br/tests/lightning_csv/data/csv-schema-create.sql b/lightning/tests/lightning_csv/data/csv-schema-create.sql similarity index 100% rename from br/tests/lightning_csv/data/csv-schema-create.sql rename to lightning/tests/lightning_csv/data/csv-schema-create.sql diff --git a/br/tests/lightning_csv/data/csv.empty_strings-schema.sql b/lightning/tests/lightning_csv/data/csv.empty_strings-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/csv.empty_strings-schema.sql rename to lightning/tests/lightning_csv/data/csv.empty_strings-schema.sql diff --git a/br/tests/lightning_csv/data/csv.empty_strings.csv b/lightning/tests/lightning_csv/data/csv.empty_strings.csv similarity index 100% rename from br/tests/lightning_csv/data/csv.empty_strings.csv rename to lightning/tests/lightning_csv/data/csv.empty_strings.csv diff --git a/br/tests/lightning_csv/data/csv.escapes-schema.sql b/lightning/tests/lightning_csv/data/csv.escapes-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/csv.escapes-schema.sql rename to lightning/tests/lightning_csv/data/csv.escapes-schema.sql diff --git a/br/tests/lightning_csv/data/csv.escapes.CSV b/lightning/tests/lightning_csv/data/csv.escapes.CSV similarity index 100% rename from br/tests/lightning_csv/data/csv.escapes.CSV rename to lightning/tests/lightning_csv/data/csv.escapes.CSV diff --git a/br/tests/lightning_csv/data/csv.threads-schema.sql b/lightning/tests/lightning_csv/data/csv.threads-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/csv.threads-schema.sql rename to lightning/tests/lightning_csv/data/csv.threads-schema.sql diff --git a/br/tests/lightning_csv/data/csv.threads.csv b/lightning/tests/lightning_csv/data/csv.threads.csv similarity index 100% rename from br/tests/lightning_csv/data/csv.threads.csv rename to lightning/tests/lightning_csv/data/csv.threads.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id-schema-create.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id-schema-create.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id-schema-create.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id-schema-create.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.clustered-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.clustered-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.clustered-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.clustered-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.clustered.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.clustered.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.clustered.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.clustered.0.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.clustered_cache1.0.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.no_pk-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.no_pk-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.no_pk.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.no_pk.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk.0.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.no_pk_cache1.0.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.nonclustered-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.nonclustered-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.nonclustered.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.nonclustered.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered.0.csv diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1-schema.sql b/lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1-schema.sql similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1-schema.sql rename to lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1-schema.sql diff --git a/br/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1.0.csv b/lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1.0.csv similarity index 100% rename from br/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1.0.csv rename to lightning/tests/lightning_csv/data/no_auto_incr_id.nonclustered_cache1.0.csv diff --git a/br/tests/lightning_csv/errData/db-schema-create.sql b/lightning/tests/lightning_csv/errData/db-schema-create.sql similarity index 100% rename from br/tests/lightning_csv/errData/db-schema-create.sql rename to lightning/tests/lightning_csv/errData/db-schema-create.sql diff --git a/br/tests/lightning_csv/errData/db.test-schema.sql b/lightning/tests/lightning_csv/errData/db.test-schema.sql similarity index 100% rename from br/tests/lightning_csv/errData/db.test-schema.sql rename to lightning/tests/lightning_csv/errData/db.test-schema.sql diff --git a/br/tests/lightning_csv/errData/db.test.1.csv b/lightning/tests/lightning_csv/errData/db.test.1.csv similarity index 100% rename from br/tests/lightning_csv/errData/db.test.1.csv rename to lightning/tests/lightning_csv/errData/db.test.1.csv diff --git a/br/tests/lightning_csv/run.sh b/lightning/tests/lightning_csv/run.sh similarity index 84% rename from br/tests/lightning_csv/run.sh rename to lightning/tests/lightning_csv/run.sh index 4b20820e2e8b6..70b5cff66e989 100755 --- a/br/tests/lightning_csv/run.sh +++ b/lightning/tests/lightning_csv/run.sh @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -eu diff --git a/br/tests/lightning_default-columns/config.toml b/lightning/tests/lightning_default-columns/config.toml similarity index 100% rename from br/tests/lightning_default-columns/config.toml rename to lightning/tests/lightning_default-columns/config.toml diff --git a/br/tests/lightning_default-columns/data/defcol-schema-create.sql b/lightning/tests/lightning_default-columns/data/defcol-schema-create.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol-schema-create.sql rename to lightning/tests/lightning_default-columns/data/defcol-schema-create.sql diff --git a/br/tests/lightning_default-columns/data/defcol.t-schema.sql b/lightning/tests/lightning_default-columns/data/defcol.t-schema.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol.t-schema.sql rename to lightning/tests/lightning_default-columns/data/defcol.t-schema.sql diff --git a/br/tests/lightning_default-columns/data/defcol.t.1.sql b/lightning/tests/lightning_default-columns/data/defcol.t.1.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol.t.1.sql rename to lightning/tests/lightning_default-columns/data/defcol.t.1.sql diff --git a/br/tests/lightning_default-columns/data/defcol.t.2.sql b/lightning/tests/lightning_default-columns/data/defcol.t.2.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol.t.2.sql rename to lightning/tests/lightning_default-columns/data/defcol.t.2.sql diff --git a/br/tests/lightning_default-columns/data/defcol.u-schema.sql b/lightning/tests/lightning_default-columns/data/defcol.u-schema.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol.u-schema.sql rename to lightning/tests/lightning_default-columns/data/defcol.u-schema.sql diff --git a/br/tests/lightning_default-columns/data/defcol.u.1.sql b/lightning/tests/lightning_default-columns/data/defcol.u.1.sql similarity index 100% rename from br/tests/lightning_default-columns/data/defcol.u.1.sql rename to lightning/tests/lightning_default-columns/data/defcol.u.1.sql diff --git a/br/tests/lightning_default-columns/run.sh b/lightning/tests/lightning_default-columns/run.sh similarity index 100% rename from br/tests/lightning_default-columns/run.sh rename to lightning/tests/lightning_default-columns/run.sh diff --git a/br/tests/lightning_disable_scheduler_by_key_range/config.toml b/lightning/tests/lightning_disable_scheduler_by_key_range/config.toml similarity index 100% rename from br/tests/lightning_disable_scheduler_by_key_range/config.toml rename to lightning/tests/lightning_disable_scheduler_by_key_range/config.toml diff --git a/br/tests/lightning_disable_scheduler_by_key_range/data/test-schema-create.sql b/lightning/tests/lightning_disable_scheduler_by_key_range/data/test-schema-create.sql similarity index 100% rename from br/tests/lightning_disable_scheduler_by_key_range/data/test-schema-create.sql rename to lightning/tests/lightning_disable_scheduler_by_key_range/data/test-schema-create.sql diff --git a/br/tests/lightning_disable_scheduler_by_key_range/data/test.t-schema.sql b/lightning/tests/lightning_disable_scheduler_by_key_range/data/test.t-schema.sql similarity index 100% rename from br/tests/lightning_disable_scheduler_by_key_range/data/test.t-schema.sql rename to lightning/tests/lightning_disable_scheduler_by_key_range/data/test.t-schema.sql diff --git a/br/tests/lightning_disable_scheduler_by_key_range/data/test.t.sql b/lightning/tests/lightning_disable_scheduler_by_key_range/data/test.t.sql similarity index 100% rename from br/tests/lightning_disable_scheduler_by_key_range/data/test.t.sql rename to lightning/tests/lightning_disable_scheduler_by_key_range/data/test.t.sql diff --git a/br/tests/lightning_disable_scheduler_by_key_range/run.sh b/lightning/tests/lightning_disable_scheduler_by_key_range/run.sh similarity index 100% rename from br/tests/lightning_disable_scheduler_by_key_range/run.sh rename to lightning/tests/lightning_disable_scheduler_by_key_range/run.sh diff --git a/br/tests/lightning_disk_quota/config.toml b/lightning/tests/lightning_disk_quota/config.toml similarity index 100% rename from br/tests/lightning_disk_quota/config.toml rename to lightning/tests/lightning_disk_quota/config.toml diff --git a/br/tests/lightning_disk_quota/data/disk_quota-schema-create.sql b/lightning/tests/lightning_disk_quota/data/disk_quota-schema-create.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota-schema-create.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota-schema-create.sql diff --git a/br/tests/lightning_disk_quota/data/disk_quota.t-schema.sql b/lightning/tests/lightning_disk_quota/data/disk_quota.t-schema.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota.t-schema.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota.t-schema.sql diff --git a/br/tests/lightning_disk_quota/data/disk_quota.t.0.sql b/lightning/tests/lightning_disk_quota/data/disk_quota.t.0.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota.t.0.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota.t.0.sql diff --git a/br/tests/lightning_disk_quota/data/disk_quota.t.1.sql b/lightning/tests/lightning_disk_quota/data/disk_quota.t.1.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota.t.1.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota.t.1.sql diff --git a/br/tests/lightning_disk_quota/data/disk_quota.t.2.sql b/lightning/tests/lightning_disk_quota/data/disk_quota.t.2.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota.t.2.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota.t.2.sql diff --git a/br/tests/lightning_disk_quota/data/disk_quota.t.3.sql b/lightning/tests/lightning_disk_quota/data/disk_quota.t.3.sql similarity index 100% rename from br/tests/lightning_disk_quota/data/disk_quota.t.3.sql rename to lightning/tests/lightning_disk_quota/data/disk_quota.t.3.sql diff --git a/br/tests/lightning_disk_quota/run.sh b/lightning/tests/lightning_disk_quota/run.sh similarity index 100% rename from br/tests/lightning_disk_quota/run.sh rename to lightning/tests/lightning_disk_quota/run.sh diff --git a/br/tests/lightning_distributed_import/config.toml b/lightning/tests/lightning_distributed_import/config.toml similarity index 100% rename from br/tests/lightning_distributed_import/config.toml rename to lightning/tests/lightning_distributed_import/config.toml diff --git a/br/tests/lightning_distributed_import/data1/distributed_import-schema-create.sql b/lightning/tests/lightning_distributed_import/data1/distributed_import-schema-create.sql similarity index 100% rename from br/tests/lightning_distributed_import/data1/distributed_import-schema-create.sql rename to lightning/tests/lightning_distributed_import/data1/distributed_import-schema-create.sql diff --git a/br/tests/lightning_distributed_import/data1/distributed_import.t-schema.sql b/lightning/tests/lightning_distributed_import/data1/distributed_import.t-schema.sql similarity index 100% rename from br/tests/lightning_distributed_import/data1/distributed_import.t-schema.sql rename to lightning/tests/lightning_distributed_import/data1/distributed_import.t-schema.sql diff --git a/br/tests/lightning_distributed_import/data1/distributed_import.t.csv b/lightning/tests/lightning_distributed_import/data1/distributed_import.t.csv similarity index 100% rename from br/tests/lightning_distributed_import/data1/distributed_import.t.csv rename to lightning/tests/lightning_distributed_import/data1/distributed_import.t.csv diff --git a/br/tests/lightning_distributed_import/data2/distributed_import-schema-create.sql b/lightning/tests/lightning_distributed_import/data2/distributed_import-schema-create.sql similarity index 100% rename from br/tests/lightning_distributed_import/data2/distributed_import-schema-create.sql rename to lightning/tests/lightning_distributed_import/data2/distributed_import-schema-create.sql diff --git a/br/tests/lightning_distributed_import/data2/distributed_import.t-schema.sql b/lightning/tests/lightning_distributed_import/data2/distributed_import.t-schema.sql similarity index 100% rename from br/tests/lightning_distributed_import/data2/distributed_import.t-schema.sql rename to lightning/tests/lightning_distributed_import/data2/distributed_import.t-schema.sql diff --git a/br/tests/lightning_distributed_import/data2/distributed_import.t.csv b/lightning/tests/lightning_distributed_import/data2/distributed_import.t.csv similarity index 100% rename from br/tests/lightning_distributed_import/data2/distributed_import.t.csv rename to lightning/tests/lightning_distributed_import/data2/distributed_import.t.csv diff --git a/br/tests/lightning_distributed_import/run.sh b/lightning/tests/lightning_distributed_import/run.sh similarity index 100% rename from br/tests/lightning_distributed_import/run.sh rename to lightning/tests/lightning_distributed_import/run.sh diff --git a/br/tests/lightning_drop_other_tables_halfway/config.toml b/lightning/tests/lightning_drop_other_tables_halfway/config.toml similarity index 100% rename from br/tests/lightning_drop_other_tables_halfway/config.toml rename to lightning/tests/lightning_drop_other_tables_halfway/config.toml diff --git a/br/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01-schema.sql b/lightning/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01-schema.sql similarity index 100% rename from br/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01-schema.sql rename to lightning/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01-schema.sql diff --git a/br/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01.csv b/lightning/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01.csv similarity index 100% rename from br/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01.csv rename to lightning/tests/lightning_drop_other_tables_halfway/data/lntest.tbl01.csv diff --git a/br/tests/lightning_drop_other_tables_halfway/run.sh b/lightning/tests/lightning_drop_other_tables_halfway/run.sh similarity index 100% rename from br/tests/lightning_drop_other_tables_halfway/run.sh rename to lightning/tests/lightning_drop_other_tables_halfway/run.sh diff --git a/br/tests/lightning_duplicate_detection/config1.toml b/lightning/tests/lightning_duplicate_detection/config1.toml similarity index 100% rename from br/tests/lightning_duplicate_detection/config1.toml rename to lightning/tests/lightning_duplicate_detection/config1.toml diff --git a/br/tests/lightning_duplicate_detection/config2.toml b/lightning/tests/lightning_duplicate_detection/config2.toml similarity index 100% rename from br/tests/lightning_duplicate_detection/config2.toml rename to lightning/tests/lightning_duplicate_detection/config2.toml diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect-schema-create.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect-schema-create.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect-schema-create.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.ta-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.ta-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.ta-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.ta-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.ta.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.ta.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.ta.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.ta.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tb-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tb-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tb-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tb-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tb.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tb.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tb.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tb.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tc-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tc-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tc-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tc-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tc.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tc.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tc.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tc.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.td.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.td.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.td.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.td.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.te-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.te-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.te-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.te-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.te.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.te.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.te.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.te.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.te.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.te.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.te.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.te.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tf-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tf-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tf-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tf-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tg-schema.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tg-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tg-schema.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tg-schema.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tg.0.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tg.0.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tg.0.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tg.0.sql diff --git a/br/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql b/lightning/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql rename to lightning/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql diff --git a/br/tests/lightning_duplicate_detection/run.sh b/lightning/tests/lightning_duplicate_detection/run.sh similarity index 100% rename from br/tests/lightning_duplicate_detection/run.sh rename to lightning/tests/lightning_duplicate_detection/run.sh diff --git a/br/tests/lightning_duplicate_detection_new/data/test.dup_detect-schema.sql b/lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_detection_new/data/test.dup_detect-schema.sql rename to lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect-schema.sql diff --git a/br/tests/lightning_duplicate_detection_new/data/test.dup_detect.1.sql b/lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.1.sql similarity index 100% rename from br/tests/lightning_duplicate_detection_new/data/test.dup_detect.1.sql rename to lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.1.sql diff --git a/br/tests/lightning_duplicate_detection_new/data/test.dup_detect.2.sql b/lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.2.sql similarity index 100% rename from br/tests/lightning_duplicate_detection_new/data/test.dup_detect.2.sql rename to lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.2.sql diff --git a/br/tests/lightning_duplicate_detection_new/data/test.dup_detect.3.sql b/lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.3.sql similarity index 100% rename from br/tests/lightning_duplicate_detection_new/data/test.dup_detect.3.sql rename to lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.3.sql diff --git a/br/tests/lightning_duplicate_detection_new/data/test.dup_detect.4.sql b/lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.4.sql similarity index 100% rename from br/tests/lightning_duplicate_detection_new/data/test.dup_detect.4.sql rename to lightning/tests/lightning_duplicate_detection_new/data/test.dup_detect.4.sql diff --git a/br/tests/lightning_duplicate_detection_new/local-error.toml b/lightning/tests/lightning_duplicate_detection_new/local-error.toml similarity index 100% rename from br/tests/lightning_duplicate_detection_new/local-error.toml rename to lightning/tests/lightning_duplicate_detection_new/local-error.toml diff --git a/br/tests/lightning_duplicate_detection_new/local-limit-error-records.toml b/lightning/tests/lightning_duplicate_detection_new/local-limit-error-records.toml similarity index 100% rename from br/tests/lightning_duplicate_detection_new/local-limit-error-records.toml rename to lightning/tests/lightning_duplicate_detection_new/local-limit-error-records.toml diff --git a/br/tests/lightning_duplicate_detection_new/local-replace.toml b/lightning/tests/lightning_duplicate_detection_new/local-replace.toml similarity index 100% rename from br/tests/lightning_duplicate_detection_new/local-replace.toml rename to lightning/tests/lightning_duplicate_detection_new/local-replace.toml diff --git a/br/tests/lightning_duplicate_detection_new/run.sh b/lightning/tests/lightning_duplicate_detection_new/run.sh similarity index 100% rename from br/tests/lightning_duplicate_detection_new/run.sh rename to lightning/tests/lightning_duplicate_detection_new/run.sh diff --git a/br/tests/lightning_duplicate_detection_new/tidb-ignore.toml b/lightning/tests/lightning_duplicate_detection_new/tidb-ignore.toml similarity index 100% rename from br/tests/lightning_duplicate_detection_new/tidb-ignore.toml rename to lightning/tests/lightning_duplicate_detection_new/tidb-ignore.toml diff --git a/br/tests/lightning_duplicate_detection_new/tidb-replace.toml b/lightning/tests/lightning_duplicate_detection_new/tidb-replace.toml similarity index 100% rename from br/tests/lightning_duplicate_detection_new/tidb-replace.toml rename to lightning/tests/lightning_duplicate_detection_new/tidb-replace.toml diff --git a/br/tests/lightning_duplicate_resolution_error/config.toml b/lightning/tests/lightning_duplicate_resolution_error/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_error/config.toml rename to lightning/tests/lightning_duplicate_resolution_error/config.toml diff --git a/br/tests/lightning_duplicate_resolution_error/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_error/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_error/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_error/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_error/run.sh b/lightning/tests/lightning_duplicate_resolution_error/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_error/run.sh rename to lightning/tests/lightning_duplicate_resolution_error/run.sh diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/config.toml b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/config.toml rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/config.toml diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/data/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_error_pk_multiple_files/run.sh b/lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_pk_multiple_files/run.sh rename to lightning/tests/lightning_duplicate_resolution_error_pk_multiple_files/run.sh diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/config.toml b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/config.toml rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/config.toml diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/data/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files/run.sh b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files/run.sh rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files/run.sh diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/config.toml b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/config.toml rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/config.toml diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/data/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/run.sh b/lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/run.sh rename to lightning/tests/lightning_duplicate_resolution_error_uk_multiple_files_multicol_index/run.sh diff --git a/br/tests/lightning_duplicate_resolution_incremental/config1.toml b/lightning/tests/lightning_duplicate_resolution_incremental/config1.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/config1.toml rename to lightning/tests/lightning_duplicate_resolution_incremental/config1.toml diff --git a/br/tests/lightning_duplicate_resolution_incremental/config2.toml b/lightning/tests/lightning_duplicate_resolution_incremental/config2.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/config2.toml rename to lightning/tests/lightning_duplicate_resolution_incremental/config2.toml diff --git a/br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta-schema.sql b/lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta-schema.sql rename to lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.0.sql b/lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.0.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.0.sql rename to lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.0.sql diff --git a/br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.1.sql b/lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.1.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.1.sql rename to lightning/tests/lightning_duplicate_resolution_incremental/data/dup_resolve_detect.ta.1.sql diff --git a/br/tests/lightning_duplicate_resolution_incremental/run.sh b/lightning/tests/lightning_duplicate_resolution_incremental/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_incremental/run.sh rename to lightning/tests/lightning_duplicate_resolution_incremental/run.sh diff --git a/br/tests/lightning_duplicate_resolution_merge/config.toml b/lightning/tests/lightning_duplicate_resolution_merge/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/config.toml rename to lightning/tests/lightning_duplicate_resolution_merge/config.toml diff --git a/br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_merge/data1/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_merge/data2/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_merge/run.sh b/lightning/tests/lightning_duplicate_resolution_merge/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_merge/run.sh rename to lightning/tests/lightning_duplicate_resolution_merge/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_clustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_keys_nonclustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_clustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_multiple_unique_keys_nonclustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_key/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_key/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_key/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_key/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_key/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_clustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_key_multiple_conflicts_nonclustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_clustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/data/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_clustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.2.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.2.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.2.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/data/dup_resolve.a.2.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_multiple_conflicts_nonclustered_pk/run.sh diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/config.toml b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/config.toml similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/config.toml rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/config.toml diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve-schema-create.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve-schema-create.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve-schema-create.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve-schema-create.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a-schema.sql b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a-schema.sql similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a-schema.sql rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a-schema.sql diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a.1.csv b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a.1.csv similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a.1.csv rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/data/dup_resolve.a.1.csv diff --git a/br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/run.sh b/lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/run.sh similarity index 100% rename from br/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/run.sh rename to lightning/tests/lightning_duplicate_resolution_replace_one_unique_key_nonclustered_varchar_pk/run.sh diff --git a/br/tests/lightning_error_summary/config.toml b/lightning/tests/lightning_error_summary/config.toml similarity index 100% rename from br/tests/lightning_error_summary/config.toml rename to lightning/tests/lightning_error_summary/config.toml diff --git a/br/tests/lightning_error_summary/data/error_summary-schema-create.sql b/lightning/tests/lightning_error_summary/data/error_summary-schema-create.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary-schema-create.sql rename to lightning/tests/lightning_error_summary/data/error_summary-schema-create.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.a-schema.sql b/lightning/tests/lightning_error_summary/data/error_summary.a-schema.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.a-schema.sql rename to lightning/tests/lightning_error_summary/data/error_summary.a-schema.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.a.sql b/lightning/tests/lightning_error_summary/data/error_summary.a.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.a.sql rename to lightning/tests/lightning_error_summary/data/error_summary.a.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.b-schema.sql b/lightning/tests/lightning_error_summary/data/error_summary.b-schema.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.b-schema.sql rename to lightning/tests/lightning_error_summary/data/error_summary.b-schema.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.b.sql b/lightning/tests/lightning_error_summary/data/error_summary.b.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.b.sql rename to lightning/tests/lightning_error_summary/data/error_summary.b.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.c-schema.sql b/lightning/tests/lightning_error_summary/data/error_summary.c-schema.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.c-schema.sql rename to lightning/tests/lightning_error_summary/data/error_summary.c-schema.sql diff --git a/br/tests/lightning_error_summary/data/error_summary.c.sql b/lightning/tests/lightning_error_summary/data/error_summary.c.sql similarity index 100% rename from br/tests/lightning_error_summary/data/error_summary.c.sql rename to lightning/tests/lightning_error_summary/data/error_summary.c.sql diff --git a/br/tests/lightning_error_summary/run.sh b/lightning/tests/lightning_error_summary/run.sh similarity index 100% rename from br/tests/lightning_error_summary/run.sh rename to lightning/tests/lightning_error_summary/run.sh diff --git a/br/tests/lightning_examples/1.toml b/lightning/tests/lightning_examples/1.toml similarity index 100% rename from br/tests/lightning_examples/1.toml rename to lightning/tests/lightning_examples/1.toml diff --git a/br/tests/lightning_examples/131072.toml b/lightning/tests/lightning_examples/131072.toml similarity index 100% rename from br/tests/lightning_examples/131072.toml rename to lightning/tests/lightning_examples/131072.toml diff --git a/br/tests/lightning_examples/512.toml b/lightning/tests/lightning_examples/512.toml similarity index 100% rename from br/tests/lightning_examples/512.toml rename to lightning/tests/lightning_examples/512.toml diff --git a/br/tests/lightning_examples/run.sh b/lightning/tests/lightning_examples/run.sh similarity index 100% rename from br/tests/lightning_examples/run.sh rename to lightning/tests/lightning_examples/run.sh diff --git a/br/tests/lightning_exotic_filenames/config.toml b/lightning/tests/lightning_exotic_filenames/config.toml similarity index 100% rename from br/tests/lightning_exotic_filenames/config.toml rename to lightning/tests/lightning_exotic_filenames/config.toml diff --git a/br/tests/lightning_exotic_filenames/data/xfn-schema-create.sql b/lightning/tests/lightning_exotic_filenames/data/xfn-schema-create.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/xfn-schema-create.sql rename to lightning/tests/lightning_exotic_filenames/data/xfn-schema-create.sql diff --git a/br/tests/lightning_exotic_filenames/data/xfn.etn-schema.sql b/lightning/tests/lightning_exotic_filenames/data/xfn.etn-schema.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/xfn.etn-schema.sql rename to lightning/tests/lightning_exotic_filenames/data/xfn.etn-schema.sql diff --git a/br/tests/lightning_exotic_filenames/data/xfn.etn.sql b/lightning/tests/lightning_exotic_filenames/data/xfn.etn.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/xfn.etn.sql rename to lightning/tests/lightning_exotic_filenames/data/xfn.etn.sql diff --git a/br/tests/lightning_exotic_filenames/data/zwk-schema-create.sql b/lightning/tests/lightning_exotic_filenames/data/zwk-schema-create.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/zwk-schema-create.sql rename to lightning/tests/lightning_exotic_filenames/data/zwk-schema-create.sql diff --git a/br/tests/lightning_exotic_filenames/data/zwk.zwb-schema.sql b/lightning/tests/lightning_exotic_filenames/data/zwk.zwb-schema.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/zwk.zwb-schema.sql rename to lightning/tests/lightning_exotic_filenames/data/zwk.zwb-schema.sql diff --git a/br/tests/lightning_exotic_filenames/data/zwk.zwb.sql b/lightning/tests/lightning_exotic_filenames/data/zwk.zwb.sql similarity index 100% rename from br/tests/lightning_exotic_filenames/data/zwk.zwb.sql rename to lightning/tests/lightning_exotic_filenames/data/zwk.zwb.sql diff --git a/br/tests/lightning_exotic_filenames/run.sh b/lightning/tests/lightning_exotic_filenames/run.sh similarity index 100% rename from br/tests/lightning_exotic_filenames/run.sh rename to lightning/tests/lightning_exotic_filenames/run.sh diff --git a/br/tests/lightning_extend_routes/config.toml b/lightning/tests/lightning_extend_routes/config.toml similarity index 100% rename from br/tests/lightning_extend_routes/config.toml rename to lightning/tests/lightning_extend_routes/config.toml diff --git a/br/tests/lightning_extend_routes/data/routes_a0-schema-create.sql b/lightning/tests/lightning_extend_routes/data/routes_a0-schema-create.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0-schema-create.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0-schema-create.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a0.t0-schema.sql b/lightning/tests/lightning_extend_routes/data/routes_a0.t0-schema.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0.t0-schema.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0.t0-schema.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a0.t0.1.sql b/lightning/tests/lightning_extend_routes/data/routes_a0.t0.1.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0.t0.1.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0.t0.1.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a0.t0.2.sql b/lightning/tests/lightning_extend_routes/data/routes_a0.t0.2.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0.t0.2.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0.t0.2.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a0.t1-schema.sql b/lightning/tests/lightning_extend_routes/data/routes_a0.t1-schema.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0.t1-schema.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0.t1-schema.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a0.t1.1.sql b/lightning/tests/lightning_extend_routes/data/routes_a0.t1.1.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a0.t1.1.sql rename to lightning/tests/lightning_extend_routes/data/routes_a0.t1.1.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a1-schema-create.sql b/lightning/tests/lightning_extend_routes/data/routes_a1-schema-create.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a1-schema-create.sql rename to lightning/tests/lightning_extend_routes/data/routes_a1-schema-create.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a1.s1-schema.sql b/lightning/tests/lightning_extend_routes/data/routes_a1.s1-schema.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a1.s1-schema.sql rename to lightning/tests/lightning_extend_routes/data/routes_a1.s1-schema.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a1.s1.sql b/lightning/tests/lightning_extend_routes/data/routes_a1.s1.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a1.s1.sql rename to lightning/tests/lightning_extend_routes/data/routes_a1.s1.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a1.t2-schema.sql b/lightning/tests/lightning_extend_routes/data/routes_a1.t2-schema.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a1.t2-schema.sql rename to lightning/tests/lightning_extend_routes/data/routes_a1.t2-schema.sql diff --git a/br/tests/lightning_extend_routes/data/routes_a1.t2.sql b/lightning/tests/lightning_extend_routes/data/routes_a1.t2.sql similarity index 100% rename from br/tests/lightning_extend_routes/data/routes_a1.t2.sql rename to lightning/tests/lightning_extend_routes/data/routes_a1.t2.sql diff --git a/br/tests/lightning_extend_routes/run.sh b/lightning/tests/lightning_extend_routes/run.sh similarity index 71% rename from br/tests/lightning_extend_routes/run.sh rename to lightning/tests/lightning_extend_routes/run.sh index 485de1de0132c..36dbf3c9bdd26 100755 --- a/br/tests/lightning_extend_routes/run.sh +++ b/lightning/tests/lightning_extend_routes/run.sh @@ -1,4 +1,18 @@ #!/bin/bash +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Basic check for whether routing rules work diff --git a/br/tests/lightning_fail_fast/chunk.toml b/lightning/tests/lightning_fail_fast/chunk.toml similarity index 100% rename from br/tests/lightning_fail_fast/chunk.toml rename to lightning/tests/lightning_fail_fast/chunk.toml diff --git a/br/tests/lightning_fail_fast/data/fail_fast-schema-create.sql b/lightning/tests/lightning_fail_fast/data/fail_fast-schema-create.sql similarity index 100% rename from br/tests/lightning_fail_fast/data/fail_fast-schema-create.sql rename to lightning/tests/lightning_fail_fast/data/fail_fast-schema-create.sql diff --git a/br/tests/lightning_fail_fast/data/fail_fast.tb-schema.sql b/lightning/tests/lightning_fail_fast/data/fail_fast.tb-schema.sql similarity index 100% rename from br/tests/lightning_fail_fast/data/fail_fast.tb-schema.sql rename to lightning/tests/lightning_fail_fast/data/fail_fast.tb-schema.sql diff --git a/br/tests/lightning_fail_fast/data/fail_fast.tb.0.csv b/lightning/tests/lightning_fail_fast/data/fail_fast.tb.0.csv similarity index 100% rename from br/tests/lightning_fail_fast/data/fail_fast.tb.0.csv rename to lightning/tests/lightning_fail_fast/data/fail_fast.tb.0.csv diff --git a/br/tests/lightning_fail_fast/data/fail_fast.tb.1.csv b/lightning/tests/lightning_fail_fast/data/fail_fast.tb.1.csv similarity index 100% rename from br/tests/lightning_fail_fast/data/fail_fast.tb.1.csv rename to lightning/tests/lightning_fail_fast/data/fail_fast.tb.1.csv diff --git a/br/tests/lightning_fail_fast/data/fail_fast.tb.2.csv b/lightning/tests/lightning_fail_fast/data/fail_fast.tb.2.csv similarity index 100% rename from br/tests/lightning_fail_fast/data/fail_fast.tb.2.csv rename to lightning/tests/lightning_fail_fast/data/fail_fast.tb.2.csv diff --git a/br/tests/lightning_fail_fast/engine.toml b/lightning/tests/lightning_fail_fast/engine.toml similarity index 100% rename from br/tests/lightning_fail_fast/engine.toml rename to lightning/tests/lightning_fail_fast/engine.toml diff --git a/br/tests/lightning_fail_fast/run.sh b/lightning/tests/lightning_fail_fast/run.sh similarity index 100% rename from br/tests/lightning_fail_fast/run.sh rename to lightning/tests/lightning_fail_fast/run.sh diff --git a/br/tests/lightning_fail_fast_on_nonretry_err/config.toml b/lightning/tests/lightning_fail_fast_on_nonretry_err/config.toml similarity index 100% rename from br/tests/lightning_fail_fast_on_nonretry_err/config.toml rename to lightning/tests/lightning_fail_fast_on_nonretry_err/config.toml diff --git a/br/tests/lightning_fail_fast_on_nonretry_err/data/csv-schema-create.sql b/lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv-schema-create.sql similarity index 100% rename from br/tests/lightning_fail_fast_on_nonretry_err/data/csv-schema-create.sql rename to lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv-schema-create.sql diff --git a/br/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads-schema.sql b/lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads-schema.sql similarity index 100% rename from br/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads-schema.sql rename to lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads-schema.sql diff --git a/br/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads.csv b/lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads.csv similarity index 100% rename from br/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads.csv rename to lightning/tests/lightning_fail_fast_on_nonretry_err/data/csv.threads.csv diff --git a/br/tests/lightning_fail_fast_on_nonretry_err/run.sh b/lightning/tests/lightning_fail_fast_on_nonretry_err/run.sh similarity index 55% rename from br/tests/lightning_fail_fast_on_nonretry_err/run.sh rename to lightning/tests/lightning_fail_fast_on_nonretry_err/run.sh index cdcc1ebf31b93..4c345c0eefe04 100755 --- a/br/tests/lightning_fail_fast_on_nonretry_err/run.sh +++ b/lightning/tests/lightning_fail_fast_on_nonretry_err/run.sh @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -eu diff --git a/br/tests/lightning_file_routing/config.toml b/lightning/tests/lightning_file_routing/config.toml similarity index 100% rename from br/tests/lightning_file_routing/config.toml rename to lightning/tests/lightning_file_routing/config.toml diff --git a/br/tests/lightning_file_routing/run.sh b/lightning/tests/lightning_file_routing/run.sh similarity index 100% rename from br/tests/lightning_file_routing/run.sh rename to lightning/tests/lightning_file_routing/run.sh diff --git a/br/tests/lightning_foreign_key/data/fk.child-schema.sql b/lightning/tests/lightning_foreign_key/data/fk.child-schema.sql similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.child-schema.sql rename to lightning/tests/lightning_foreign_key/data/fk.child-schema.sql diff --git a/br/tests/lightning_foreign_key/data/fk.child.sql b/lightning/tests/lightning_foreign_key/data/fk.child.sql similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.child.sql rename to lightning/tests/lightning_foreign_key/data/fk.child.sql diff --git a/br/tests/lightning_foreign_key/data/fk.parent-schema.sql b/lightning/tests/lightning_foreign_key/data/fk.parent-schema.sql similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.parent-schema.sql rename to lightning/tests/lightning_foreign_key/data/fk.parent-schema.sql diff --git a/br/tests/lightning_foreign_key/data/fk.parent.sql b/lightning/tests/lightning_foreign_key/data/fk.parent.sql similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.parent.sql rename to lightning/tests/lightning_foreign_key/data/fk.parent.sql diff --git a/br/tests/lightning_foreign_key/data/fk.t-schema.sql b/lightning/tests/lightning_foreign_key/data/fk.t-schema.sql similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.t-schema.sql rename to lightning/tests/lightning_foreign_key/data/fk.t-schema.sql diff --git a/br/tests/lightning_foreign_key/data/fk.t.csv b/lightning/tests/lightning_foreign_key/data/fk.t.csv similarity index 100% rename from br/tests/lightning_foreign_key/data/fk.t.csv rename to lightning/tests/lightning_foreign_key/data/fk.t.csv diff --git a/br/tests/lightning_foreign_key/local-config.toml b/lightning/tests/lightning_foreign_key/local-config.toml similarity index 100% rename from br/tests/lightning_foreign_key/local-config.toml rename to lightning/tests/lightning_foreign_key/local-config.toml diff --git a/br/tests/lightning_foreign_key/run.sh b/lightning/tests/lightning_foreign_key/run.sh similarity index 100% rename from br/tests/lightning_foreign_key/run.sh rename to lightning/tests/lightning_foreign_key/run.sh diff --git a/br/tests/lightning_foreign_key/tidb-config.toml b/lightning/tests/lightning_foreign_key/tidb-config.toml similarity index 100% rename from br/tests/lightning_foreign_key/tidb-config.toml rename to lightning/tests/lightning_foreign_key/tidb-config.toml diff --git a/br/tests/lightning_gcs/config.toml b/lightning/tests/lightning_gcs/config.toml similarity index 100% rename from br/tests/lightning_gcs/config.toml rename to lightning/tests/lightning_gcs/config.toml diff --git a/br/tests/lightning_gcs/run.sh b/lightning/tests/lightning_gcs/run.sh similarity index 96% rename from br/tests/lightning_gcs/run.sh rename to lightning/tests/lightning_gcs/run.sh index 7c119fa737c41..f03a449a1b365 100644 --- a/br/tests/lightning_gcs/run.sh +++ b/lightning/tests/lightning_gcs/run.sh @@ -32,7 +32,7 @@ rm -rf $GCS_STORAGE mkdir -p "$TEST_DIR/$DB" # we need set public-host for download file, or it will return 404 when using client to read. -bin/fake-gcs-server -scheme http -host $GCS_HOST -port $GCS_PORT -filesystem-root $GCS_STORAGE -public-host $GCS_HOST:$GCS_PORT & +fake-gcs-server -scheme http -host $GCS_HOST -port $GCS_PORT -filesystem-root $GCS_STORAGE -public-host $GCS_HOST:$GCS_PORT & i=0 while ! curl -o /dev/null -v -s "http://$GCS_HOST:$GCS_PORT/"; do i=$(($i+1)) @@ -44,11 +44,11 @@ while ! curl -o /dev/null -v -s "http://$GCS_HOST:$GCS_PORT/"; do done # start oauth server -bin/oauth & +fake-oauth & stop_gcs() { killall -9 fake-gcs-server || true - killall -9 oauth || true + killall -9 fake-oauth || true } trap stop_gcs EXIT diff --git a/br/tests/lightning_generated_columns/config.toml b/lightning/tests/lightning_generated_columns/config.toml similarity index 100% rename from br/tests/lightning_generated_columns/config.toml rename to lightning/tests/lightning_generated_columns/config.toml diff --git a/br/tests/lightning_generated_columns/data/gencol-schema-create.sql b/lightning/tests/lightning_generated_columns/data/gencol-schema-create.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol-schema-create.sql rename to lightning/tests/lightning_generated_columns/data/gencol-schema-create.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.expr_index-schema.sql b/lightning/tests/lightning_generated_columns/data/gencol.expr_index-schema.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.expr_index-schema.sql rename to lightning/tests/lightning_generated_columns/data/gencol.expr_index-schema.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.expr_index.0.sql b/lightning/tests/lightning_generated_columns/data/gencol.expr_index.0.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.expr_index.0.sql rename to lightning/tests/lightning_generated_columns/data/gencol.expr_index.0.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.nested-schema.sql b/lightning/tests/lightning_generated_columns/data/gencol.nested-schema.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.nested-schema.sql rename to lightning/tests/lightning_generated_columns/data/gencol.nested-schema.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.nested.0.sql b/lightning/tests/lightning_generated_columns/data/gencol.nested.0.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.nested.0.sql rename to lightning/tests/lightning_generated_columns/data/gencol.nested.0.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.uuid-schema.sql b/lightning/tests/lightning_generated_columns/data/gencol.uuid-schema.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.uuid-schema.sql rename to lightning/tests/lightning_generated_columns/data/gencol.uuid-schema.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.uuid.0.sql b/lightning/tests/lightning_generated_columns/data/gencol.uuid.0.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.uuid.0.sql rename to lightning/tests/lightning_generated_columns/data/gencol.uuid.0.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.various_types-schema.sql b/lightning/tests/lightning_generated_columns/data/gencol.various_types-schema.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.various_types-schema.sql rename to lightning/tests/lightning_generated_columns/data/gencol.various_types-schema.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.various_types.0.sql b/lightning/tests/lightning_generated_columns/data/gencol.various_types.0.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.various_types.0.sql rename to lightning/tests/lightning_generated_columns/data/gencol.various_types.0.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql b/lightning/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql rename to lightning/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql diff --git a/br/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql b/lightning/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql similarity index 100% rename from br/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql rename to lightning/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql diff --git a/br/tests/lightning_generated_columns/run.sh b/lightning/tests/lightning_generated_columns/run.sh similarity index 100% rename from br/tests/lightning_generated_columns/run.sh rename to lightning/tests/lightning_generated_columns/run.sh diff --git a/br/tests/lightning_ignore_columns/config.toml b/lightning/tests/lightning_ignore_columns/config.toml similarity index 100% rename from br/tests/lightning_ignore_columns/config.toml rename to lightning/tests/lightning_ignore_columns/config.toml diff --git a/br/tests/lightning_ignore_columns/data/routes_a0-schema-create.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0-schema-create.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0-schema-create.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0-schema-create.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a0.t0-schema.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0.t0-schema.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0.t0-schema.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0.t0-schema.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a0.t0.1.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0.t0.1.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0.t0.1.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0.t0.1.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a0.t0.2.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0.t0.2.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0.t0.2.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0.t0.2.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a0.t1-schema.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0.t1-schema.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0.t1-schema.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0.t1-schema.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a0.t1.1.sql b/lightning/tests/lightning_ignore_columns/data/routes_a0.t1.1.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a0.t1.1.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a0.t1.1.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a1-schema-create.sql b/lightning/tests/lightning_ignore_columns/data/routes_a1-schema-create.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a1-schema-create.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a1-schema-create.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a1.s1-schema.sql b/lightning/tests/lightning_ignore_columns/data/routes_a1.s1-schema.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a1.s1-schema.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a1.s1-schema.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a1.s1.sql b/lightning/tests/lightning_ignore_columns/data/routes_a1.s1.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a1.s1.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a1.s1.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a1.t2-schema.sql b/lightning/tests/lightning_ignore_columns/data/routes_a1.t2-schema.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a1.t2-schema.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a1.t2-schema.sql diff --git a/br/tests/lightning_ignore_columns/data/routes_a1.t2.sql b/lightning/tests/lightning_ignore_columns/data/routes_a1.t2.sql similarity index 100% rename from br/tests/lightning_ignore_columns/data/routes_a1.t2.sql rename to lightning/tests/lightning_ignore_columns/data/routes_a1.t2.sql diff --git a/br/tests/lightning_ignore_columns/run.sh b/lightning/tests/lightning_ignore_columns/run.sh similarity index 73% rename from br/tests/lightning_ignore_columns/run.sh rename to lightning/tests/lightning_ignore_columns/run.sh index 4bab35b621a14..74bbef5146a74 100755 --- a/br/tests/lightning_ignore_columns/run.sh +++ b/lightning/tests/lightning_ignore_columns/run.sh @@ -1,4 +1,18 @@ #!/bin/bash +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Basic check for whether routing rules work diff --git a/br/tests/lightning_import_compress/config.toml b/lightning/tests/lightning_import_compress/config.toml similarity index 100% rename from br/tests/lightning_import_compress/config.toml rename to lightning/tests/lightning_import_compress/config.toml diff --git a/br/tests/lightning_import_compress/config_gz.toml b/lightning/tests/lightning_import_compress/config_gz.toml similarity index 100% rename from br/tests/lightning_import_compress/config_gz.toml rename to lightning/tests/lightning_import_compress/config_gz.toml diff --git a/br/tests/lightning_import_compress/config_gzip.toml b/lightning/tests/lightning_import_compress/config_gzip.toml similarity index 100% rename from br/tests/lightning_import_compress/config_gzip.toml rename to lightning/tests/lightning_import_compress/config_gzip.toml diff --git a/br/tests/lightning_import_compress/run.sh b/lightning/tests/lightning_import_compress/run.sh similarity index 88% rename from br/tests/lightning_import_compress/run.sh rename to lightning/tests/lightning_import_compress/run.sh index 80f49e3d071b5..1eef822a42632 100644 --- a/br/tests/lightning_import_compress/run.sh +++ b/lightning/tests/lightning_import_compress/run.sh @@ -44,11 +44,11 @@ run_lightning --backend local -d "$TEST_DIR/data" --config "$CUR/config_gz.toml" run_sql 'DROP DATABASE test;' run_lightning --backend local -d "$TEST_DIR/data" --config "$CUR/config_gzip.toml" --log-file "$LOG_FILE3" -L debug -uncompress=$(grep "import write" /tmp/backup_restore_test/lightning-import-compress1.log | +uncompress=$(grep "import write" $LOG_FILE1 | grep -Eo "bytes=[0-9]+" | sed 's/bytes=//g' | awk '{sum+=$1} END {print sum}') -gzip=$(grep "import write" /tmp/backup_restore_test/lightning-import-compress2.log | +gzip=$(grep "import write" $LOG_FILE2 | grep -Eo "bytes=[0-9]+" | sed 's/bytes=//g' | awk '{sum+=$1} END {print sum}') -gz=$(grep "import write" /tmp/backup_restore_test/lightning-import-compress3.log | +gz=$(grep "import write" $LOG_FILE3 | grep -Eo "bytes=[0-9]+" | sed 's/bytes=//g' | awk '{sum+=$1} END {print sum}') echo "uncompress: ${uncompress}, gzip: ${gzip}, gz: ${gz}" diff --git a/br/tests/lightning_incremental/config.toml b/lightning/tests/lightning_incremental/config.toml similarity index 100% rename from br/tests/lightning_incremental/config.toml rename to lightning/tests/lightning_incremental/config.toml diff --git a/br/tests/lightning_incremental/data/incr-schema-create.sql b/lightning/tests/lightning_incremental/data/incr-schema-create.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr-schema-create.sql rename to lightning/tests/lightning_incremental/data/incr-schema-create.sql diff --git a/br/tests/lightning_incremental/data/incr.auto_random-schema.sql b/lightning/tests/lightning_incremental/data/incr.auto_random-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.auto_random-schema.sql rename to lightning/tests/lightning_incremental/data/incr.auto_random-schema.sql diff --git a/br/tests/lightning_incremental/data/incr.auto_random.sql b/lightning/tests/lightning_incremental/data/incr.auto_random.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.auto_random.sql rename to lightning/tests/lightning_incremental/data/incr.auto_random.sql diff --git a/br/tests/lightning_incremental/data/incr.empty_table-schema.sql b/lightning/tests/lightning_incremental/data/incr.empty_table-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.empty_table-schema.sql rename to lightning/tests/lightning_incremental/data/incr.empty_table-schema.sql diff --git a/br/tests/lightning_incremental/data/incr.pk_auto_inc-schema.sql b/lightning/tests/lightning_incremental/data/incr.pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.pk_auto_inc-schema.sql rename to lightning/tests/lightning_incremental/data/incr.pk_auto_inc-schema.sql diff --git a/br/tests/lightning_incremental/data/incr.pk_auto_inc.sql b/lightning/tests/lightning_incremental/data/incr.pk_auto_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.pk_auto_inc.sql rename to lightning/tests/lightning_incremental/data/incr.pk_auto_inc.sql diff --git a/br/tests/lightning_incremental/data/incr.rowid_uk_inc-schema.sql b/lightning/tests/lightning_incremental/data/incr.rowid_uk_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.rowid_uk_inc-schema.sql rename to lightning/tests/lightning_incremental/data/incr.rowid_uk_inc-schema.sql diff --git a/br/tests/lightning_incremental/data/incr.rowid_uk_inc.sql b/lightning/tests/lightning_incremental/data/incr.rowid_uk_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.rowid_uk_inc.sql rename to lightning/tests/lightning_incremental/data/incr.rowid_uk_inc.sql diff --git a/br/tests/lightning_incremental/data/incr.uk_auto_inc-schema.sql b/lightning/tests/lightning_incremental/data/incr.uk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.uk_auto_inc-schema.sql rename to lightning/tests/lightning_incremental/data/incr.uk_auto_inc-schema.sql diff --git a/br/tests/lightning_incremental/data/incr.uk_auto_inc.sql b/lightning/tests/lightning_incremental/data/incr.uk_auto_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data/incr.uk_auto_inc.sql rename to lightning/tests/lightning_incremental/data/incr.uk_auto_inc.sql diff --git a/br/tests/lightning_incremental/data1/incr-schema-create.sql b/lightning/tests/lightning_incremental/data1/incr-schema-create.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr-schema-create.sql rename to lightning/tests/lightning_incremental/data1/incr-schema-create.sql diff --git a/br/tests/lightning_incremental/data1/incr.auto_random-schema.sql b/lightning/tests/lightning_incremental/data1/incr.auto_random-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.auto_random-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.auto_random-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.auto_random.sql b/lightning/tests/lightning_incremental/data1/incr.auto_random.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.auto_random.sql rename to lightning/tests/lightning_incremental/data1/incr.auto_random.sql diff --git a/br/tests/lightning_incremental/data1/incr.empty_table-schema.sql b/lightning/tests/lightning_incremental/data1/incr.empty_table-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.empty_table-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.empty_table-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.empty_table2-schema.sql b/lightning/tests/lightning_incremental/data1/incr.empty_table2-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.empty_table2-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.empty_table2-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.pk_auto_inc-schema.sql b/lightning/tests/lightning_incremental/data1/incr.pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.pk_auto_inc-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.pk_auto_inc-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.pk_auto_inc.sql b/lightning/tests/lightning_incremental/data1/incr.pk_auto_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.pk_auto_inc.sql rename to lightning/tests/lightning_incremental/data1/incr.pk_auto_inc.sql diff --git a/br/tests/lightning_incremental/data1/incr.rowid_uk_inc-schema.sql b/lightning/tests/lightning_incremental/data1/incr.rowid_uk_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.rowid_uk_inc-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.rowid_uk_inc-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.rowid_uk_inc.sql b/lightning/tests/lightning_incremental/data1/incr.rowid_uk_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.rowid_uk_inc.sql rename to lightning/tests/lightning_incremental/data1/incr.rowid_uk_inc.sql diff --git a/br/tests/lightning_incremental/data1/incr.uk_auto_inc-schema.sql b/lightning/tests/lightning_incremental/data1/incr.uk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.uk_auto_inc-schema.sql rename to lightning/tests/lightning_incremental/data1/incr.uk_auto_inc-schema.sql diff --git a/br/tests/lightning_incremental/data1/incr.uk_auto_inc.sql b/lightning/tests/lightning_incremental/data1/incr.uk_auto_inc.sql similarity index 100% rename from br/tests/lightning_incremental/data1/incr.uk_auto_inc.sql rename to lightning/tests/lightning_incremental/data1/incr.uk_auto_inc.sql diff --git a/br/tests/lightning_incremental/run.sh b/lightning/tests/lightning_incremental/run.sh similarity index 100% rename from br/tests/lightning_incremental/run.sh rename to lightning/tests/lightning_incremental/run.sh diff --git a/br/tests/lightning_issue_282/config.toml b/lightning/tests/lightning_issue_282/config.toml similarity index 100% rename from br/tests/lightning_issue_282/config.toml rename to lightning/tests/lightning_issue_282/config.toml diff --git a/br/tests/lightning_issue_282/data/issue282-schema-create.sql b/lightning/tests/lightning_issue_282/data/issue282-schema-create.sql similarity index 100% rename from br/tests/lightning_issue_282/data/issue282-schema-create.sql rename to lightning/tests/lightning_issue_282/data/issue282-schema-create.sql diff --git a/br/tests/lightning_issue_282/data/issue282.t_access3-schema.sql b/lightning/tests/lightning_issue_282/data/issue282.t_access3-schema.sql similarity index 100% rename from br/tests/lightning_issue_282/data/issue282.t_access3-schema.sql rename to lightning/tests/lightning_issue_282/data/issue282.t_access3-schema.sql diff --git a/br/tests/lightning_issue_282/data/issue282.t_access3.sql b/lightning/tests/lightning_issue_282/data/issue282.t_access3.sql similarity index 100% rename from br/tests/lightning_issue_282/data/issue282.t_access3.sql rename to lightning/tests/lightning_issue_282/data/issue282.t_access3.sql diff --git a/br/tests/lightning_issue_282/run.sh b/lightning/tests/lightning_issue_282/run.sh similarity index 100% rename from br/tests/lightning_issue_282/run.sh rename to lightning/tests/lightning_issue_282/run.sh diff --git a/br/tests/lightning_issue_40657/config.toml b/lightning/tests/lightning_issue_40657/config.toml similarity index 100% rename from br/tests/lightning_issue_40657/config.toml rename to lightning/tests/lightning_issue_40657/config.toml diff --git a/br/tests/lightning_issue_40657/data1/test.t-schema.sql b/lightning/tests/lightning_issue_40657/data1/test.t-schema.sql similarity index 100% rename from br/tests/lightning_issue_40657/data1/test.t-schema.sql rename to lightning/tests/lightning_issue_40657/data1/test.t-schema.sql diff --git a/br/tests/lightning_issue_40657/data1/test.t.0.csv b/lightning/tests/lightning_issue_40657/data1/test.t.0.csv similarity index 100% rename from br/tests/lightning_issue_40657/data1/test.t.0.csv rename to lightning/tests/lightning_issue_40657/data1/test.t.0.csv diff --git a/br/tests/lightning_issue_40657/data2/test.t-schema.sql b/lightning/tests/lightning_issue_40657/data2/test.t-schema.sql similarity index 100% rename from br/tests/lightning_issue_40657/data2/test.t-schema.sql rename to lightning/tests/lightning_issue_40657/data2/test.t-schema.sql diff --git a/br/tests/lightning_issue_40657/data2/test.t.0.csv b/lightning/tests/lightning_issue_40657/data2/test.t.0.csv similarity index 100% rename from br/tests/lightning_issue_40657/data2/test.t.0.csv rename to lightning/tests/lightning_issue_40657/data2/test.t.0.csv diff --git a/br/tests/lightning_issue_40657/run.sh b/lightning/tests/lightning_issue_40657/run.sh similarity index 100% rename from br/tests/lightning_issue_40657/run.sh rename to lightning/tests/lightning_issue_40657/run.sh diff --git a/br/tests/lightning_issue_410/config.toml b/lightning/tests/lightning_issue_410/config.toml similarity index 100% rename from br/tests/lightning_issue_410/config.toml rename to lightning/tests/lightning_issue_410/config.toml diff --git a/br/tests/lightning_issue_410/data/issue410-schema-create.sql b/lightning/tests/lightning_issue_410/data/issue410-schema-create.sql similarity index 100% rename from br/tests/lightning_issue_410/data/issue410-schema-create.sql rename to lightning/tests/lightning_issue_410/data/issue410-schema-create.sql diff --git a/br/tests/lightning_issue_410/data/issue410.row_flow_d-schema.sql b/lightning/tests/lightning_issue_410/data/issue410.row_flow_d-schema.sql similarity index 100% rename from br/tests/lightning_issue_410/data/issue410.row_flow_d-schema.sql rename to lightning/tests/lightning_issue_410/data/issue410.row_flow_d-schema.sql diff --git a/br/tests/lightning_issue_410/data/issue410.row_flow_d.0.csv b/lightning/tests/lightning_issue_410/data/issue410.row_flow_d.0.csv similarity index 100% rename from br/tests/lightning_issue_410/data/issue410.row_flow_d.0.csv rename to lightning/tests/lightning_issue_410/data/issue410.row_flow_d.0.csv diff --git a/br/tests/lightning_issue_410/run.sh b/lightning/tests/lightning_issue_410/run.sh similarity index 100% rename from br/tests/lightning_issue_410/run.sh rename to lightning/tests/lightning_issue_410/run.sh diff --git a/br/tests/lightning_issue_519/config.toml b/lightning/tests/lightning_issue_519/config.toml similarity index 100% rename from br/tests/lightning_issue_519/config.toml rename to lightning/tests/lightning_issue_519/config.toml diff --git a/br/tests/lightning_issue_519/data/issue519-schema-create.sql b/lightning/tests/lightning_issue_519/data/issue519-schema-create.sql similarity index 100% rename from br/tests/lightning_issue_519/data/issue519-schema-create.sql rename to lightning/tests/lightning_issue_519/data/issue519-schema-create.sql diff --git a/br/tests/lightning_issue_519/data/issue519.t-schema.sql b/lightning/tests/lightning_issue_519/data/issue519.t-schema.sql similarity index 100% rename from br/tests/lightning_issue_519/data/issue519.t-schema.sql rename to lightning/tests/lightning_issue_519/data/issue519.t-schema.sql diff --git a/br/tests/lightning_issue_519/data/issue519.t.csv b/lightning/tests/lightning_issue_519/data/issue519.t.csv similarity index 100% rename from br/tests/lightning_issue_519/data/issue519.t.csv rename to lightning/tests/lightning_issue_519/data/issue519.t.csv diff --git a/br/tests/lightning_issue_519/run.sh b/lightning/tests/lightning_issue_519/run.sh similarity index 100% rename from br/tests/lightning_issue_519/run.sh rename to lightning/tests/lightning_issue_519/run.sh diff --git a/br/tests/lightning_local_backend/config.toml b/lightning/tests/lightning_local_backend/config.toml similarity index 100% rename from br/tests/lightning_local_backend/config.toml rename to lightning/tests/lightning_local_backend/config.toml diff --git a/br/tests/lightning_local_backend/data/cpeng-schema-create.sql b/lightning/tests/lightning_local_backend/data/cpeng-schema-create.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng-schema-create.sql rename to lightning/tests/lightning_local_backend/data/cpeng-schema-create.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.a-schema.sql b/lightning/tests/lightning_local_backend/data/cpeng.a-schema.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.a-schema.sql rename to lightning/tests/lightning_local_backend/data/cpeng.a-schema.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.a.1.sql b/lightning/tests/lightning_local_backend/data/cpeng.a.1.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.a.1.sql rename to lightning/tests/lightning_local_backend/data/cpeng.a.1.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.a.2.sql b/lightning/tests/lightning_local_backend/data/cpeng.a.2.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.a.2.sql rename to lightning/tests/lightning_local_backend/data/cpeng.a.2.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.a.3.sql b/lightning/tests/lightning_local_backend/data/cpeng.a.3.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.a.3.sql rename to lightning/tests/lightning_local_backend/data/cpeng.a.3.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.b-schema.sql b/lightning/tests/lightning_local_backend/data/cpeng.b-schema.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.b-schema.sql rename to lightning/tests/lightning_local_backend/data/cpeng.b-schema.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.b.1.sql b/lightning/tests/lightning_local_backend/data/cpeng.b.1.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.b.1.sql rename to lightning/tests/lightning_local_backend/data/cpeng.b.1.sql diff --git a/br/tests/lightning_local_backend/data/cpeng.b.2.sql b/lightning/tests/lightning_local_backend/data/cpeng.b.2.sql similarity index 100% rename from br/tests/lightning_local_backend/data/cpeng.b.2.sql rename to lightning/tests/lightning_local_backend/data/cpeng.b.2.sql diff --git a/br/tests/lightning_local_backend/file.toml b/lightning/tests/lightning_local_backend/file.toml similarity index 100% rename from br/tests/lightning_local_backend/file.toml rename to lightning/tests/lightning_local_backend/file.toml diff --git a/br/tests/lightning_local_backend/mysql.toml b/lightning/tests/lightning_local_backend/mysql.toml similarity index 100% rename from br/tests/lightning_local_backend/mysql.toml rename to lightning/tests/lightning_local_backend/mysql.toml diff --git a/br/tests/lightning_local_backend/run.sh b/lightning/tests/lightning_local_backend/run.sh similarity index 100% rename from br/tests/lightning_local_backend/run.sh rename to lightning/tests/lightning_local_backend/run.sh diff --git a/br/tests/lightning_max_incr/config.toml b/lightning/tests/lightning_max_incr/config.toml similarity index 100% rename from br/tests/lightning_max_incr/config.toml rename to lightning/tests/lightning_max_incr/config.toml diff --git a/br/tests/lightning_max_incr/data/db-schema-create.sql b/lightning/tests/lightning_max_incr/data/db-schema-create.sql similarity index 100% rename from br/tests/lightning_max_incr/data/db-schema-create.sql rename to lightning/tests/lightning_max_incr/data/db-schema-create.sql diff --git a/br/tests/lightning_max_incr/data/db.test-schema.sql b/lightning/tests/lightning_max_incr/data/db.test-schema.sql similarity index 100% rename from br/tests/lightning_max_incr/data/db.test-schema.sql rename to lightning/tests/lightning_max_incr/data/db.test-schema.sql diff --git a/br/tests/lightning_max_incr/data/db.test.000000000.csv b/lightning/tests/lightning_max_incr/data/db.test.000000000.csv similarity index 100% rename from br/tests/lightning_max_incr/data/db.test.000000000.csv rename to lightning/tests/lightning_max_incr/data/db.test.000000000.csv diff --git a/br/tests/lightning_max_incr/data/db.test1-schema.sql b/lightning/tests/lightning_max_incr/data/db.test1-schema.sql similarity index 100% rename from br/tests/lightning_max_incr/data/db.test1-schema.sql rename to lightning/tests/lightning_max_incr/data/db.test1-schema.sql diff --git a/br/tests/lightning_max_incr/data/db.test1.000000000.csv b/lightning/tests/lightning_max_incr/data/db.test1.000000000.csv similarity index 100% rename from br/tests/lightning_max_incr/data/db.test1.000000000.csv rename to lightning/tests/lightning_max_incr/data/db.test1.000000000.csv diff --git a/br/tests/lightning_max_incr/run.sh b/lightning/tests/lightning_max_incr/run.sh similarity index 100% rename from br/tests/lightning_max_incr/run.sh rename to lightning/tests/lightning_max_incr/run.sh diff --git a/br/tests/lightning_max_random/config.toml b/lightning/tests/lightning_max_random/config.toml similarity index 100% rename from br/tests/lightning_max_random/config.toml rename to lightning/tests/lightning_max_random/config.toml diff --git a/br/tests/lightning_max_random/data/db-schema-create.sql b/lightning/tests/lightning_max_random/data/db-schema-create.sql similarity index 100% rename from br/tests/lightning_max_random/data/db-schema-create.sql rename to lightning/tests/lightning_max_random/data/db-schema-create.sql diff --git a/br/tests/lightning_max_random/data/db.test-schema.sql b/lightning/tests/lightning_max_random/data/db.test-schema.sql similarity index 100% rename from br/tests/lightning_max_random/data/db.test-schema.sql rename to lightning/tests/lightning_max_random/data/db.test-schema.sql diff --git a/br/tests/lightning_max_random/data/db.test.000000000.csv b/lightning/tests/lightning_max_random/data/db.test.000000000.csv similarity index 100% rename from br/tests/lightning_max_random/data/db.test.000000000.csv rename to lightning/tests/lightning_max_random/data/db.test.000000000.csv diff --git a/br/tests/lightning_max_random/data/db.test1-schema.sql b/lightning/tests/lightning_max_random/data/db.test1-schema.sql similarity index 100% rename from br/tests/lightning_max_random/data/db.test1-schema.sql rename to lightning/tests/lightning_max_random/data/db.test1-schema.sql diff --git a/br/tests/lightning_max_random/data/db.test1.000000000.csv b/lightning/tests/lightning_max_random/data/db.test1.000000000.csv similarity index 100% rename from br/tests/lightning_max_random/data/db.test1.000000000.csv rename to lightning/tests/lightning_max_random/data/db.test1.000000000.csv diff --git a/br/tests/lightning_max_random/data/db.test2-schema.sql b/lightning/tests/lightning_max_random/data/db.test2-schema.sql similarity index 100% rename from br/tests/lightning_max_random/data/db.test2-schema.sql rename to lightning/tests/lightning_max_random/data/db.test2-schema.sql diff --git a/br/tests/lightning_max_random/data/db.test2.000000000.csv b/lightning/tests/lightning_max_random/data/db.test2.000000000.csv similarity index 100% rename from br/tests/lightning_max_random/data/db.test2.000000000.csv rename to lightning/tests/lightning_max_random/data/db.test2.000000000.csv diff --git a/br/tests/lightning_max_random/run.sh b/lightning/tests/lightning_max_random/run.sh similarity index 100% rename from br/tests/lightning_max_random/run.sh rename to lightning/tests/lightning_max_random/run.sh diff --git a/br/tests/lightning_multi_valued_index/config.toml b/lightning/tests/lightning_multi_valued_index/config.toml similarity index 100% rename from br/tests/lightning_multi_valued_index/config.toml rename to lightning/tests/lightning_multi_valued_index/config.toml diff --git a/br/tests/lightning_multi_valued_index/data/mv-schema.sql b/lightning/tests/lightning_multi_valued_index/data/mv-schema.sql similarity index 100% rename from br/tests/lightning_multi_valued_index/data/mv-schema.sql rename to lightning/tests/lightning_multi_valued_index/data/mv-schema.sql diff --git a/br/tests/lightning_multi_valued_index/data/mv.l-schema.sql b/lightning/tests/lightning_multi_valued_index/data/mv.l-schema.sql similarity index 100% rename from br/tests/lightning_multi_valued_index/data/mv.l-schema.sql rename to lightning/tests/lightning_multi_valued_index/data/mv.l-schema.sql diff --git a/br/tests/lightning_multi_valued_index/data/mv.l.0.csv b/lightning/tests/lightning_multi_valued_index/data/mv.l.0.csv similarity index 100% rename from br/tests/lightning_multi_valued_index/data/mv.l.0.csv rename to lightning/tests/lightning_multi_valued_index/data/mv.l.0.csv diff --git a/br/tests/lightning_multi_valued_index/data/mv.t-schema.sql b/lightning/tests/lightning_multi_valued_index/data/mv.t-schema.sql similarity index 100% rename from br/tests/lightning_multi_valued_index/data/mv.t-schema.sql rename to lightning/tests/lightning_multi_valued_index/data/mv.t-schema.sql diff --git a/br/tests/lightning_multi_valued_index/data/mv.t.0.sql b/lightning/tests/lightning_multi_valued_index/data/mv.t.0.sql similarity index 100% rename from br/tests/lightning_multi_valued_index/data/mv.t.0.sql rename to lightning/tests/lightning_multi_valued_index/data/mv.t.0.sql diff --git a/br/tests/lightning_multi_valued_index/run.sh b/lightning/tests/lightning_multi_valued_index/run.sh similarity index 100% rename from br/tests/lightning_multi_valued_index/run.sh rename to lightning/tests/lightning_multi_valued_index/run.sh diff --git a/br/tests/lightning_new_collation/config.toml b/lightning/tests/lightning_new_collation/config.toml similarity index 100% rename from br/tests/lightning_new_collation/config.toml rename to lightning/tests/lightning_new_collation/config.toml diff --git a/br/tests/lightning_new_collation/data-gbk/nc.gbk_source-schema.sql b/lightning/tests/lightning_new_collation/data-gbk/nc.gbk_source-schema.sql similarity index 100% rename from br/tests/lightning_new_collation/data-gbk/nc.gbk_source-schema.sql rename to lightning/tests/lightning_new_collation/data-gbk/nc.gbk_source-schema.sql diff --git a/br/tests/lightning_new_collation/data-gbk/nc.gbk_source.0.csv b/lightning/tests/lightning_new_collation/data-gbk/nc.gbk_source.0.csv similarity index 100% rename from br/tests/lightning_new_collation/data-gbk/nc.gbk_source.0.csv rename to lightning/tests/lightning_new_collation/data-gbk/nc.gbk_source.0.csv diff --git a/br/tests/lightning_new_collation/data/nc-schema-create.sql b/lightning/tests/lightning_new_collation/data/nc-schema-create.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc-schema-create.sql rename to lightning/tests/lightning_new_collation/data/nc-schema-create.sql diff --git a/br/tests/lightning_new_collation/data/nc.ci-schema.sql b/lightning/tests/lightning_new_collation/data/nc.ci-schema.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc.ci-schema.sql rename to lightning/tests/lightning_new_collation/data/nc.ci-schema.sql diff --git a/br/tests/lightning_new_collation/data/nc.ci.0.csv b/lightning/tests/lightning_new_collation/data/nc.ci.0.csv similarity index 100% rename from br/tests/lightning_new_collation/data/nc.ci.0.csv rename to lightning/tests/lightning_new_collation/data/nc.ci.0.csv diff --git a/br/tests/lightning_new_collation/data/nc.gbk_test-schema.sql b/lightning/tests/lightning_new_collation/data/nc.gbk_test-schema.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc.gbk_test-schema.sql rename to lightning/tests/lightning_new_collation/data/nc.gbk_test-schema.sql diff --git a/br/tests/lightning_new_collation/data/nc.gbk_test.0.csv b/lightning/tests/lightning_new_collation/data/nc.gbk_test.0.csv similarity index 100% rename from br/tests/lightning_new_collation/data/nc.gbk_test.0.csv rename to lightning/tests/lightning_new_collation/data/nc.gbk_test.0.csv diff --git a/br/tests/lightning_new_collation/data/nc.t-schema.sql b/lightning/tests/lightning_new_collation/data/nc.t-schema.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc.t-schema.sql rename to lightning/tests/lightning_new_collation/data/nc.t-schema.sql diff --git a/br/tests/lightning_new_collation/data/nc.t.0.sql b/lightning/tests/lightning_new_collation/data/nc.t.0.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc.t.0.sql rename to lightning/tests/lightning_new_collation/data/nc.t.0.sql diff --git a/br/tests/lightning_new_collation/data/nc.t.1.sql b/lightning/tests/lightning_new_collation/data/nc.t.1.sql similarity index 100% rename from br/tests/lightning_new_collation/data/nc.t.1.sql rename to lightning/tests/lightning_new_collation/data/nc.t.1.sql diff --git a/br/tests/lightning_new_collation/gbk.toml b/lightning/tests/lightning_new_collation/gbk.toml similarity index 100% rename from br/tests/lightning_new_collation/gbk.toml rename to lightning/tests/lightning_new_collation/gbk.toml diff --git a/br/tests/lightning_new_collation/run.sh b/lightning/tests/lightning_new_collation/run.sh similarity index 98% rename from br/tests/lightning_new_collation/run.sh rename to lightning/tests/lightning_new_collation/run.sh index dac090d987ac8..62aa8bbc7b6b5 100644 --- a/br/tests/lightning_new_collation/run.sh +++ b/lightning/tests/lightning_new_collation/run.sh @@ -19,7 +19,7 @@ check_cluster_version 4 0 0 'new collation' || { echo 'TiDB does not support new set -euE cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -. $cur/../_utils/run_services +. $UTILS_DIR/run_services # restart cluster with new collation enabled start_services --tidb-cfg $cur/tidb-new-collation.toml diff --git a/lightning/tests/lightning_new_collation/tidb-new-collation.toml b/lightning/tests/lightning_new_collation/tidb-new-collation.toml new file mode 100644 index 0000000000000..7b4b1ada95377 --- /dev/null +++ b/lightning/tests/lightning_new_collation/tidb-new-collation.toml @@ -0,0 +1,10 @@ +# config of tidb +new_collations_enabled_on_first_bootstrap = true + +[security] +ssl-ca = "/tmp/lightning_test/certs/ca.pem" +ssl-cert = "/tmp/lightning_test/certs/tidb.pem" +ssl-key = "/tmp/lightning_test/certs/tidb.key" +cluster-ssl-ca = "/tmp/lightning_test/certs/ca.pem" +cluster-ssl-cert = "/tmp/lightning_test/certs/tidb.pem" +cluster-ssl-key = "/tmp/lightning_test/certs/tidb.key" diff --git a/br/tests/lightning_no_schema/config.toml b/lightning/tests/lightning_no_schema/config.toml similarity index 100% rename from br/tests/lightning_no_schema/config.toml rename to lightning/tests/lightning_no_schema/config.toml diff --git a/br/tests/lightning_no_schema/data/noschema.t.sql b/lightning/tests/lightning_no_schema/data/noschema.t.sql similarity index 100% rename from br/tests/lightning_no_schema/data/noschema.t.sql rename to lightning/tests/lightning_no_schema/data/noschema.t.sql diff --git a/br/tests/lightning_no_schema/run.sh b/lightning/tests/lightning_no_schema/run.sh similarity index 100% rename from br/tests/lightning_no_schema/run.sh rename to lightning/tests/lightning_no_schema/run.sh diff --git a/br/tests/lightning_parquet/config.toml b/lightning/tests/lightning_parquet/config.toml similarity index 100% rename from br/tests/lightning_parquet/config.toml rename to lightning/tests/lightning_parquet/config.toml diff --git a/br/tests/lightning_parquet/data/export_info_ci.json b/lightning/tests/lightning_parquet/data/export_info_ci.json similarity index 100% rename from br/tests/lightning_parquet/data/export_info_ci.json rename to lightning/tests/lightning_parquet/data/export_info_ci.json diff --git a/br/tests/lightning_parquet/data/export_tables_info_ci_from_1_to_9.json b/lightning/tests/lightning_parquet/data/export_tables_info_ci_from_1_to_9.json similarity index 100% rename from br/tests/lightning_parquet/data/export_tables_info_ci_from_1_to_9.json rename to lightning/tests/lightning_parquet/data/export_tables_info_ci_from_1_to_9.json diff --git a/br/tests/lightning_parquet/data/test/test.customer/part-00000-c3744aeb-351c-49ba-bdf3-5864befff481-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.customer/part-00000-c3744aeb-351c-49ba-bdf3-5864befff481-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.customer/part-00000-c3744aeb-351c-49ba-bdf3-5864befff481-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.customer/part-00000-c3744aeb-351c-49ba-bdf3-5864befff481-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.district/part-00000-f61f4bef-6765-432a-8f18-cd17b4607f2a-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.district/part-00000-f61f4bef-6765-432a-8f18-cd17b4607f2a-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.district/part-00000-f61f4bef-6765-432a-8f18-cd17b4607f2a-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.district/part-00000-f61f4bef-6765-432a-8f18-cd17b4607f2a-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.history/part-00000-8cf0e97a-1169-4335-a93f-8805e02def97-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.history/part-00000-8cf0e97a-1169-4335-a93f-8805e02def97-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.history/part-00000-8cf0e97a-1169-4335-a93f-8805e02def97-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.history/part-00000-8cf0e97a-1169-4335-a93f-8805e02def97-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.item/part-00000-8905ded8-4c54-477f-9907-6e3eae50358b-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.item/part-00000-8905ded8-4c54-477f-9907-6e3eae50358b-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.item/part-00000-8905ded8-4c54-477f-9907-6e3eae50358b-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.item/part-00000-8905ded8-4c54-477f-9907-6e3eae50358b-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.new_order/part-00000-d868200e-b629-4445-bd96-d34b6674b09d-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.new_order/part-00000-d868200e-b629-4445-bd96-d34b6674b09d-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.new_order/part-00000-d868200e-b629-4445-bd96-d34b6674b09d-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.new_order/part-00000-d868200e-b629-4445-bd96-d34b6674b09d-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.order_line/part-00000-e36fecd0-3f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.order_line/part-00000-e36fecd0-3f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.order_line/part-00000-e36fecd0-3f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.order_line/part-00000-e36fecd0-3f59-4ff6-b271-2e4b27ffbcf5-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.orders/part-00000-b45481f5-92c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.orders/part-00000-b45481f5-92c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.orders/part-00000-b45481f5-92c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.orders/part-00000-b45481f5-92c0-4961-9bf7-32a0a04ffee5-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.special_col_name/special_col_name.parquet b/lightning/tests/lightning_parquet/data/test/test.special_col_name/special_col_name.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.special_col_name/special_col_name.parquet rename to lightning/tests/lightning_parquet/data/test/test.special_col_name/special_col_name.parquet diff --git a/br/tests/lightning_parquet/data/test/test.stock/part-00000-eef45943-3034-4d65-b375-ee55aa479215-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.stock/part-00000-eef45943-3034-4d65-b375-ee55aa479215-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.stock/part-00000-eef45943-3034-4d65-b375-ee55aa479215-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.stock/part-00000-eef45943-3034-4d65-b375-ee55aa479215-c000.gz.parquet diff --git a/br/tests/lightning_parquet/data/test/test.test_time/000000_0.parquet b/lightning/tests/lightning_parquet/data/test/test.test_time/000000_0.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.test_time/000000_0.parquet rename to lightning/tests/lightning_parquet/data/test/test.test_time/000000_0.parquet diff --git a/br/tests/lightning_parquet/data/test/test.warehouse/part-00000-c6c33252-4d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet b/lightning/tests/lightning_parquet/data/test/test.warehouse/part-00000-c6c33252-4d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet similarity index 100% rename from br/tests/lightning_parquet/data/test/test.warehouse/part-00000-c6c33252-4d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet rename to lightning/tests/lightning_parquet/data/test/test.warehouse/part-00000-c6c33252-4d2f-4c5c-8a2f-d162bde6c360-c000.gz.parquet diff --git a/br/tests/lightning_parquet/db.sql b/lightning/tests/lightning_parquet/db.sql similarity index 100% rename from br/tests/lightning_parquet/db.sql rename to lightning/tests/lightning_parquet/db.sql diff --git a/br/tests/lightning_parquet/run.sh b/lightning/tests/lightning_parquet/run.sh similarity index 100% rename from br/tests/lightning_parquet/run.sh rename to lightning/tests/lightning_parquet/run.sh diff --git a/br/tests/lightning_partition_incremental/config.toml b/lightning/tests/lightning_partition_incremental/config.toml similarity index 100% rename from br/tests/lightning_partition_incremental/config.toml rename to lightning/tests/lightning_partition_incremental/config.toml diff --git a/br/tests/lightning_partition_incremental/config1.toml b/lightning/tests/lightning_partition_incremental/config1.toml similarity index 100% rename from br/tests/lightning_partition_incremental/config1.toml rename to lightning/tests/lightning_partition_incremental/config1.toml diff --git a/br/tests/lightning_partition_incremental/config2.toml b/lightning/tests/lightning_partition_incremental/config2.toml similarity index 100% rename from br/tests/lightning_partition_incremental/config2.toml rename to lightning/tests/lightning_partition_incremental/config2.toml diff --git a/br/tests/lightning_partition_incremental/data/incr.auto_rowid-schema.sql b/lightning/tests/lightning_partition_incremental/data/incr.auto_rowid-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data/incr.auto_rowid-schema.sql rename to lightning/tests/lightning_partition_incremental/data/incr.auto_rowid-schema.sql diff --git a/br/tests/lightning_partition_incremental/data/incr.auto_rowid.csv b/lightning/tests/lightning_partition_incremental/data/incr.auto_rowid.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data/incr.auto_rowid.csv rename to lightning/tests/lightning_partition_incremental/data/incr.auto_rowid.csv diff --git a/br/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc-schema.sql b/lightning/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc-schema.sql rename to lightning/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc-schema.sql diff --git a/br/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc.csv b/lightning/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc.csv rename to lightning/tests/lightning_partition_incremental/data/incr.non_pk_auto_inc.csv diff --git a/br/tests/lightning_partition_incremental/data1/incr.auto_rowid-schema.sql b/lightning/tests/lightning_partition_incremental/data1/incr.auto_rowid-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data1/incr.auto_rowid-schema.sql rename to lightning/tests/lightning_partition_incremental/data1/incr.auto_rowid-schema.sql diff --git a/br/tests/lightning_partition_incremental/data1/incr.auto_rowid.csv b/lightning/tests/lightning_partition_incremental/data1/incr.auto_rowid.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data1/incr.auto_rowid.csv rename to lightning/tests/lightning_partition_incremental/data1/incr.auto_rowid.csv diff --git a/br/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc-schema.sql b/lightning/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc-schema.sql rename to lightning/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc-schema.sql diff --git a/br/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc.csv b/lightning/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc.csv rename to lightning/tests/lightning_partition_incremental/data1/incr.non_pk_auto_inc.csv diff --git a/br/tests/lightning_partition_incremental/data2/incr.auto_rowid-schema.sql b/lightning/tests/lightning_partition_incremental/data2/incr.auto_rowid-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data2/incr.auto_rowid-schema.sql rename to lightning/tests/lightning_partition_incremental/data2/incr.auto_rowid-schema.sql diff --git a/br/tests/lightning_partition_incremental/data2/incr.auto_rowid.csv b/lightning/tests/lightning_partition_incremental/data2/incr.auto_rowid.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data2/incr.auto_rowid.csv rename to lightning/tests/lightning_partition_incremental/data2/incr.auto_rowid.csv diff --git a/br/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc-schema.sql b/lightning/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc-schema.sql rename to lightning/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc-schema.sql diff --git a/br/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc.csv b/lightning/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc.csv similarity index 100% rename from br/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc.csv rename to lightning/tests/lightning_partition_incremental/data2/incr.non_pk_auto_inc.csv diff --git a/br/tests/lightning_partition_incremental/run.sh b/lightning/tests/lightning_partition_incremental/run.sh similarity index 100% rename from br/tests/lightning_partition_incremental/run.sh rename to lightning/tests/lightning_partition_incremental/run.sh diff --git a/br/tests/lightning_partitioned-table/config.toml b/lightning/tests/lightning_partitioned-table/config.toml similarity index 100% rename from br/tests/lightning_partitioned-table/config.toml rename to lightning/tests/lightning_partitioned-table/config.toml diff --git a/br/tests/lightning_partitioned-table/data/partitioned-schema-create.sql b/lightning/tests/lightning_partitioned-table/data/partitioned-schema-create.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned-schema-create.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned-schema-create.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.a-schema.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.a-schema.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.a-schema.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.a-schema.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.a.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.a.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.a.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.a.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.list-schema.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.list-schema.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.list-schema.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.list-schema.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.list.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.list.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.list.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.list.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.range-schema.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.range-schema.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.range-schema.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.range-schema.sql diff --git a/br/tests/lightning_partitioned-table/data/partitioned.range.sql b/lightning/tests/lightning_partitioned-table/data/partitioned.range.sql similarity index 100% rename from br/tests/lightning_partitioned-table/data/partitioned.range.sql rename to lightning/tests/lightning_partitioned-table/data/partitioned.range.sql diff --git a/br/tests/lightning_partitioned-table/run.sh b/lightning/tests/lightning_partitioned-table/run.sh similarity index 100% rename from br/tests/lightning_partitioned-table/run.sh rename to lightning/tests/lightning_partitioned-table/run.sh diff --git a/br/tests/lightning_pd_leader_switch/config.toml b/lightning/tests/lightning_pd_leader_switch/config.toml similarity index 100% rename from br/tests/lightning_pd_leader_switch/config.toml rename to lightning/tests/lightning_pd_leader_switch/config.toml diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng-schema-create.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng-schema-create.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng-schema-create.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng-schema-create.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.a-schema.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.a-schema.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.a-schema.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.a-schema.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.a.1.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.a.1.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.a.1.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.a.1.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.a.2.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.a.2.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.a.2.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.a.2.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.a.3.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.a.3.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.a.3.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.a.3.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.b-schema.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.b-schema.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.b-schema.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.b-schema.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.b.1.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.b.1.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.b.1.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.b.1.sql diff --git a/br/tests/lightning_pd_leader_switch/data/cpeng.b.2.sql b/lightning/tests/lightning_pd_leader_switch/data/cpeng.b.2.sql similarity index 100% rename from br/tests/lightning_pd_leader_switch/data/cpeng.b.2.sql rename to lightning/tests/lightning_pd_leader_switch/data/cpeng.b.2.sql diff --git a/br/tests/lightning_pd_leader_switch/run.sh b/lightning/tests/lightning_pd_leader_switch/run.sh similarity index 87% rename from br/tests/lightning_pd_leader_switch/run.sh rename to lightning/tests/lightning_pd_leader_switch/run.sh index 4d454f05fcee2..67035c6056d70 100644 --- a/br/tests/lightning_pd_leader_switch/run.sh +++ b/lightning/tests/lightning_pd_leader_switch/run.sh @@ -18,11 +18,9 @@ set -eu cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -. $cur/../_utils/run_services -PD_CONFIG=${PD_CONFIG:-"$cur/../config/pd.toml"} -TIDB_CONFIG=${TIDB_CONFIG:-"$cur/../config/tidb.toml"} +. $UTILS_DIR/run_services -bin/pd-server --join "https://$PD_ADDR" \ +pd-server --join "https://$PD_ADDR" \ --client-urls "https://${PD_ADDR}2" \ --peer-urls "https://${PD_PEER_ADDR}2" \ --log-file "$TEST_DIR/pd2.log" \ @@ -33,7 +31,7 @@ bin/pd-server --join "https://$PD_ADDR" \ # strange that new PD can't join too quickly sleep 10 -bin/pd-server --join "https://$PD_ADDR" \ +pd-server --join "https://$PD_ADDR" \ --client-urls "https://${PD_ADDR}3" \ --peer-urls "https://${PD_PEER_ADDR}3" \ --log-file "$TEST_DIR/pd3.log" \ @@ -52,7 +50,7 @@ run_lightning --backend local --enable-checkpoint=0 --pd-urls '127.0.0.1:9999,12 lightning_pid=$! # in many libraries, etcd client's auto-sync-interval is 30s, so we need to wait at least 30s before kill PD leader sleep 45 -kill $(cat /tmp/backup_restore_test/pd_pid.txt) +kill $(cat $TEST_DIR/pd_pid.txt) # Check that everything is correctly imported wait $lightning_pid diff --git a/br/tests/lightning_record_network/config.toml b/lightning/tests/lightning_record_network/config.toml similarity index 100% rename from br/tests/lightning_record_network/config.toml rename to lightning/tests/lightning_record_network/config.toml diff --git a/br/tests/lightning_record_network/data/db-schema-create.sql b/lightning/tests/lightning_record_network/data/db-schema-create.sql similarity index 100% rename from br/tests/lightning_record_network/data/db-schema-create.sql rename to lightning/tests/lightning_record_network/data/db-schema-create.sql diff --git a/br/tests/lightning_record_network/data/db.test-schema.sql b/lightning/tests/lightning_record_network/data/db.test-schema.sql similarity index 100% rename from br/tests/lightning_record_network/data/db.test-schema.sql rename to lightning/tests/lightning_record_network/data/db.test-schema.sql diff --git a/br/tests/lightning_record_network/data/db.test.1.sql b/lightning/tests/lightning_record_network/data/db.test.1.sql similarity index 100% rename from br/tests/lightning_record_network/data/db.test.1.sql rename to lightning/tests/lightning_record_network/data/db.test.1.sql diff --git a/br/tests/lightning_record_network/run.sh b/lightning/tests/lightning_record_network/run.sh similarity index 100% rename from br/tests/lightning_record_network/run.sh rename to lightning/tests/lightning_record_network/run.sh diff --git a/br/tests/lightning_reload_cert/config.toml b/lightning/tests/lightning_reload_cert/config.toml similarity index 100% rename from br/tests/lightning_reload_cert/config.toml rename to lightning/tests/lightning_reload_cert/config.toml diff --git a/br/tests/lightning_reload_cert/data/test-schema-create.sql b/lightning/tests/lightning_reload_cert/data/test-schema-create.sql similarity index 100% rename from br/tests/lightning_reload_cert/data/test-schema-create.sql rename to lightning/tests/lightning_reload_cert/data/test-schema-create.sql diff --git a/br/tests/lightning_reload_cert/data/test.t-schema.sql b/lightning/tests/lightning_reload_cert/data/test.t-schema.sql similarity index 100% rename from br/tests/lightning_reload_cert/data/test.t-schema.sql rename to lightning/tests/lightning_reload_cert/data/test.t-schema.sql diff --git a/br/tests/lightning_reload_cert/data/test.t.sql b/lightning/tests/lightning_reload_cert/data/test.t.sql similarity index 100% rename from br/tests/lightning_reload_cert/data/test.t.sql rename to lightning/tests/lightning_reload_cert/data/test.t.sql diff --git a/br/tests/lightning_reload_cert/run.sh b/lightning/tests/lightning_reload_cert/run.sh similarity index 100% rename from br/tests/lightning_reload_cert/run.sh rename to lightning/tests/lightning_reload_cert/run.sh diff --git a/br/tests/lightning_restore/config.toml b/lightning/tests/lightning_restore/config.toml similarity index 100% rename from br/tests/lightning_restore/config.toml rename to lightning/tests/lightning_restore/config.toml diff --git a/br/tests/lightning_restore/run.sh b/lightning/tests/lightning_restore/run.sh similarity index 100% rename from br/tests/lightning_restore/run.sh rename to lightning/tests/lightning_restore/run.sh diff --git a/br/tests/lightning_routes/config.toml b/lightning/tests/lightning_routes/config.toml similarity index 100% rename from br/tests/lightning_routes/config.toml rename to lightning/tests/lightning_routes/config.toml diff --git a/br/tests/lightning_routes/data/routes_a0-schema-create.sql b/lightning/tests/lightning_routes/data/routes_a0-schema-create.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0-schema-create.sql rename to lightning/tests/lightning_routes/data/routes_a0-schema-create.sql diff --git a/br/tests/lightning_routes/data/routes_a0.t0-schema.sql b/lightning/tests/lightning_routes/data/routes_a0.t0-schema.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0.t0-schema.sql rename to lightning/tests/lightning_routes/data/routes_a0.t0-schema.sql diff --git a/br/tests/lightning_routes/data/routes_a0.t0.1.sql b/lightning/tests/lightning_routes/data/routes_a0.t0.1.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0.t0.1.sql rename to lightning/tests/lightning_routes/data/routes_a0.t0.1.sql diff --git a/br/tests/lightning_routes/data/routes_a0.t0.2.sql b/lightning/tests/lightning_routes/data/routes_a0.t0.2.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0.t0.2.sql rename to lightning/tests/lightning_routes/data/routes_a0.t0.2.sql diff --git a/br/tests/lightning_routes/data/routes_a0.t1-schema.sql b/lightning/tests/lightning_routes/data/routes_a0.t1-schema.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0.t1-schema.sql rename to lightning/tests/lightning_routes/data/routes_a0.t1-schema.sql diff --git a/br/tests/lightning_routes/data/routes_a0.t1.1.sql b/lightning/tests/lightning_routes/data/routes_a0.t1.1.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a0.t1.1.sql rename to lightning/tests/lightning_routes/data/routes_a0.t1.1.sql diff --git a/br/tests/lightning_routes/data/routes_a1-schema-create.sql b/lightning/tests/lightning_routes/data/routes_a1-schema-create.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a1-schema-create.sql rename to lightning/tests/lightning_routes/data/routes_a1-schema-create.sql diff --git a/br/tests/lightning_routes/data/routes_a1.s1-schema.sql b/lightning/tests/lightning_routes/data/routes_a1.s1-schema.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a1.s1-schema.sql rename to lightning/tests/lightning_routes/data/routes_a1.s1-schema.sql diff --git a/br/tests/lightning_routes/data/routes_a1.s1.sql b/lightning/tests/lightning_routes/data/routes_a1.s1.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a1.s1.sql rename to lightning/tests/lightning_routes/data/routes_a1.s1.sql diff --git a/br/tests/lightning_routes/data/routes_a1.t2-schema.sql b/lightning/tests/lightning_routes/data/routes_a1.t2-schema.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a1.t2-schema.sql rename to lightning/tests/lightning_routes/data/routes_a1.t2-schema.sql diff --git a/br/tests/lightning_routes/data/routes_a1.t2.sql b/lightning/tests/lightning_routes/data/routes_a1.t2.sql similarity index 100% rename from br/tests/lightning_routes/data/routes_a1.t2.sql rename to lightning/tests/lightning_routes/data/routes_a1.t2.sql diff --git a/br/tests/lightning_routes/run.sh b/lightning/tests/lightning_routes/run.sh similarity index 54% rename from br/tests/lightning_routes/run.sh rename to lightning/tests/lightning_routes/run.sh index c361aca0c673b..a9d40aa6ce547 100755 --- a/br/tests/lightning_routes/run.sh +++ b/lightning/tests/lightning_routes/run.sh @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Basic check for whether routing rules work diff --git a/br/tests/lightning_routes_panic/config.toml b/lightning/tests/lightning_routes_panic/config.toml similarity index 100% rename from br/tests/lightning_routes_panic/config.toml rename to lightning/tests/lightning_routes_panic/config.toml diff --git a/br/tests/lightning_routes_panic/data/test1.dump_test.001.sql b/lightning/tests/lightning_routes_panic/data/test1.dump_test.001.sql similarity index 100% rename from br/tests/lightning_routes_panic/data/test1.dump_test.001.sql rename to lightning/tests/lightning_routes_panic/data/test1.dump_test.001.sql diff --git a/br/tests/lightning_routes_panic/data/test1.dump_test.002.sql b/lightning/tests/lightning_routes_panic/data/test1.dump_test.002.sql similarity index 100% rename from br/tests/lightning_routes_panic/data/test1.dump_test.002.sql rename to lightning/tests/lightning_routes_panic/data/test1.dump_test.002.sql diff --git a/br/tests/lightning_routes_panic/data/test1.dump_test.003.sql b/lightning/tests/lightning_routes_panic/data/test1.dump_test.003.sql similarity index 100% rename from br/tests/lightning_routes_panic/data/test1.dump_test.003.sql rename to lightning/tests/lightning_routes_panic/data/test1.dump_test.003.sql diff --git a/lightning/tests/lightning_routes_panic/run.sh b/lightning/tests/lightning_routes_panic/run.sh new file mode 100755 index 0000000000000..7e1137d762c4d --- /dev/null +++ b/lightning/tests/lightning_routes_panic/run.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Basic check for whether routing rules work + +set -eux + +run_sql 'DROP DATABASE IF EXISTS test1;' +run_sql 'DROP DATABASE IF EXISTS test;' + +run_sql 'CREATE DATABASE test1;' +run_sql 'CREATE DATABASE test;' +run_sql 'CREATE TABLE test1.dump_test (x real primary key);' +run_sql 'CREATE TABLE test.u (x real primary key);' + +run_lightning + +run_sql 'SELECT sum(x) FROM test.u;' +check_contains 'sum(x): 43' diff --git a/br/tests/lightning_row-format-v2/config.toml b/lightning/tests/lightning_row-format-v2/config.toml similarity index 100% rename from br/tests/lightning_row-format-v2/config.toml rename to lightning/tests/lightning_row-format-v2/config.toml diff --git a/br/tests/lightning_row-format-v2/data/rowformatv2-schema-create.sql b/lightning/tests/lightning_row-format-v2/data/rowformatv2-schema-create.sql similarity index 100% rename from br/tests/lightning_row-format-v2/data/rowformatv2-schema-create.sql rename to lightning/tests/lightning_row-format-v2/data/rowformatv2-schema-create.sql diff --git a/br/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql b/lightning/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql similarity index 100% rename from br/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql rename to lightning/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql diff --git a/br/tests/lightning_row-format-v2/data/rowformatv2.t1.1.sql b/lightning/tests/lightning_row-format-v2/data/rowformatv2.t1.1.sql similarity index 100% rename from br/tests/lightning_row-format-v2/data/rowformatv2.t1.1.sql rename to lightning/tests/lightning_row-format-v2/data/rowformatv2.t1.1.sql diff --git a/br/tests/lightning_row-format-v2/run.sh b/lightning/tests/lightning_row-format-v2/run.sh similarity index 59% rename from br/tests/lightning_row-format-v2/run.sh rename to lightning/tests/lightning_row-format-v2/run.sh index ea86d7ee0a234..c4cf368159d80 100644 --- a/br/tests/lightning_row-format-v2/run.sh +++ b/lightning/tests/lightning_row-format-v2/run.sh @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Basic check for correctness when row format v2 is active. # (There's no way to verify if the rows are really in format v2 though...) diff --git a/br/tests/lightning_s3/config.toml b/lightning/tests/lightning_s3/config.toml similarity index 100% rename from br/tests/lightning_s3/config.toml rename to lightning/tests/lightning_s3/config.toml diff --git a/br/tests/lightning_s3/config_manual_files.toml b/lightning/tests/lightning_s3/config_manual_files.toml similarity index 100% rename from br/tests/lightning_s3/config_manual_files.toml rename to lightning/tests/lightning_s3/config_manual_files.toml diff --git a/br/tests/lightning_s3/config_s3_checkpoint.toml b/lightning/tests/lightning_s3/config_s3_checkpoint.toml similarity index 100% rename from br/tests/lightning_s3/config_s3_checkpoint.toml rename to lightning/tests/lightning_s3/config_s3_checkpoint.toml diff --git a/br/tests/lightning_s3/run.sh b/lightning/tests/lightning_s3/run.sh similarity index 99% rename from br/tests/lightning_s3/run.sh rename to lightning/tests/lightning_s3/run.sh index 302eaec59cf1a..0d08032cc06cc 100755 --- a/br/tests/lightning_s3/run.sh +++ b/lightning/tests/lightning_s3/run.sh @@ -38,7 +38,7 @@ export MINIO_BROWSER=off export S3_ENDPOINT=127.0.0.1:9900 rm -rf "${TEST_DIR:?}/${DB:?}" mkdir -p "$TEST_DIR/$DB" -bin/minio server --address $S3_ENDPOINT "$DBPATH" & +minio server --address $S3_ENDPOINT "$DBPATH" & i=0 while ! curl -o /dev/null -v -s "http://$S3_ENDPOINT/"; do i=$((i+1)) diff --git a/br/tests/lightning_shard_rowid/config.toml b/lightning/tests/lightning_shard_rowid/config.toml similarity index 100% rename from br/tests/lightning_shard_rowid/config.toml rename to lightning/tests/lightning_shard_rowid/config.toml diff --git a/br/tests/lightning_shard_rowid/data/shard_rowid-schema-create.sql b/lightning/tests/lightning_shard_rowid/data/shard_rowid-schema-create.sql similarity index 100% rename from br/tests/lightning_shard_rowid/data/shard_rowid-schema-create.sql rename to lightning/tests/lightning_shard_rowid/data/shard_rowid-schema-create.sql diff --git a/br/tests/lightning_shard_rowid/data/shard_rowid.shr-schema.sql b/lightning/tests/lightning_shard_rowid/data/shard_rowid.shr-schema.sql similarity index 100% rename from br/tests/lightning_shard_rowid/data/shard_rowid.shr-schema.sql rename to lightning/tests/lightning_shard_rowid/data/shard_rowid.shr-schema.sql diff --git a/br/tests/lightning_shard_rowid/data/shard_rowid.shr.0.sql b/lightning/tests/lightning_shard_rowid/data/shard_rowid.shr.0.sql similarity index 100% rename from br/tests/lightning_shard_rowid/data/shard_rowid.shr.0.sql rename to lightning/tests/lightning_shard_rowid/data/shard_rowid.shr.0.sql diff --git a/br/tests/lightning_shard_rowid/run.sh b/lightning/tests/lightning_shard_rowid/run.sh similarity index 100% rename from br/tests/lightning_shard_rowid/run.sh rename to lightning/tests/lightning_shard_rowid/run.sh diff --git a/br/tests/lightning_source_linkfile/config.toml b/lightning/tests/lightning_source_linkfile/config.toml similarity index 100% rename from br/tests/lightning_source_linkfile/config.toml rename to lightning/tests/lightning_source_linkfile/config.toml diff --git a/br/tests/lightning_source_linkfile/run.sh b/lightning/tests/lightning_source_linkfile/run.sh similarity index 100% rename from br/tests/lightning_source_linkfile/run.sh rename to lightning/tests/lightning_source_linkfile/run.sh diff --git a/br/tests/lightning_sqlmode/data/sqlmodedb-schema-create.sql b/lightning/tests/lightning_sqlmode/data/sqlmodedb-schema-create.sql similarity index 100% rename from br/tests/lightning_sqlmode/data/sqlmodedb-schema-create.sql rename to lightning/tests/lightning_sqlmode/data/sqlmodedb-schema-create.sql diff --git a/br/tests/lightning_sqlmode/data/sqlmodedb.t-schema.sql b/lightning/tests/lightning_sqlmode/data/sqlmodedb.t-schema.sql similarity index 100% rename from br/tests/lightning_sqlmode/data/sqlmodedb.t-schema.sql rename to lightning/tests/lightning_sqlmode/data/sqlmodedb.t-schema.sql diff --git a/br/tests/lightning_sqlmode/data/sqlmodedb.t.1.sql b/lightning/tests/lightning_sqlmode/data/sqlmodedb.t.1.sql similarity index 100% rename from br/tests/lightning_sqlmode/data/sqlmodedb.t.1.sql rename to lightning/tests/lightning_sqlmode/data/sqlmodedb.t.1.sql diff --git a/br/tests/lightning_sqlmode/off.toml b/lightning/tests/lightning_sqlmode/off.toml similarity index 100% rename from br/tests/lightning_sqlmode/off.toml rename to lightning/tests/lightning_sqlmode/off.toml diff --git a/br/tests/lightning_sqlmode/on.toml b/lightning/tests/lightning_sqlmode/on.toml similarity index 100% rename from br/tests/lightning_sqlmode/on.toml rename to lightning/tests/lightning_sqlmode/on.toml diff --git a/br/tests/lightning_sqlmode/run.sh b/lightning/tests/lightning_sqlmode/run.sh similarity index 100% rename from br/tests/lightning_sqlmode/run.sh rename to lightning/tests/lightning_sqlmode/run.sh diff --git a/br/tests/lightning_tidb_duplicate_data/data/dup-schema-create.sql b/lightning/tests/lightning_tidb_duplicate_data/data/dup-schema-create.sql similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/data/dup-schema-create.sql rename to lightning/tests/lightning_tidb_duplicate_data/data/dup-schema-create.sql diff --git a/br/tests/lightning_tidb_duplicate_data/data/dup.dup-schema.sql b/lightning/tests/lightning_tidb_duplicate_data/data/dup.dup-schema.sql similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/data/dup.dup-schema.sql rename to lightning/tests/lightning_tidb_duplicate_data/data/dup.dup-schema.sql diff --git a/br/tests/lightning_tidb_duplicate_data/data/dup.dup.sql b/lightning/tests/lightning_tidb_duplicate_data/data/dup.dup.sql similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/data/dup.dup.sql rename to lightning/tests/lightning_tidb_duplicate_data/data/dup.dup.sql diff --git a/br/tests/lightning_tidb_duplicate_data/error.toml b/lightning/tests/lightning_tidb_duplicate_data/error.toml similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/error.toml rename to lightning/tests/lightning_tidb_duplicate_data/error.toml diff --git a/br/tests/lightning_tidb_duplicate_data/ignore.toml b/lightning/tests/lightning_tidb_duplicate_data/ignore.toml similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/ignore.toml rename to lightning/tests/lightning_tidb_duplicate_data/ignore.toml diff --git a/br/tests/lightning_tidb_duplicate_data/replace.toml b/lightning/tests/lightning_tidb_duplicate_data/replace.toml similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/replace.toml rename to lightning/tests/lightning_tidb_duplicate_data/replace.toml diff --git a/br/tests/lightning_tidb_duplicate_data/run.sh b/lightning/tests/lightning_tidb_duplicate_data/run.sh similarity index 100% rename from br/tests/lightning_tidb_duplicate_data/run.sh rename to lightning/tests/lightning_tidb_duplicate_data/run.sh diff --git a/br/tests/lightning_tidb_rowid/config.toml b/lightning/tests/lightning_tidb_rowid/config.toml similarity index 100% rename from br/tests/lightning_tidb_rowid/config.toml rename to lightning/tests/lightning_tidb_rowid/config.toml diff --git a/br/tests/lightning_tidb_rowid/data/rowid-schema-create.sql b/lightning/tests/lightning_tidb_rowid/data/rowid-schema-create.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid-schema-create.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid-schema-create.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.explicit_tidb_rowid.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.non_pk-schema.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.non_pk-schema.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.non_pk-schema.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.non_pk-schema.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.non_pk.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.non_pk.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.non_pk.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.non_pk.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc-schema.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc-schema.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc-schema.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.non_pk_auto_inc.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.pre_rebase-schema.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.pre_rebase-schema.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.pre_rebase-schema.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.pre_rebase-schema.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.pre_rebase.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.pre_rebase.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.pre_rebase.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.pre_rebase.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc-schema.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc-schema.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc-schema.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc-schema.sql diff --git a/br/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc.sql b/lightning/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc.sql similarity index 100% rename from br/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc.sql rename to lightning/tests/lightning_tidb_rowid/data/rowid.specific_auto_inc.sql diff --git a/br/tests/lightning_tidb_rowid/run.sh b/lightning/tests/lightning_tidb_rowid/run.sh similarity index 100% rename from br/tests/lightning_tidb_rowid/run.sh rename to lightning/tests/lightning_tidb_rowid/run.sh diff --git a/br/tests/lightning_tiflash/config.toml b/lightning/tests/lightning_tiflash/config.toml similarity index 100% rename from br/tests/lightning_tiflash/config.toml rename to lightning/tests/lightning_tiflash/config.toml diff --git a/br/tests/lightning_tiflash/run.sh b/lightning/tests/lightning_tiflash/run.sh similarity index 100% rename from br/tests/lightning_tiflash/run.sh rename to lightning/tests/lightning_tiflash/run.sh diff --git a/br/tests/lightning_tikv_multi_rocksdb/config.toml b/lightning/tests/lightning_tikv_multi_rocksdb/config.toml similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/config.toml rename to lightning/tests/lightning_tikv_multi_rocksdb/config.toml diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng-schema-create.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng-schema-create.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng-schema-create.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng-schema-create.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a-schema.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a-schema.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a-schema.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a-schema.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.1.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.1.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.1.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.1.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.2.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.2.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.2.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.2.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.3.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.3.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.3.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.a.3.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b-schema.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b-schema.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b-schema.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b-schema.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.1.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.1.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.1.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.1.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.2.sql b/lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.2.sql similarity index 100% rename from br/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.2.sql rename to lightning/tests/lightning_tikv_multi_rocksdb/data/cpeng.b.2.sql diff --git a/br/tests/lightning_tikv_multi_rocksdb/run.sh b/lightning/tests/lightning_tikv_multi_rocksdb/run.sh similarity index 97% rename from br/tests/lightning_tikv_multi_rocksdb/run.sh rename to lightning/tests/lightning_tikv_multi_rocksdb/run.sh index 4d865b77f02e6..67fae00079993 100755 --- a/br/tests/lightning_tikv_multi_rocksdb/run.sh +++ b/lightning/tests/lightning_tikv_multi_rocksdb/run.sh @@ -17,7 +17,7 @@ set -eux CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) -. $CUR/../_utils/run_services +. $UTILS_DIR/run_services export TIKV_CONFIG="$CUR/../config/tikv-multi-rocksdb.toml" restart_services diff --git a/br/tests/lightning_too_many_columns/config.toml b/lightning/tests/lightning_too_many_columns/config.toml similarity index 100% rename from br/tests/lightning_too_many_columns/config.toml rename to lightning/tests/lightning_too_many_columns/config.toml diff --git a/br/tests/lightning_too_many_columns/data/too_many_columns-schema-create.sql b/lightning/tests/lightning_too_many_columns/data/too_many_columns-schema-create.sql similarity index 100% rename from br/tests/lightning_too_many_columns/data/too_many_columns-schema-create.sql rename to lightning/tests/lightning_too_many_columns/data/too_many_columns-schema-create.sql diff --git a/br/tests/lightning_too_many_columns/data/too_many_columns.t-schema.sql b/lightning/tests/lightning_too_many_columns/data/too_many_columns.t-schema.sql similarity index 100% rename from br/tests/lightning_too_many_columns/data/too_many_columns.t-schema.sql rename to lightning/tests/lightning_too_many_columns/data/too_many_columns.t-schema.sql diff --git a/br/tests/lightning_too_many_columns/data/too_many_columns.t.0.csv b/lightning/tests/lightning_too_many_columns/data/too_many_columns.t.0.csv similarity index 100% rename from br/tests/lightning_too_many_columns/data/too_many_columns.t.0.csv rename to lightning/tests/lightning_too_many_columns/data/too_many_columns.t.0.csv diff --git a/br/tests/lightning_too_many_columns/run.sh b/lightning/tests/lightning_too_many_columns/run.sh similarity index 100% rename from br/tests/lightning_too_many_columns/run.sh rename to lightning/tests/lightning_too_many_columns/run.sh diff --git a/br/tests/lightning_tool_135/config.toml b/lightning/tests/lightning_tool_135/config.toml similarity index 100% rename from br/tests/lightning_tool_135/config.toml rename to lightning/tests/lightning_tool_135/config.toml diff --git a/br/tests/lightning_tool_135/data/tool_135-schema-create.sql b/lightning/tests/lightning_tool_135/data/tool_135-schema-create.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135-schema-create.sql rename to lightning/tests/lightning_tool_135/data/tool_135-schema-create.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar1-schema.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar1-schema.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar1-schema.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar1-schema.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar1.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar1.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar1.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar1.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar2-schema.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar2-schema.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar2-schema.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar2-schema.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar2.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar2.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar2.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar2.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar3-schema.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar3-schema.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar3-schema.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar3-schema.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar3.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar3.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar3.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar3.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar4-schema.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar4-schema.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar4-schema.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar4-schema.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar4.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar4.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar4.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar4.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar5-schema.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar5-schema.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar5-schema.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar5-schema.sql diff --git a/br/tests/lightning_tool_135/data/tool_135.bar5.sql b/lightning/tests/lightning_tool_135/data/tool_135.bar5.sql similarity index 100% rename from br/tests/lightning_tool_135/data/tool_135.bar5.sql rename to lightning/tests/lightning_tool_135/data/tool_135.bar5.sql diff --git a/br/tests/lightning_tool_135/run.sh b/lightning/tests/lightning_tool_135/run.sh similarity index 100% rename from br/tests/lightning_tool_135/run.sh rename to lightning/tests/lightning_tool_135/run.sh diff --git a/br/tests/lightning_tool_1420/config.toml b/lightning/tests/lightning_tool_1420/config.toml similarity index 100% rename from br/tests/lightning_tool_1420/config.toml rename to lightning/tests/lightning_tool_1420/config.toml diff --git a/br/tests/lightning_tool_1420/data/EE1420-schema-create.sql b/lightning/tests/lightning_tool_1420/data/EE1420-schema-create.sql similarity index 100% rename from br/tests/lightning_tool_1420/data/EE1420-schema-create.sql rename to lightning/tests/lightning_tool_1420/data/EE1420-schema-create.sql diff --git a/br/tests/lightning_tool_1420/data/EE1420.pt_role-schema.sql b/lightning/tests/lightning_tool_1420/data/EE1420.pt_role-schema.sql similarity index 100% rename from br/tests/lightning_tool_1420/data/EE1420.pt_role-schema.sql rename to lightning/tests/lightning_tool_1420/data/EE1420.pt_role-schema.sql diff --git a/br/tests/lightning_tool_1420/data/EE1420.pt_role.sql b/lightning/tests/lightning_tool_1420/data/EE1420.pt_role.sql similarity index 100% rename from br/tests/lightning_tool_1420/data/EE1420.pt_role.sql rename to lightning/tests/lightning_tool_1420/data/EE1420.pt_role.sql diff --git a/br/tests/lightning_tool_1420/run.sh b/lightning/tests/lightning_tool_1420/run.sh similarity index 100% rename from br/tests/lightning_tool_1420/run.sh rename to lightning/tests/lightning_tool_1420/run.sh diff --git a/br/tests/lightning_tool_1472/config.toml b/lightning/tests/lightning_tool_1472/config.toml similarity index 100% rename from br/tests/lightning_tool_1472/config.toml rename to lightning/tests/lightning_tool_1472/config.toml diff --git a/br/tests/lightning_tool_1472/data/EE1472-schema-create.sql b/lightning/tests/lightning_tool_1472/data/EE1472-schema-create.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472-schema-create.sql rename to lightning/tests/lightning_tool_1472/data/EE1472-schema-create.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.notpk-schema.sql b/lightning/tests/lightning_tool_1472/data/EE1472.notpk-schema.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.notpk-schema.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.notpk-schema.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.notpk.1.sql b/lightning/tests/lightning_tool_1472/data/EE1472.notpk.1.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.notpk.1.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.notpk.1.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.notpk.2.sql b/lightning/tests/lightning_tool_1472/data/EE1472.notpk.2.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.notpk.2.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.notpk.2.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.pk-schema.sql b/lightning/tests/lightning_tool_1472/data/EE1472.pk-schema.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.pk-schema.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.pk-schema.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.pk.1.sql b/lightning/tests/lightning_tool_1472/data/EE1472.pk.1.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.pk.1.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.pk.1.sql diff --git a/br/tests/lightning_tool_1472/data/EE1472.pk.2.sql b/lightning/tests/lightning_tool_1472/data/EE1472.pk.2.sql similarity index 100% rename from br/tests/lightning_tool_1472/data/EE1472.pk.2.sql rename to lightning/tests/lightning_tool_1472/data/EE1472.pk.2.sql diff --git a/br/tests/lightning_tool_1472/run.sh b/lightning/tests/lightning_tool_1472/run.sh similarity index 100% rename from br/tests/lightning_tool_1472/run.sh rename to lightning/tests/lightning_tool_1472/run.sh diff --git a/br/tests/lightning_tool_241/config.toml b/lightning/tests/lightning_tool_241/config.toml similarity index 100% rename from br/tests/lightning_tool_241/config.toml rename to lightning/tests/lightning_tool_241/config.toml diff --git a/br/tests/lightning_tool_241/data/qyjc-schema-create.sql b/lightning/tests/lightning_tool_241/data/qyjc-schema-create.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc-schema-create.sql rename to lightning/tests/lightning_tool_241/data/qyjc-schema-create.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_alarm_group-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_alarm_group-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_alarm_group-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_alarm_group-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_alarm_group.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_alarm_group.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_alarm_group.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_alarm_group.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_alarm_message_log.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_alarm_message_log.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_alarm_message_log.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_alarm_message_log.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_alarm_receiver-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_alarm_receiver-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_alarm_receiver-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_alarm_receiver-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_config-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_config-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_config-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_config-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_fish_event-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_fish_event-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_fish_event-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_fish_event-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_fish_event.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_fish_event.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_fish_event.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_fish_event.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_report_circular_data-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_report_circular_data-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_report_circular_data-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_report_circular_data-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_report_desc-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_report_desc-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_report_desc-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_report_desc-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_report_summary-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_report_summary-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_report_summary-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_report_summary-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_system_update.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_system_update.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_system_update.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_system_update.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_user_log-schema.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_user_log-schema.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_user_log-schema.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_user_log-schema.sql diff --git a/br/tests/lightning_tool_241/data/qyjc.q_user_log.sql b/lightning/tests/lightning_tool_241/data/qyjc.q_user_log.sql similarity index 100% rename from br/tests/lightning_tool_241/data/qyjc.q_user_log.sql rename to lightning/tests/lightning_tool_241/data/qyjc.q_user_log.sql diff --git a/br/tests/lightning_tool_241/run.sh b/lightning/tests/lightning_tool_241/run.sh similarity index 100% rename from br/tests/lightning_tool_241/run.sh rename to lightning/tests/lightning_tool_241/run.sh diff --git a/br/tests/lightning_ttl/config.toml b/lightning/tests/lightning_ttl/config.toml similarity index 100% rename from br/tests/lightning_ttl/config.toml rename to lightning/tests/lightning_ttl/config.toml diff --git a/br/tests/lightning_ttl/data/ttldb-schema-create.sql b/lightning/tests/lightning_ttl/data/ttldb-schema-create.sql similarity index 100% rename from br/tests/lightning_ttl/data/ttldb-schema-create.sql rename to lightning/tests/lightning_ttl/data/ttldb-schema-create.sql diff --git a/br/tests/lightning_ttl/data/ttldb.t1-schema.sql b/lightning/tests/lightning_ttl/data/ttldb.t1-schema.sql similarity index 100% rename from br/tests/lightning_ttl/data/ttldb.t1-schema.sql rename to lightning/tests/lightning_ttl/data/ttldb.t1-schema.sql diff --git a/br/tests/lightning_ttl/data/ttldb.t1.0.sql b/lightning/tests/lightning_ttl/data/ttldb.t1.0.sql similarity index 100% rename from br/tests/lightning_ttl/data/ttldb.t1.0.sql rename to lightning/tests/lightning_ttl/data/ttldb.t1.0.sql diff --git a/br/tests/lightning_ttl/run.sh b/lightning/tests/lightning_ttl/run.sh similarity index 100% rename from br/tests/lightning_ttl/run.sh rename to lightning/tests/lightning_ttl/run.sh diff --git a/br/tests/lightning_unused_config_keys/config.toml b/lightning/tests/lightning_unused_config_keys/config.toml similarity index 100% rename from br/tests/lightning_unused_config_keys/config.toml rename to lightning/tests/lightning_unused_config_keys/config.toml diff --git a/br/tests/lightning_unused_config_keys/data/unused_config_keys-schema-create.sql b/lightning/tests/lightning_unused_config_keys/data/unused_config_keys-schema-create.sql similarity index 100% rename from br/tests/lightning_unused_config_keys/data/unused_config_keys-schema-create.sql rename to lightning/tests/lightning_unused_config_keys/data/unused_config_keys-schema-create.sql diff --git a/br/tests/lightning_unused_config_keys/run.sh b/lightning/tests/lightning_unused_config_keys/run.sh similarity index 100% rename from br/tests/lightning_unused_config_keys/run.sh rename to lightning/tests/lightning_unused_config_keys/run.sh diff --git a/br/tests/lightning_various_types/config.toml b/lightning/tests/lightning_various_types/config.toml similarity index 100% rename from br/tests/lightning_various_types/config.toml rename to lightning/tests/lightning_various_types/config.toml diff --git a/br/tests/lightning_various_types/data/vt-schema-create.sql b/lightning/tests/lightning_various_types/data/vt-schema-create.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt-schema-create.sql rename to lightning/tests/lightning_various_types/data/vt-schema-create.sql diff --git a/br/tests/lightning_various_types/data/vt.bigint-schema.sql b/lightning/tests/lightning_various_types/data/vt.bigint-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.bigint-schema.sql rename to lightning/tests/lightning_various_types/data/vt.bigint-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.bigint.0.sql b/lightning/tests/lightning_various_types/data/vt.bigint.0.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.bigint.0.sql rename to lightning/tests/lightning_various_types/data/vt.bigint.0.sql diff --git a/br/tests/lightning_various_types/data/vt.binary-schema.sql b/lightning/tests/lightning_various_types/data/vt.binary-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.binary-schema.sql rename to lightning/tests/lightning_various_types/data/vt.binary-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.binary.sql b/lightning/tests/lightning_various_types/data/vt.binary.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.binary.sql rename to lightning/tests/lightning_various_types/data/vt.binary.sql diff --git a/br/tests/lightning_various_types/data/vt.bit-schema.sql b/lightning/tests/lightning_various_types/data/vt.bit-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.bit-schema.sql rename to lightning/tests/lightning_various_types/data/vt.bit-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.bit.sql b/lightning/tests/lightning_various_types/data/vt.bit.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.bit.sql rename to lightning/tests/lightning_various_types/data/vt.bit.sql diff --git a/br/tests/lightning_various_types/data/vt.char-schema.sql b/lightning/tests/lightning_various_types/data/vt.char-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.char-schema.sql rename to lightning/tests/lightning_various_types/data/vt.char-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.char.sql b/lightning/tests/lightning_various_types/data/vt.char.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.char.sql rename to lightning/tests/lightning_various_types/data/vt.char.sql diff --git a/br/tests/lightning_various_types/data/vt.datetime-schema.sql b/lightning/tests/lightning_various_types/data/vt.datetime-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.datetime-schema.sql rename to lightning/tests/lightning_various_types/data/vt.datetime-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.datetime.sql b/lightning/tests/lightning_various_types/data/vt.datetime.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.datetime.sql rename to lightning/tests/lightning_various_types/data/vt.datetime.sql diff --git a/br/tests/lightning_various_types/data/vt.decimal-schema.sql b/lightning/tests/lightning_various_types/data/vt.decimal-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.decimal-schema.sql rename to lightning/tests/lightning_various_types/data/vt.decimal-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.decimal.sql b/lightning/tests/lightning_various_types/data/vt.decimal.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.decimal.sql rename to lightning/tests/lightning_various_types/data/vt.decimal.sql diff --git a/br/tests/lightning_various_types/data/vt.double-schema.sql b/lightning/tests/lightning_various_types/data/vt.double-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.double-schema.sql rename to lightning/tests/lightning_various_types/data/vt.double-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.double.sql b/lightning/tests/lightning_various_types/data/vt.double.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.double.sql rename to lightning/tests/lightning_various_types/data/vt.double.sql diff --git a/br/tests/lightning_various_types/data/vt.empty_strings-schema.sql b/lightning/tests/lightning_various_types/data/vt.empty_strings-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.empty_strings-schema.sql rename to lightning/tests/lightning_various_types/data/vt.empty_strings-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.empty_strings.sql b/lightning/tests/lightning_various_types/data/vt.empty_strings.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.empty_strings.sql rename to lightning/tests/lightning_various_types/data/vt.empty_strings.sql diff --git a/br/tests/lightning_various_types/data/vt.enum-set-schema.sql b/lightning/tests/lightning_various_types/data/vt.enum-set-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.enum-set-schema.sql rename to lightning/tests/lightning_various_types/data/vt.enum-set-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.enum-set.sql b/lightning/tests/lightning_various_types/data/vt.enum-set.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.enum-set.sql rename to lightning/tests/lightning_various_types/data/vt.enum-set.sql diff --git a/br/tests/lightning_various_types/data/vt.json-schema.sql b/lightning/tests/lightning_various_types/data/vt.json-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.json-schema.sql rename to lightning/tests/lightning_various_types/data/vt.json-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.json.sql b/lightning/tests/lightning_various_types/data/vt.json.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.json.sql rename to lightning/tests/lightning_various_types/data/vt.json.sql diff --git a/br/tests/lightning_various_types/data/vt.precise_types-schema.sql b/lightning/tests/lightning_various_types/data/vt.precise_types-schema.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.precise_types-schema.sql rename to lightning/tests/lightning_various_types/data/vt.precise_types-schema.sql diff --git a/br/tests/lightning_various_types/data/vt.precise_types.sql b/lightning/tests/lightning_various_types/data/vt.precise_types.sql similarity index 100% rename from br/tests/lightning_various_types/data/vt.precise_types.sql rename to lightning/tests/lightning_various_types/data/vt.precise_types.sql diff --git a/br/tests/lightning_various_types/run.sh b/lightning/tests/lightning_various_types/run.sh similarity index 100% rename from br/tests/lightning_various_types/run.sh rename to lightning/tests/lightning_various_types/run.sh diff --git a/br/tests/lightning_view/config.toml b/lightning/tests/lightning_view/config.toml similarity index 100% rename from br/tests/lightning_view/config.toml rename to lightning/tests/lightning_view/config.toml diff --git a/br/tests/lightning_view/data/db0-schema-create.sql b/lightning/tests/lightning_view/data/db0-schema-create.sql similarity index 100% rename from br/tests/lightning_view/data/db0-schema-create.sql rename to lightning/tests/lightning_view/data/db0-schema-create.sql diff --git a/br/tests/lightning_view/data/db0.v2-schema-view.sql b/lightning/tests/lightning_view/data/db0.v2-schema-view.sql similarity index 100% rename from br/tests/lightning_view/data/db0.v2-schema-view.sql rename to lightning/tests/lightning_view/data/db0.v2-schema-view.sql diff --git a/br/tests/lightning_view/data/db0.v2-schema.sql b/lightning/tests/lightning_view/data/db0.v2-schema.sql similarity index 100% rename from br/tests/lightning_view/data/db0.v2-schema.sql rename to lightning/tests/lightning_view/data/db0.v2-schema.sql diff --git a/br/tests/lightning_view/data/db1-schema-create.sql b/lightning/tests/lightning_view/data/db1-schema-create.sql similarity index 100% rename from br/tests/lightning_view/data/db1-schema-create.sql rename to lightning/tests/lightning_view/data/db1-schema-create.sql diff --git a/br/tests/lightning_view/data/db1.tbl-schema.sql b/lightning/tests/lightning_view/data/db1.tbl-schema.sql similarity index 100% rename from br/tests/lightning_view/data/db1.tbl-schema.sql rename to lightning/tests/lightning_view/data/db1.tbl-schema.sql diff --git a/br/tests/lightning_view/data/db1.tbl.0.sql b/lightning/tests/lightning_view/data/db1.tbl.0.sql similarity index 100% rename from br/tests/lightning_view/data/db1.tbl.0.sql rename to lightning/tests/lightning_view/data/db1.tbl.0.sql diff --git a/br/tests/lightning_view/data/db1.v1-schema-view.sql b/lightning/tests/lightning_view/data/db1.v1-schema-view.sql similarity index 100% rename from br/tests/lightning_view/data/db1.v1-schema-view.sql rename to lightning/tests/lightning_view/data/db1.v1-schema-view.sql diff --git a/br/tests/lightning_view/data/db1.v1-schema.sql b/lightning/tests/lightning_view/data/db1.v1-schema.sql similarity index 100% rename from br/tests/lightning_view/data/db1.v1-schema.sql rename to lightning/tests/lightning_view/data/db1.v1-schema.sql diff --git a/br/tests/lightning_view/run.sh b/lightning/tests/lightning_view/run.sh similarity index 100% rename from br/tests/lightning_view/run.sh rename to lightning/tests/lightning_view/run.sh diff --git a/br/tests/lightning_write_batch/kv-count.toml b/lightning/tests/lightning_write_batch/kv-count.toml similarity index 100% rename from br/tests/lightning_write_batch/kv-count.toml rename to lightning/tests/lightning_write_batch/kv-count.toml diff --git a/br/tests/lightning_write_batch/kv-size.toml b/lightning/tests/lightning_write_batch/kv-size.toml similarity index 100% rename from br/tests/lightning_write_batch/kv-size.toml rename to lightning/tests/lightning_write_batch/kv-size.toml diff --git a/br/tests/lightning_write_batch/run.sh b/lightning/tests/lightning_write_batch/run.sh similarity index 100% rename from br/tests/lightning_write_batch/run.sh rename to lightning/tests/lightning_write_batch/run.sh diff --git a/br/tests/lightning_write_limit/config.toml b/lightning/tests/lightning_write_limit/config.toml similarity index 100% rename from br/tests/lightning_write_limit/config.toml rename to lightning/tests/lightning_write_limit/config.toml diff --git a/br/tests/lightning_write_limit/run.sh b/lightning/tests/lightning_write_limit/run.sh similarity index 100% rename from br/tests/lightning_write_limit/run.sh rename to lightning/tests/lightning_write_limit/run.sh diff --git a/lightning/tests/run.sh b/lightning/tests/run.sh new file mode 100755 index 0000000000000..5a4c02b6624ca --- /dev/null +++ b/lightning/tests/run.sh @@ -0,0 +1,83 @@ +#!/bin/bash +# +# Copyright 2019 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eu +CUR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +export UTILS_DIR="$CUR/../../tests/_utils" +export PATH="$PATH:$CUR/../../bin:$UTILS_DIR" +export TEST_DIR=/tmp/lightning_test +export COV_DIR="/tmp/group_cover" +mkdir -p $COV_DIR || true +export TIDB_CONFIG="$CUR/config/tidb.toml" +export TIKV_CONFIG="$CUR/config/tikv.toml" +export PD_CONFIG="$CUR/config/pd.toml" +export TESTS_ROOT="$CUR" +source $UTILS_DIR/run_services + +# Create COV_DIR if not exists +if [ -d "$COV_DIR" ]; then + mkdir -p $COV_DIR +fi + +# Reset TEST_DIR +rm -rf $TEST_DIR && mkdir -p $TEST_DIR + +# Generate TLS certs +generate_certs &> /dev/null + +SELECTED_TEST_NAME="${TEST_NAME-$(find tests -mindepth 2 -maxdepth 2 -name run.sh | cut -d/ -f2 | sort)}" + +trap stop_services EXIT +start_services $@ + +# Intermediate file needed because read can be used as a pipe target. +# https://stackoverflow.com/q/2746553/ +run_curl "https://$PD_ADDR/pd/api/v1/version" | grep -o 'v[0-9.]\+' > "$TEST_DIR/cluster_version.txt" +IFS='.' read CLUSTER_VERSION_MAJOR CLUSTER_VERSION_MINOR CLUSTER_VERSION_REVISION < "$TEST_DIR/cluster_version.txt" + +if [ "${1-}" = '--debug' ]; then + echo 'You may now debug from another terminal. Press [ENTER] to continue.' + read line +fi + +echo "selected test cases: $SELECTED_TEST_NAME" + +run_case() { + local case=$1 + local script=$2 + echo "*===== Running test $script... =====*" + INTEGRATION_TEST=1 \ + TEST_DIR="$TEST_DIR" \ + TEST_NAME="$case" \ + CLUSTER_VERSION_MAJOR="${CLUSTER_VERSION_MAJOR#v}" \ + CLUSTER_VERSION_MINOR="$CLUSTER_VERSION_MINOR" \ + CLUSTER_VERSION_REVISION="$CLUSTER_VERSION_REVISION" \ + PD_ADDR="$PD_ADDR" \ + TIDB_IP="$TIDB_IP" \ + TIDB_PORT="$TIDB_PORT" \ + TIDB_ADDR="$TIDB_ADDR" \ + TIDB_STATUS_ADDR="$TIDB_STATUS_ADDR" \ + TIKV_ADDR="$TIKV_ADDR" \ + bash "$script" && echo "*===== TEST: [$case] success! =====*" +} + +# wait for global variable cache invalid +sleep 2 + +for casename in $SELECTED_TEST_NAME; do + script="$CUR/$casename/run.sh" + run_case "$casename" "$script" +done diff --git a/br/tests/run_group_lightning_tests.sh b/lightning/tests/run_group_lightning_tests.sh similarity index 88% rename from br/tests/run_group_lightning_tests.sh rename to lightning/tests/run_group_lightning_tests.sh index 0aedd1330c1a6..639828d55931e 100755 --- a/br/tests/run_group_lightning_tests.sh +++ b/lightning/tests/run_group_lightning_tests.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # This script split the integration tests into 9 groups to support parallel group tests execution. # all the integration tests are located in br/tests directory. only the directories @@ -59,8 +73,8 @@ elif [[ " ${!groups[*]} " =~ " ${group} " ]]; then echo "Run cases: ${test_names}" for case_name in $test_names; do echo "Run cases: ${case_name}" - rm -rf /tmp/backup_restore_test - mkdir -p /tmp/backup_restore_test + rm -rf /tmp/lightning_test + mkdir -p /tmp/lightning_test TEST_NAME=${case_name} ${CUR}/run.sh done fi diff --git a/br/tests/_utils/br_tikv_outage_util b/tests/_utils/br_tikv_outage_util similarity index 69% rename from br/tests/_utils/br_tikv_outage_util rename to tests/_utils/br_tikv_outage_util index 6871fbd253686..192a2ebb195b4 100644 --- a/br/tests/_utils/br_tikv_outage_util +++ b/tests/_utils/br_tikv_outage_util @@ -1,3 +1,17 @@ +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. cur_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) @@ -38,7 +52,7 @@ single_point_fault() { load() { run_sql "create database if not exists $TEST_NAME" - go-ycsb load mysql -P $cur_dir/../"$TEST_NAME"/workload -p mysql.host="$TIDB_IP" -p mysql.port="$TIDB_PORT" -p mysql.user=root -p mysql.db="$TEST_NAME" + go-ycsb load mysql -P $TESTS_ROOT/"$TEST_NAME"/workload -p mysql.host="$TIDB_IP" -p mysql.port="$TIDB_PORT" -p mysql.user=root -p mysql.db="$TEST_NAME" run_sql 'use '$TEST_NAME'; show tables' } @@ -47,4 +61,4 @@ check() { run_br restore full -s local://"$backup_dir" count=$(run_sql 'select count(*) from '$TEST_NAME'.usertable;' | tail -n 1 | awk '{print $2}') [ "$count" -eq 20000 ] -} \ No newline at end of file +} diff --git a/br/tests/_utils/check_cluster_version b/tests/_utils/check_cluster_version similarity index 100% rename from br/tests/_utils/check_cluster_version rename to tests/_utils/check_cluster_version diff --git a/br/tests/_utils/check_contains b/tests/_utils/check_contains similarity index 100% rename from br/tests/_utils/check_contains rename to tests/_utils/check_contains diff --git a/br/tests/_utils/check_not_contains b/tests/_utils/check_not_contains similarity index 100% rename from br/tests/_utils/check_not_contains rename to tests/_utils/check_not_contains diff --git a/br/tests/config/ipsan.cnf b/tests/_utils/config/ipsan.cnf similarity index 100% rename from br/tests/config/ipsan.cnf rename to tests/_utils/config/ipsan.cnf diff --git a/br/tests/config/rootca.conf b/tests/_utils/config/rootca.conf similarity index 100% rename from br/tests/config/rootca.conf rename to tests/_utils/config/rootca.conf diff --git a/br/tests/_utils/generate_certs b/tests/_utils/generate_certs similarity index 90% rename from br/tests/_utils/generate_certs rename to tests/_utils/generate_certs index f7343f153d78f..b336750786abc 100755 --- a/br/tests/_utils/generate_certs +++ b/tests/_utils/generate_certs @@ -21,11 +21,11 @@ mkdir -p $TEST_DIR/certs openssl ecparam -out "$TEST_DIR/certs/ca.key" -name prime256v1 -genkey # CA's Common Name must not be the same as signed certificate. openssl req -new -batch -sha256 -subj '/CN=br_tests' -key "$TEST_DIR/certs/ca.key" -out "$TEST_DIR/certs/ca.csr" -openssl x509 -req -sha256 -days 2 -in "$TEST_DIR/certs/ca.csr" -extfile "${cur_dir}/../config/rootca.conf" -extensions ext -signkey "$TEST_DIR/certs/ca.key" -out "$TEST_DIR/certs/ca.pem" +openssl x509 -req -sha256 -days 2 -in "$TEST_DIR/certs/ca.csr" -extfile "${cur_dir}/config/rootca.conf" -extensions ext -signkey "$TEST_DIR/certs/ca.key" -out "$TEST_DIR/certs/ca.pem" for cluster in tidb pd tikv lightning tiflash curl ticdc br; do openssl ecparam -out "$TEST_DIR/certs/$cluster.key" -name prime256v1 -genkey openssl req -new -batch -sha256 -subj '/CN=localhost' -key "$TEST_DIR/certs/$cluster.key" -out "$TEST_DIR/certs/$cluster.csr" - openssl x509 -req -sha256 -days 1 -extensions EXT -extfile "${cur_dir}/../config/ipsan.cnf" \ + openssl x509 -req -sha256 -days 1 -extensions EXT -extfile "${cur_dir}/config/ipsan.cnf" \ -in "$TEST_DIR/certs/$cluster.csr" \ -CA "$TEST_DIR/certs/ca.pem" \ -CAkey "$TEST_DIR/certs/ca.key" \ diff --git a/br/tests/_utils/make_tiflash_config b/tests/_utils/make_tiflash_config similarity index 66% rename from br/tests/_utils/make_tiflash_config rename to tests/_utils/make_tiflash_config index 182dce569a476..02cdcc4e54d84 100755 --- a/br/tests/_utils/make_tiflash_config +++ b/tests/_utils/make_tiflash_config @@ -1,4 +1,18 @@ #!/bin/sh +# +# Copyright 2022 PingCAP, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. cat > $TEST_DIR/tiflash-learner.toml <>>>>>" >> "$TEST_DIR/lightning.log" +echo "[$(date)] <<<<<< RUNNING TEST FOR: $TESTS_ROOT/$TEST_NAME $@ >>>>>>" >> "$TEST_DIR/lightning.log" tidb-lightning.test -test.coverprofile="$COV_DIR/cov.$TEST_NAME.$$.out" DEVEL \ --ca "$TEST_DIR/certs/ca.pem" \ --cert "$TEST_DIR/certs/lightning.pem" \ @@ -26,8 +26,8 @@ tidb-lightning.test -test.coverprofile="$COV_DIR/cov.$TEST_NAME.$$.out" DEVEL \ --log-file "$TEST_DIR/lightning.log" \ --tidb-port 4000 \ --pd-urls '127.0.0.1:2379' \ - --config "$cur_dir/../$TEST_NAME/config.toml" \ - -d "$cur_dir/../$TEST_NAME/data" \ + --config "$TESTS_ROOT/$TEST_NAME/config.toml" \ + -d "$TESTS_ROOT/$TEST_NAME/data" \ --sorted-kv-dir "$TEST_DIR/$TEST_NAME.sorted" \ --enable-checkpoint=0 \ --check-requirements=0 \ diff --git a/br/tests/_utils/run_lightning_ctl b/tests/_utils/run_lightning_ctl similarity index 96% rename from br/tests/_utils/run_lightning_ctl rename to tests/_utils/run_lightning_ctl index 9d08a214bcebc..b7e6e94041702 100755 --- a/br/tests/_utils/run_lightning_ctl +++ b/tests/_utils/run_lightning_ctl @@ -25,7 +25,7 @@ tidb-lightning-ctl.test -test.coverprofile="$COV_DIR/cov.ctl.$TEST_NAME.$$.out" --log-file "$TEST_DIR/lightning.log" \ --tidb-port 4000 \ --pd-urls '127.0.0.1:2379' \ - -d "$cur_dir/../$TEST_NAME/data" \ + -d "$TESTS_ROOT/$TEST_NAME/data" \ --sorted-kv-dir "$TEST_DIR/$TEST_NAME.sorted" \ --enable-checkpoint=0 \ --check-requirements=0 \ diff --git a/br/tests/_utils/run_pd_ctl b/tests/_utils/run_pd_ctl similarity index 100% rename from br/tests/_utils/run_pd_ctl rename to tests/_utils/run_pd_ctl diff --git a/br/tests/_utils/run_services b/tests/_utils/run_services similarity index 96% rename from br/tests/_utils/run_services rename to tests/_utils/run_services index 54c225c5053f1..5963ef125d116 100644 --- a/br/tests/_utils/run_services +++ b/tests/_utils/run_services @@ -127,7 +127,7 @@ kv_outage() { if [ -e "${TIKV_PIDS}_$i" ]; then TIKV_CONFIG=$(cat "${TIKV_PIDS}_$i" | awk '{print $2}') else - TIKV_CONFIG=${TIKV_CONFIG:-"$cur_dir/../config/tikv.toml"} + TIKV_CONFIG=${TIKV_CONFIG:-"$TESTS_ROOT/config/tikv.toml"} fi start_tikv "$i" done @@ -193,9 +193,6 @@ start_services_impl() { stop_services || true cleanup_data || true - TIDB_CONFIG=${TIDB_CONFIG:-"$cur_dir/../config/tidb.toml"} - TIKV_CONFIG=${TIKV_CONFIG:-"$cur_dir/../config/tikv.toml"} - PD_CONFIG=${PD_CONFIG:-"$cur_dir/../config/pd.toml"} RUN_TIFLASH=true while [[ $# -gt 0 ]] diff --git a/br/tests/_utils/run_sql b/tests/_utils/run_sql similarity index 100% rename from br/tests/_utils/run_sql rename to tests/_utils/run_sql diff --git a/br/tests/_utils/run_sql_file b/tests/_utils/run_sql_file similarity index 100% rename from br/tests/_utils/run_sql_file rename to tests/_utils/run_sql_file diff --git a/br/tests/_utils/run_sql_in_container b/tests/_utils/run_sql_in_container similarity index 100% rename from br/tests/_utils/run_sql_in_container rename to tests/_utils/run_sql_in_container diff --git a/br/tests/br_gcs/BUILD.bazel b/tools/fake-oauth/BUILD.bazel similarity index 51% rename from br/tests/br_gcs/BUILD.bazel rename to tools/fake-oauth/BUILD.bazel index b6ebf428740e3..9b43a57e0edb3 100644 --- a/br/tests/br_gcs/BUILD.bazel +++ b/tools/fake-oauth/BUILD.bazel @@ -1,14 +1,14 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "br_gcs_lib", - srcs = ["oauth.go"], - importpath = "github.com/pingcap/tidb/br/tests/br_gcs", + name = "fake-oauth_lib", + srcs = ["main.go"], + importpath = "github.com/pingcap/tidb/tools/fake-oauth", visibility = ["//visibility:private"], ) go_binary( - name = "br_gcs", - embed = [":br_gcs_lib"], + name = "fake-oauth", + embed = [":fake-oauth_lib"], visibility = ["//visibility:public"], ) diff --git a/br/tests/br_gcs/oauth.go b/tools/fake-oauth/main.go similarity index 100% rename from br/tests/br_gcs/oauth.go rename to tools/fake-oauth/main.go diff --git a/br/tests/lightning_checkpoint_parquet/BUILD.bazel b/tools/gen-parquet/BUILD.bazel similarity index 55% rename from br/tests/lightning_checkpoint_parquet/BUILD.bazel rename to tools/gen-parquet/BUILD.bazel index ee879d2d67c1b..08eba16858c31 100644 --- a/br/tests/lightning_checkpoint_parquet/BUILD.bazel +++ b/tools/gen-parquet/BUILD.bazel @@ -1,9 +1,9 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "lightning_checkpoint_parquet_lib", - srcs = ["parquet.go"], - importpath = "github.com/pingcap/tidb/br/tests/lightning_checkpoint_parquet", + name = "gen-parquet_lib", + srcs = ["main.go"], + importpath = "github.com/pingcap/tidb/tools/gen-parquet", visibility = ["//visibility:private"], deps = [ "@com_github_xitongsys_parquet_go//writer", @@ -12,7 +12,7 @@ go_library( ) go_binary( - name = "lightning_checkpoint_parquet", - embed = [":lightning_checkpoint_parquet_lib"], + name = "gen-parquet", + embed = [":gen-parquet_lib"], visibility = ["//visibility:public"], ) diff --git a/br/tests/lightning_checkpoint_parquet/parquet.go b/tools/gen-parquet/main.go similarity index 70% rename from br/tests/lightning_checkpoint_parquet/parquet.go rename to tools/gen-parquet/main.go index b2ea1c46f7171..4d7a38fc99b0c 100644 --- a/br/tests/lightning_checkpoint_parquet/parquet.go +++ b/tools/gen-parquet/main.go @@ -1,3 +1,17 @@ +// Copyright 2020 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import (