@@ -80,73 +80,73 @@ function base_sysroot_tests() {
8080
8181function extended_sysroot_tests() {
8282 pushd rand
83- ../build/cargo clean
83+ ../build/cargo-clif clean
8484 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
8585 echo " [TEST] rust-random/rand"
86- ../build/cargo test --workspace
86+ ../build/cargo-clif test --workspace
8787 else
8888 echo " [AOT] rust-random/rand"
89- ../build/cargo build --workspace --target $TARGET_TRIPLE --tests
89+ ../build/cargo-clif build --workspace --target $TARGET_TRIPLE --tests
9090 fi
9191 popd
9292
9393 pushd simple-raytracer
9494 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
9595 echo " [BENCH COMPILE] ebobby/simple-raytracer"
96- hyperfine --runs " ${RUN_RUNS:- 10} " --warmup 1 --prepare " ../build/cargo clean" \
96+ hyperfine --runs " ${RUN_RUNS:- 10} " --warmup 1 --prepare " ../build/cargo-clif clean" \
9797 " RUSTC=rustc RUSTFLAGS='' cargo build" \
98- " ../build/cargo build"
98+ " ../build/cargo-clif build"
9999
100100 echo " [BENCH RUN] ebobby/simple-raytracer"
101101 cp ./target/debug/main ./raytracer_cg_clif
102102 hyperfine --runs " ${RUN_RUNS:- 10} " ./raytracer_cg_llvm ./raytracer_cg_clif
103103 else
104- ../build/cargo clean
104+ ../build/cargo-clif clean
105105 echo " [BENCH COMPILE] ebobby/simple-raytracer (skipped)"
106106 echo " [COMPILE] ebobby/simple-raytracer"
107- ../build/cargo build --target $TARGET_TRIPLE
107+ ../build/cargo-clif build --target $TARGET_TRIPLE
108108 echo " [BENCH RUN] ebobby/simple-raytracer (skipped)"
109109 fi
110110 popd
111111
112112 pushd build_sysroot/sysroot_src/library/core/tests
113113 echo " [TEST] libcore"
114- ../../../../../build/cargo clean
114+ ../../../../../build/cargo-clif clean
115115 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
116- ../../../../../build/cargo test
116+ ../../../../../build/cargo-clif test
117117 else
118- ../../../../../build/cargo build --target $TARGET_TRIPLE --tests
118+ ../../../../../build/cargo-clif build --target $TARGET_TRIPLE --tests
119119 fi
120120 popd
121121
122122 pushd regex
123123 echo " [TEST] rust-lang/regex example shootout-regex-dna"
124- ../build/cargo clean
124+ ../build/cargo-clif clean
125125 export RUSTFLAGS=" $RUSTFLAGS --cap-lints warn" # newer aho_corasick versions throw a deprecation warning
126126 # Make sure `[codegen mono items] start` doesn't poison the diff
127- ../build/cargo build --example shootout-regex-dna --target $TARGET_TRIPLE
127+ ../build/cargo-clif build --example shootout-regex-dna --target $TARGET_TRIPLE
128128 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
129129 cat examples/regexdna-input.txt \
130- | ../build/cargo run --example shootout-regex-dna --target $TARGET_TRIPLE \
130+ | ../build/cargo-clif run --example shootout-regex-dna --target $TARGET_TRIPLE \
131131 | grep -v " Spawned thread" > res.txt
132132 diff -u res.txt examples/regexdna-output.txt
133133 fi
134134
135135 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
136136 echo " [TEST] rust-lang/regex tests"
137- ../build/cargo test --tests -- --exclude-should-panic --test-threads 1 -Zunstable-options -q
137+ ../build/cargo-clif test --tests -- --exclude-should-panic --test-threads 1 -Zunstable-options -q
138138 else
139139 echo " [AOT] rust-lang/regex tests"
140- ../build/cargo build --tests --target $TARGET_TRIPLE
140+ ../build/cargo-clif build --tests --target $TARGET_TRIPLE
141141 fi
142142 popd
143143
144144 pushd portable-simd
145145 echo " [TEST] rust-lang/portable-simd"
146- ../build/cargo clean
147- ../build/cargo build --all-targets --target $TARGET_TRIPLE
146+ ../build/cargo-clif clean
147+ ../build/cargo-clif build --all-targets --target $TARGET_TRIPLE
148148 if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
149- ../build/cargo test -q
149+ ../build/cargo-clif test -q
150150 fi
151151 popd
152152}
0 commit comments