mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

* fix build after stabilization of cfg_target_feature and target_feature * fix doc tests * fix spurious unused_attributes warning * fix more unused attribute warnings * More unnecessary target features * Remove no longer needed trait imports * Remove fixed upstream workarounds * Fix parsing the #[assert_instr] macro Following upstream proc_macro changes * Fix form and parsing of #[simd_test] * Don't use Cargo features for testing modes Instead use RUSTFLAGS with `--cfg`. This'll help us be compatible with the latest Cargo where a tweak to workspaces and features made the previous invocations we had invalid. * Don't thread RUSTFLAGS through docker * Re-gate on x86 verification Closes #411
37 lines
863 B
Bash
Executable File
37 lines
863 B
Bash
Executable File
# Small script to run tests for a target (or all targets) inside all the
|
|
# respective docker images.
|
|
|
|
set -ex
|
|
|
|
run() {
|
|
echo "Building docker container for TARGET=${1}"
|
|
docker build -t stdsimd ci/docker/$1
|
|
mkdir -p target
|
|
target=$(echo $1 | sed 's/-emulated//')
|
|
echo "Running docker"
|
|
docker run \
|
|
--user `id -u`:`id -g` \
|
|
--rm \
|
|
--init \
|
|
--volume $HOME/.cargo:/cargo \
|
|
--env CARGO_HOME=/cargo \
|
|
--volume `rustc --print sysroot`:/rust:ro \
|
|
--env TARGET=$target \
|
|
--env STDSIMD_TEST_EVERYTHING \
|
|
--volume `pwd`:/checkout:ro \
|
|
--volume `pwd`/target:/checkout/target \
|
|
--workdir /checkout \
|
|
--privileged \
|
|
stdsimd \
|
|
bash \
|
|
-c 'PATH=$PATH:/rust/bin exec ci/run.sh'
|
|
}
|
|
|
|
if [ -z "$1" ]; then
|
|
for d in `ls ci/docker/`; do
|
|
run $d
|
|
done
|
|
else
|
|
run $1
|
|
fi
|