Cannot run tests on CLion
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- developer-experience, testing-qa
Research direction
Start by reproducing the CLion Cargo test command and compare it with the working cargo test invocation. Trace how arguments after -- are passed to QEMU by the custom test runner; done means CLion's generated test configuration no longer sends Cargo-only options such as -Z to QEMU.
Written by the indexing model from the issue text.
Description
I think bootimage has some problems with the custom test runner on CLion/Rust plugin.
CLion can create a Cargo run configuration for tests. This creates the following cargo command:
C:/Programming/Rust/cargo/bin/cargo.exe test --color=always --no-fail-fast -- -Z unstable-options --format=json --show-output
Unfortunately, the arguments after -- are passed to qemu as is
Running: `qemu-system-x86_64 -drive format=raw,file=C:\dev\Workspace\gerrix\target\x86_64-blog_os\debug\deps\bootimage-gerrix-d6bdb98945edd169.bin -no-reboot -device isa-debug-exit,iobase=0xf4,iosize=0x04 -Z unstable-options --format=json --show-output`
qemu-system-x86_64: -Z: invalid option
Running the test via cargo test works, though.
- Dominant language
- Rust
- Stars
- 914
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/bootimage
-
-Z flags not passedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-osdev/bootimage#103 · 9 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
rust-osdev/bootimage#110 · 4 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
rust-osdev/bootimage#109 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
rust-osdev/bootimage#98 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rust-osdev/bootimage#94 · 1 comment ·
All issues in rust-osdev/bootimage
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·