forked from rust-ndarray/ndarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall-tests.sh
More file actions
executable file
·34 lines (26 loc) · 931 Bytes
/
all-tests.sh
File metadata and controls
executable file
·34 lines (26 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
set -x
set -e
FEATURES=$1
CHANNEL=$2
QC_FEAT=--features=ndarray-rand/quickcheck
# build check with no features
cargo build -v --no-default-features
# ndarray with no features
cargo test -p ndarray -v --no-default-features
# ndarray with no_std-compatible features
cargo test -p ndarray -v --no-default-features --features approx
# all with features
cargo test -v --features "$FEATURES" $QC_FEAT
# all with features and release (ignore test crates which is already optimized)
cargo test -v -p ndarray -p ndarray-rand --release --features "$FEATURES" $QC_FEAT --lib --tests
# BLAS tests
cargo test -p ndarray --lib -v --features blas
cargo test -p blas-mock-tests -v
if [[ -z "${MSRV}" ]] && [ "$CHANNEL" != "$MSRV" ]; then
./scripts/blas-integ-tests.sh "$FEATURES" $CHANNEL
fi
# Examples
cargo test --examples
# Benchmarks
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")