add bootstrap tests for detecting src and out
e312db9
Opened by jyn at
I was thinking about the following cases when I wrote the comment in #109055
- Running bootstrap from the source root.
- Running from a subdirectory of the source root.
- Running from outside the source root.
- Running on a different machine from where bootstrap was compiled (which will be important for #107812). You can mostly replicate this by renaming the source root so it no longer exists on disk.
- Running with
--build-dir. - Running with
$RUST_BOOTSTRAP_CONFIGset in the environment andbuild-dirset in the file.
Originally posted by @jyn514 in https://github.com/rust-lang/rust/issues/109055#issuecomment-1467088488