Add an alias to build test images simply

This commit is contained in:
Kirill Bulatov
2022-09-16 11:35:51 +03:00
committed by Kirill Bulatov
parent 65a5010e25
commit b46c8b4ae0
2 changed files with 5 additions and 0 deletions

View File

@@ -11,3 +11,6 @@ opt-level = 3
[profile.dev] [profile.dev]
# Turn on a small amount of optimization in Development mode. # Turn on a small amount of optimization in Development mode.
opt-level = 1 opt-level = 1
[alias]
build_testing = ["build", "--features", "failpoints"]

View File

@@ -7,6 +7,8 @@ Prerequisites:
- Neon and Postgres binaries - Neon and Postgres binaries
- See the root [README.md](/README.md) for build directions - 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. 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 - Tests can be run from the git tree; or see the environment variables
below to run from other directories. below to run from other directories.
- The neon git repo, including the postgres submodule - The neon git repo, including the postgres submodule