Skip to content

./x.py test <test_path> --target foo does not work #71062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mati865 opened this issue Apr 12, 2020 · 3 comments
Closed

./x.py test <test_path> --target foo does not work #71062

mati865 opened this issue Apr 12, 2020 · 3 comments
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@mati865
Copy link
Contributor

mati865 commented Apr 12, 2020

Wanted to quickly run test added in #71023 but no tests were ran:

$ PATH=$PATH:/mingw32/bin ./x.py test src/test/run-make-fulldeps/windows-binary-no-external-deps/ --target i686-pc-windows-gnu,x86_64-pc-windows-gnu
Updating only changed submodules
Submodules updated in 0.11 seconds
    Finished dev [unoptimized] target(s) in 0.34s
Build completed successfully in 0:00:02

The same command without --target:

$ PATH=$PATH:/mingw32/bin ./x.py test src/test/run-make-fulldeps/windows-binary-no-external-deps/
Updating only changed submodules
Submodules updated in 0.12 seconds
    Finished dev [unoptimized] target(s) in 0.42s
Building stage0 std artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.67s
Copying stage0 std from stage0 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Building stage0 compiler artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.78s
Copying stage0 rustc from stage0 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Assembling stage1 compiler (x86_64-pc-windows-gnu)
Building stage1 std artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.62s
Copying stage1 std from stage1 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Building stage1 compiler artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.89s
Copying stage1 rustc from stage1 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Assembling stage2 compiler (x86_64-pc-windows-gnu)
Uplifting stage1 std (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
Copying stage2 std from stage1 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Uplifting stage1 rustc (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
Copying stage2 rustc from stage1 (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu / x86_64-pc-windows-gnu)
Building stage0 tool compiletest (x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.45s
Building rustdoc for stage2 (x86_64-pc-windows-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.58s
Check compiletest suite=run-make-fulldeps mode=run-make (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)

running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 210 filtered out

        finished in 1.149
Build completed successfully in 0:00:09
@mati865 mati865 added the C-bug Category: This is a bug. label Apr 12, 2020
@jonas-schievink jonas-schievink added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Apr 12, 2020
@mati865
Copy link
Contributor Author

mati865 commented Aug 5, 2020

This happens only when targets in config.toml differ from targets in command line.

@Enselic
Copy link
Member

Enselic commented Dec 12, 2023

Triage: Is this still a problem? If yes, can you please provide step-by-step instructions on how to reproduce, including how to install needed dependencies on some mainstream Linux distro? When I tried myself on the master branch I got some errors that I don't know how to sort out without spending time I don't have.

@mati865
Copy link
Contributor Author

mati865 commented Dec 12, 2023

Haven't tried such configuration in a long time so no idea whether it works now.

@mati865 mati865 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

3 participants