rust/test.sh

30 lines
484 B
Bash
Raw Normal View History

2018-08-10 19:09:21 +02:00
#!/bin/bash
2019-07-30 14:51:05 +02:00
set -e
# Build cg_clif
2020-09-29 14:43:34 +02:00
export RUSTFLAGS="-Zrun_dsymutil=no"
if [[ "$1" == "--release" ]]; then
export CHANNEL='release'
2020-09-29 14:43:34 +02:00
cargo build --release
else
export CHANNEL='debug'
2020-09-29 14:43:34 +02:00
cargo build --bin cg_clif
fi
# Config
2020-09-16 16:46:02 +02:00
source scripts/config.sh
source scripts/tests.sh
export CG_CLIF_INCR_CACHE_DISABLED=1
# Cleanup
2018-08-31 19:50:26 +02:00
rm -r target/out || true
no_sysroot_tests
echo "[BUILD] sysroot"
2020-11-01 19:47:14 +01:00
time ./build_sysroot/build_sysroot.sh
2018-10-08 19:40:06 +02:00
base_sysroot_tests
extended_sysroot_tests