include ../Makefile
UNAME_S := $(shell uname -s)
asan:
RUST_BACKTRACE=1 ASAN_OPTIONS=detect_leaks=1 RUSTFLAGS=-Zsanitizer=address RUSTDOCFLAGS=-Zsanitizer=address cargo +nightly test --lib --bins --tests --examples --target `rustc -vV | sed -n 's|host: ||p'` --features asan
asan-release:
RUST_BACKTRACE=1 ASAN_OPTIONS=detect_leaks=1 RUSTFLAGS=-Zsanitizer=address RUSTDOCFLAGS=-Zsanitizer=address cargo +nightly test --release --lib --bins --tests --examples --target `rustc -vV | sed -n 's|host: ||p'` --features asan
asan-fips:
RUST_BACKTRACE=1 ASAN_OPTIONS=detect_leaks=1 RUSTFLAGS=-Zsanitizer=address RUSTDOCFLAGS=-Zsanitizer=address cargo +nightly test --lib --bins --tests --examples --target `rustc -vV | sed -n 's|host: ||p'` --no-default-features --features fips,asan
coverage:
cargo llvm-cov --no-fail-fast --fail-under-lines 95 --ignore-filename-regex "aws-lc-sys/*"
test:
cargo test --all-targets --features ring-benchmarks
cargo test --release --all-targets
ifeq ($(UNAME_S),Linux)
cargo test --release --all-targets --features fips
cargo test --no-default-features --features fips
endif
cargo test --no-default-features --features aws-lc-sys
cargo test --no-default-features --features aws-lc-sys,ring-sig-verify
cargo test --no-default-features --features aws-lc-sys,ring-io
cargo test --no-default-features --features aws-lc-sys,alloc
ci: format clippy test coverage api-diff-pub
.PHONY: asan asan-fips asan-release ci clippy coverage test