3 # A script to update the references for all tests. The idea is that
4 # you do a run, which will generate files in the build directory
5 # containing the (normalized) actual output of the compiler. You then
6 # run this script, which will copy those files over. If you find
7 # yourself manually editing a foo.stderr file, you're doing it wrong.
9 # See all `update-references.sh`, if you just want to update a single test.
11 if [[ "$1" == "--help" || "$1" == "-h" ]]; then
15 BUILD_DIR=$PWD/target/debug/test_build_base
18 find . -name '*.rs' | xargs ./update-references.sh $BUILD_DIR