Correct coverage script

This commit is contained in:
강동윤 2020-05-23 20:15:41 +09:00
parent eaa51a3124
commit 598c179007

View File

@ -1,9 +1,12 @@
#!/bin/bash
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
set -eu
cargo test --no-run
cargo test
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests"
export RUSTDOCFLAGS="-Cpanic=abort"
cargo test --no-run --all --all-features --exclude node-swc wasm
cargo test --all --all-features --exclude node-swc wasm
zip -0 ccov.zip `find . \( -name "swc*.gc*" -o -name 'ast_node*.gc*' -o -name 'enum_kind*.gc*' -o -name 'string-enum*.gc*' -o -name 'from_variant*.gc*' \) -print`;