forked from tikv/tikv
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
if [[ $M == "fmt" ]]; then | ||
make gen_proxy_ffi | ||
GIT_STATUS=$(git status -s) && if [[ ${GIT_STATUS} ]]; then echo "Error: found illegal git status"; echo ${GIT_STATUS}; [[ -z ${GIT_STATUS} ]]; fi | ||
cargo fmt -- --check >/dev/null | ||
elif [[ $M == "testold" ]]; then | ||
export ENGINE_LABEL_VALUE=tiflash | ||
export RUST_BACKTRACE=full | ||
cargo check | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_normal | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_bootstrap | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_compact_log | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_early_apply | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_encryption | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_pd_client | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_pending_peers | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_transaction | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_cmd_epoch_checker | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_disk_full | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_snap | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_merge | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_import_service | ||
cargo test --features compat_old_proxy --package tests --test failpoints cases::test_proxy_replica_read | ||
elif [[ $M == "testnew" ]]; then | ||
# tests based on new-mock-engine-store, with compat for new proxy | ||
cargo test --package tests --test proxy normal::store | ||
cargo test --package tests --test proxy normal::region | ||
cargo test --package tests --test proxy normal::config | ||
cargo test --package tests --test proxy normal::write | ||
cargo test --package tests --test proxy normal::ingest | ||
cargo test --package tests --test proxy normal::snapshot | ||
cargo test --package tests --test proxy normal::restart | ||
# tests based on new-mock-engine-store, for some tests not available for new proxy | ||
cargo test --package tests --test proxy proxy | ||
elif [[ $M == "debug" ]]; then | ||
# export RUSTC_WRAPPER=~/.cargo/bin/sccache | ||
make debug | ||
fi |