Add a script to run compare using the docker image.

This commit is contained in:
Tom Alexander
2023-08-14 15:30:13 -04:00
parent e28290ed79
commit 5768c8acda
3 changed files with 53 additions and 1 deletions

View File

@@ -22,10 +22,11 @@ function get_test_names {
done
}
make -C "$DIR/../docker/organic_test"
get_test_names "$@" | while read test; do
(
cd "$DIR/../"
make -C docker/organic_test
docker run --rm -v "$(readlink -f ./):/.source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry -w / organic-test sh -c "cp -r /.source /source && cd /source && cargo test --no-fail-fast --lib --test test_loader \"$test\" -- --show-output"
)
done