about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-03-10 07:03:06 -0700
committerMark Simulacrum <mark.simulacrum@gmail.com>2018-04-03 11:41:50 -0600
commit42fde21c27c67ce3c665e344b602cfd1d22842cc (patch)
tree360e19e105e1aad9f1f4e4372b0655e3764b83b9 /src/rustllvm/PassWrapper.cpp
parent8fd42ec130148cb49e83028153f17dab6843966e (diff)
downloadrust-42fde21c27c67ce3c665e344b602cfd1d22842cc.tar.gz
rust-42fde21c27c67ce3c665e344b602cfd1d22842cc.zip
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.

Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.

This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.

Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions