]> git.lizzy.rs Git - rust.git/blobdiff - test.sh
Remove byteorder dependency
[rust.git] / test.sh
diff --git a/test.sh b/test.sh
index 95c6c6a582f693f7d79a6a6f43a2b1816dc2076f..67dd4d3aa00113aa722b5af24b8b15a064488e3c 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
-
 set -e
 
+# Build cg_clif
 if [[ "$1" == "--release" ]]; then
     export CHANNEL='release'
     CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no
@@ -10,11 +10,16 @@ else
     cargo rustc -- -Zrun_dsymutil=no
 fi
 
-source config.sh
+# Config
+source scripts/config.sh
+export CG_CLIF_INCR_CACHE_DISABLED=1
+RUSTC="rustc $RUSTFLAGS -L crate=target/out --out-dir target/out"
 
+# Cleanup
 rm -r target/out || true
 mkdir -p target/out/clif
 
+# Perform all tests
 echo "[BUILD] mini_core"
 $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE