diff --git a/.cargo/config.toml b/.cargo/config.toml index 76a2ff549e..d70d57a817 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,3 +11,6 @@ opt-level = 3 [profile.dev] # Turn on a small amount of optimization in Development mode. opt-level = 1 + +[alias] +build_testing = ["build", "--features", "failpoints"] diff --git a/test_runner/README.md b/test_runner/README.md index 01fe4ff863..f17a4a5a5d 100644 --- a/test_runner/README.md +++ b/test_runner/README.md @@ -7,6 +7,8 @@ Prerequisites: - Neon and Postgres binaries - See the root [README.md](/README.md) for build directions If you want to test tests with failpoints, you would need to add `--features failpoints` to Rust code build commands. + For convenience, repository cargo config contains `build_testing` alias, that serves as a subcommand, adding the required feature flags. + Usage example: `cargo build_testing --release` is equivalent to `cargo build --features failpoints --release` - Tests can be run from the git tree; or see the environment variables below to run from other directories. - The neon git repo, including the postgres submodule