diff --git a/test_crate.sh b/test_crate.sh index a7f8edd..45162cc 100755 --- a/test_crate.sh +++ b/test_crate.sh @@ -9,19 +9,24 @@ echo "Testing $CRATE +$TOOLCHAIN" cd $CRATE function build() { - (cd "$CRATE" && RUSTFLAGS='-Zincremental-verify-ich' cargo "+$TOOLCHAIN" build --features=full) + (cd "$CRATE" && cargo "+$TOOLCHAIN" rustc --features=full --verbose -- -Zincremental-verify-ich -Zquery-dep-graph -Zdump-dep-graph) } -build - for patch in ./patches/* ; do + echo "Running fresh build..." + build + echo "Applying $patch..." (cd "$CRATE" && git apply "../$patch") + export RUST_DEP_GRAPH="../dep_graph1" build (cd "$CRATE" && git checkout HEAD .) + echo "Reverting $patch..." + + export RUST_DEP_GRAPH="../dep_graph2" build done \ No newline at end of file