@@ -80,73 +80,73 @@ function base_sysroot_tests() {
80
80
81
81
function extended_sysroot_tests() {
82
82
pushd rand
83
- ../build/cargo clean
83
+ ../build/cargo-clif clean
84
84
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
85
85
echo " [TEST] rust-random/rand"
86
- ../build/cargo test --workspace
86
+ ../build/cargo-clif test --workspace
87
87
else
88
88
echo " [AOT] rust-random/rand"
89
- ../build/cargo build --workspace --target $TARGET_TRIPLE --tests
89
+ ../build/cargo-clif build --workspace --target $TARGET_TRIPLE --tests
90
90
fi
91
91
popd
92
92
93
93
pushd simple-raytracer
94
94
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
95
95
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" \
97
97
" RUSTC=rustc RUSTFLAGS='' cargo build" \
98
- " ../build/cargo build"
98
+ " ../build/cargo-clif build"
99
99
100
100
echo " [BENCH RUN] ebobby/simple-raytracer"
101
101
cp ./target/debug/main ./raytracer_cg_clif
102
102
hyperfine --runs " ${RUN_RUNS:- 10} " ./raytracer_cg_llvm ./raytracer_cg_clif
103
103
else
104
- ../build/cargo clean
104
+ ../build/cargo-clif clean
105
105
echo " [BENCH COMPILE] ebobby/simple-raytracer (skipped)"
106
106
echo " [COMPILE] ebobby/simple-raytracer"
107
- ../build/cargo build --target $TARGET_TRIPLE
107
+ ../build/cargo-clif build --target $TARGET_TRIPLE
108
108
echo " [BENCH RUN] ebobby/simple-raytracer (skipped)"
109
109
fi
110
110
popd
111
111
112
112
pushd build_sysroot/sysroot_src/library/core/tests
113
113
echo " [TEST] libcore"
114
- ../../../../../build/cargo clean
114
+ ../../../../../build/cargo-clif clean
115
115
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
116
- ../../../../../build/cargo test
116
+ ../../../../../build/cargo-clif test
117
117
else
118
- ../../../../../build/cargo build --target $TARGET_TRIPLE --tests
118
+ ../../../../../build/cargo-clif build --target $TARGET_TRIPLE --tests
119
119
fi
120
120
popd
121
121
122
122
pushd regex
123
123
echo " [TEST] rust-lang/regex example shootout-regex-dna"
124
- ../build/cargo clean
124
+ ../build/cargo-clif clean
125
125
export RUSTFLAGS=" $RUSTFLAGS --cap-lints warn" # newer aho_corasick versions throw a deprecation warning
126
126
# 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
128
128
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
129
129
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 \
131
131
| grep -v " Spawned thread" > res.txt
132
132
diff -u res.txt examples/regexdna-output.txt
133
133
fi
134
134
135
135
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
136
136
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
138
138
else
139
139
echo " [AOT] rust-lang/regex tests"
140
- ../build/cargo build --tests --target $TARGET_TRIPLE
140
+ ../build/cargo-clif build --tests --target $TARGET_TRIPLE
141
141
fi
142
142
popd
143
143
144
144
pushd portable-simd
145
145
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
148
148
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
149
- ../build/cargo test -q
149
+ ../build/cargo-clif test -q
150
150
fi
151
151
popd
152
152
}
0 commit comments