tmi: disable --verbose by default. | export V=1| to request verbosity
This commit is contained in:
parent
1f0b3f954a
commit
eb3ba5ce2d
|
@ -19,7 +19,7 @@ for test in {,*/}tests/*.rs; do
|
||||||
(
|
(
|
||||||
export RUST_LOG="$test"=trace,$RUST_LOG
|
export RUST_LOG="$test"=trace,$RUST_LOG
|
||||||
# shellcheck disable=SC2086 # Don't want to double quote $maybeFeatures
|
# shellcheck disable=SC2086 # Don't want to double quote $maybeFeatures
|
||||||
_ cargo test --all --verbose $maybeFeatures --test="$test" \
|
_ cargo test --all ${V:+--verbose} $maybeFeatures --test="$test" \
|
||||||
-- --test-threads=1 --nocapture
|
-- --test-threads=1 --nocapture
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
|
@ -47,7 +47,7 @@ echo --- program/native/bpf_loader bench --features=bpf_c
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
cd programs/native/bpf_loader
|
cd programs/native/bpf_loader
|
||||||
cargo +nightly bench --verbose --features="bpf_c" \
|
cargo +nightly bench ${V:+--verbose} --features="bpf_c" \
|
||||||
-- -Z unstable-options --format=json --nocapture | tee -a ../../../"$BENCH_FILE"
|
-- -Z unstable-options --format=json --nocapture | tee -a ../../../"$BENCH_FILE"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@ export RUST_BACKTRACE=1
|
||||||
export RUSTFLAGS="-D warnings"
|
export RUSTFLAGS="-D warnings"
|
||||||
|
|
||||||
source scripts/ulimit-n.sh
|
source scripts/ulimit-n.sh
|
||||||
_ cargo build --all --verbose --features="$FEATURES"
|
_ cargo build --all ${V:+--verbose} --features="$FEATURES"
|
||||||
_ cargo test --all --verbose --features="$FEATURES" --lib -- --nocapture --test-threads=1
|
_ cargo test --all ${V:+--verbose} --features="$FEATURES" --lib -- --nocapture --test-threads=1
|
||||||
|
|
||||||
# Run native program tests (without $FEATURES)
|
# Run native program tests (without $FEATURES)
|
||||||
for program in programs/native/*; do
|
for program in programs/native/*; do
|
||||||
|
|
Loading…
Reference in New Issue