about summary refs log tree commit diff
path: root/library/compiler-builtins/ci/run-extensive.sh
blob: 4ba41a026fab60d6752c475fd8a1f5a873a62417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -euo pipefail

echo "Tests to run: '$TO_TEST'"

if [ -z "$TO_TEST" ]; then
    echo "No tests to run, exiting."
    exit
fi

set -x

test_cmd=(
    cargo test
    --package libm-test
    --features "build-mpfr,libm/unstable,libm/force-soft-floats"
    --profile release-checked
)

# Run the non-extensive tests first to catch any easy failures
"${test_cmd[@]}" -- "$TO_TEST"

LIBM_EXTENSIVE_TESTS="$TO_TEST" "${test_cmd[@]}" -- extensive