1# Small script to run tests for a target (or all targets) inside all the 2# respective docker images. 3 4set -ex 5 6run() { 7 echo $1 8 docker build -t libc ci/docker/$1 9 docker run \ 10 --rm \ 11 -v `rustc --print sysroot`:/rust:ro \ 12 -v `pwd`:/checkout:ro \ 13 -e CARGO_TARGET_DIR=/tmp/target \ 14 -w /checkout \ 15 --privileged \ 16 -it libc \ 17 ci/run.sh $1 18} 19 20if [ -z "$1" ]; then 21 for d in `ls ci/docker/`; do 22 run $d 23 done 24else 25 run $1 26fi 27