]> git.lizzy.rs Git - rust.git/blob - test.sh
Make it easier to use build_sysroot.sh
[rust.git] / test.sh
1 #!/bin/bash
2 set -e
3
4 # Build cg_clif
5 export RUSTFLAGS="-Zrun_dsymutil=no"
6 if [[ "$1" == "--release" ]]; then
7     export CHANNEL='release'
8     cargo build --release
9 else
10     export CHANNEL='debug'
11     cargo build --bin cg_clif
12 fi
13
14 # Config
15 source scripts/config.sh
16 source scripts/tests.sh
17 export CG_CLIF_INCR_CACHE_DISABLED=1
18
19 # Cleanup
20 rm -r target/out || true
21
22 no_sysroot_tests
23
24 echo "[BUILD] sysroot"
25 time ./build_sysroot/build_sysroot.sh
26
27 base_sysroot_tests
28
29 extended_sysroot_tests