]> git.lizzy.rs Git - rust.git/blobdiff - test.sh
Also emit vcode when emitting clif ir while using new style backends
[rust.git] / test.sh
diff --git a/test.sh b/test.sh
index e7a0d6ab4e1f677e11c671d9d8ae4e8a51c479da..c6c4956e4817446aa580f20ab89d9dbce41ead0c 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,29 +1,15 @@
 #!/bin/bash
 set -e
 
-# Build cg_clif
 export RUSTFLAGS="-Zrun_dsymutil=no"
-if [[ "$1" == "--release" ]]; then
-    export CHANNEL='release'
-    cargo build --release
-else
-    export CHANNEL='debug'
-    cargo build --bin cg_clif
-fi
 
-# Config
-source scripts/config.sh
-source scripts/tests.sh
-export CG_CLIF_INCR_CACHE_DISABLED=1
+./build.sh --without-sysroot "$@"
 
-# Cleanup
 rm -r target/out || true
 
-no_sysroot_tests
+scripts/tests.sh no_sysroot
 
-echo "[BUILD] sysroot"
-time ./build_sysroot/build_sysroot.sh
+./build.sh "$@"
 
-base_sysroot_tests
-
-extended_sysroot_tests
+scripts/tests.sh base_sysroot
+scripts/tests.sh extended_sysroot