Fix indent
This commit is contained in:
parent
16e2443f61
commit
36cdaffe25
@ -38,29 +38,29 @@ test-stable-perf)
|
|||||||
ci/test-stable.sh \
|
ci/test-stable.sh \
|
||||||
^programs/ \
|
^programs/ \
|
||||||
^sdk/ \
|
^sdk/ \
|
||||||
|| {
|
|| {
|
||||||
annotate --style info \
|
annotate --style info \
|
||||||
"Skipped test-stable-perf as no relavant files were modified"
|
"Skipped test-stable-perf as no relavant files were modified"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run program package with these features
|
# Run program package with these features
|
||||||
PROGRAM_FEATURES=bpf_c,bpf_rust
|
PROGRAM_FEATURES=bpf_c,bpf_rust
|
||||||
|
|
||||||
# Run all BPF C tests
|
# Run all BPF C tests
|
||||||
_ make -C programs/bpf/c tests
|
_ make -C programs/bpf/c tests
|
||||||
|
|
||||||
# Must be built out of band
|
# Must be built out of band
|
||||||
_ make -C programs/bpf/rust/noop/ all
|
_ make -C programs/bpf/rust/noop/ all
|
||||||
|
|
||||||
_ cargo test --manifest-path programs/Cargo.toml --no-default-features --features="$PROGRAM_FEATURES"
|
_ cargo test --manifest-path programs/Cargo.toml --no-default-features --features="$PROGRAM_FEATURES"
|
||||||
_ cargo test --manifest-path programs/native/bpf_loader/Cargo.toml --no-default-features --features="$PROGRAM_FEATURES"
|
_ cargo test --manifest-path programs/native/bpf_loader/Cargo.toml --no-default-features --features="$PROGRAM_FEATURES"
|
||||||
|
|
||||||
# Run root package tests witht these features
|
# Run root package tests witht these features
|
||||||
ROOT_FEATURES=erasure,chacha
|
ROOT_FEATURES=erasure,chacha
|
||||||
if [[ $(uname) = Darwin ]]; then
|
if [[ $(uname) = Darwin ]]; then
|
||||||
./build-perf-libs.sh
|
./build-perf-libs.sh
|
||||||
else
|
else
|
||||||
# Enable persistence mode to keep the CUDA kernel driver loaded, avoiding a
|
# Enable persistence mode to keep the CUDA kernel driver loaded, avoiding a
|
||||||
# lengthy and unexpected delay the first time CUDA is involved when the driver
|
# lengthy and unexpected delay the first time CUDA is involved when the driver
|
||||||
# is not yet loaded.
|
# is not yet loaded.
|
||||||
@ -70,14 +70,14 @@ else
|
|||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source ./target/perf-libs/env.sh
|
source ./target/perf-libs/env.sh
|
||||||
ROOT_FEATURES=$ROOT_FEATURES,cuda
|
ROOT_FEATURES=$ROOT_FEATURES,cuda
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run root package library tests
|
# Run root package library tests
|
||||||
_ cargo build --all ${V:+--verbose} --features="$ROOT_FEATURES"
|
_ cargo build --all ${V:+--verbose} --features="$ROOT_FEATURES"
|
||||||
_ cargo test --all --lib ${V:+--verbose} --features="$ROOT_FEATURES" -- --nocapture --test-threads=1
|
_ cargo test --all --lib ${V:+--verbose} --features="$ROOT_FEATURES" -- --nocapture --test-threads=1
|
||||||
|
|
||||||
# Run root package integration tests
|
# Run root package integration tests
|
||||||
for test in tests/*.rs; do
|
for test in tests/*.rs; do
|
||||||
test=${test##*/} # basename x
|
test=${test##*/} # basename x
|
||||||
test=${test%.rs} # basename x .rs
|
test=${test%.rs} # basename x .rs
|
||||||
(
|
(
|
||||||
@ -85,7 +85,7 @@ for test in tests/*.rs; do
|
|||||||
_ cargo test --all ${V:+--verbose} --features="$ROOT_FEATURES" --test="$test" \
|
_ cargo test --all ${V:+--verbose} --features="$ROOT_FEATURES" --test="$test" \
|
||||||
-- --test-threads=1 --nocapture
|
-- --test-threads=1 --nocapture
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: Unknown test: $testName"
|
echo "Error: Unknown test: $testName"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user