swc/scripts/ci/test-concurrent.sh
Donny/강동윤 ac3fbd91ac
perf(bundler): Improve performance (#2384)
*:
 - Use `ahash` instread of `rustc-hash`.

swc_ecma_transforms_optimization:
 - Make `dce` parallel.
2021-10-09 08:08:13 +00:00

19 lines
402 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
echo "Checking if '$1' has feature 'concurrent'"
# Get crates with feature named `concurrent`
CRATES=$(./scripts/cargo/list-crates.sh | \
jq -r 'select(.features.concurrent != null) | .name')
if [[ "swc" == "$1" ]]; then
echo "Skipping swc itslef"
exit 0
fi
if [[ $CRATES == *"$1"* ]]; then
cargo test --color always -p $1 --features "$1/concurrent"
fi