123456789101112131415161718 |
- #!/usr/bin/env bash
- set -x
- TESTCMD=(test)
- # if cargo nextest is installed, use it instead!
- if cargo list | grep -q "nextest"; then
- TESTCMD=(nextest run --cargo-profile loom)
- fi
- RUSTFLAGS="--cfg loom ${RUSTFLAGS}" \
- LOOM_LOG="${LOOM_LOG:-info}" \
- LOOM_MAX_PREEMPTIONS="${LOOM_MAX_PREEMPTIONS:-2}" \
- cargo ${TESTCMD[@]} \
- --profile loom \
- --lib \
- "$@"
|