forked from oxidecomputer/humility
-
Notifications
You must be signed in to change notification settings - Fork 1
Use qemu to run additional tests. #38
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
Open
beezow
wants to merge
5
commits into
rivos/main
Choose a base branch
from
dev/drew/qemu_test
base: rivos/main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9f220d6
tests: add another hifive1-revb core that includes `qemu.sh`
beezow aa13fff
tests: add test cases that utilize the qemu.
beezow bfeb8da
tests: autogenerated qemu test output
beezow 5acfaa5
nix: add qemu as input.
beezow d6a67aa
add qemu to ubuntu ci
beezow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| SIZE NAME | ||
| 462 README.TXT | ||
| 46 git-rev | ||
| 727 app.toml | ||
| 248 chip.toml | ||
| 345580 elf/task/jefe | ||
| 45820 elf/task/pong | ||
| 130200 elf/task/ping | ||
| 34588 elf/task/idle | ||
| 448576 elf/kernel | ||
| 70341 img/combined.srec | ||
| 36040 img/combined.elf | ||
| 100517 img/combined.ihex | ||
| 35712 img/combined.bin | ||
| 70341 img/final.srec | ||
| 36040 img/final.elf | ||
| 100517 img/final.ihex | ||
| 35712 img/final.bin | ||
| 850 img/flash.ron | ||
| 503 debug/script.gdb | ||
| 582 debug/openocd.cfg | ||
| 213 debug/openocd.gdb | ||
| 181 debug/qemu.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 extract --list" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| humility: extracting app.toml to stdout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name = "demo-hifive1-revb" | ||
| target = "riscv32imc-unknown-none-elf" | ||
| board = "hifive1-revb" | ||
| chip = "../../chips/fe310-g002" | ||
| stacksize = 896 | ||
|
|
||
| [kernel] | ||
| name = "demo-hifive1-revb" | ||
| requires = {flash = 16384, ram = 2048} | ||
| features = [] | ||
|
|
||
| [tasks.jefe] | ||
| name = "task-jefe" | ||
| priority = 0 | ||
| max-sizes = {flash = 16384, ram = 4096} | ||
| start = true | ||
| features = ["log-stringbuf"] | ||
| stacksize = 1536 | ||
|
|
||
| [tasks.pong] | ||
| name = "task-pong" | ||
| priority = 3 | ||
| max-sizes = {flash = 8192, ram = 2048} | ||
| start = true | ||
|
|
||
| [tasks.ping] | ||
| name = "task-ping" | ||
| priority = 4 | ||
| max-sizes = {flash = 8192, ram = 2048} | ||
| stacksize = 512 | ||
| start = true | ||
| task-slots = [{peer = "pong"}] | ||
|
|
||
| [tasks.idle] | ||
| name = "task-idle" | ||
| priority = 5 | ||
| max-sizes = {flash = 256, ram = 512} | ||
| stacksize = 256 | ||
| start = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 extract app.toml" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| humility: attached to dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| humility: stringbuf ringbuf::stringbuf::LOG__STRINGBUF in jefe: | ||
| t address 0x0 | ||
| 924: Task #2 Illegal instruction | ||
| 927: Task #2 Memory fault at address 0x0 | ||
| 930: Task #2 Illegal instruction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 log" | ||
|
|
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| version => hubris build archive v3 | ||
| git rev => 45b4b5979c548102c9b07e99c346b45157952d39-dirty | ||
| image id => [63, bc, fe, 8d, 6f, 87, 97, ff] | ||
| board => hifive1-revb | ||
| target => riscv32imc-unknown-none-elf | ||
| features => | ||
| total size => 35K | ||
| kernel size => 16K | ||
| tasks => 4 | ||
| ID TASK SIZE FEATURES | ||
| 0 jefe 14.0K log-stringbuf | ||
| 1 idle 0.1K | ||
| 2 pong 0.4K | ||
| 3 ping 4.6K |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 manifest" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| humility: attached to dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| DESC LOW HIGH SIZE ATTR ID TASK | ||
| - 0x20010000 - 0x20013459 13KiB r-x-- - kernel | ||
| - 0x20013460 - 0x2001399f 1KiB r---- - kernel | ||
| 0x200137d4 0x20014000 - 0x2001774f 13KiB r-x-- 0 jefe | ||
| 0x2001381c 0x20017750 - 0x200177df 144 r-x-- 3 idle | ||
| 0x200137ec 0x200177e0 - 0x200179af 464 r-x-- 1 pong | ||
| 0x20013804 0x200179b0 - 0x20018b7f 4KiB r-x-- 2 ping | ||
| - 0x80000000 - 0x800003ff 1KiB rw--- - kernel | ||
| - 0x80000400 - 0x800007b7 952 rw--- - kernel | ||
| 0x200137e0 0x80000800 - 0x80000edf 1KiB rw--- 0 jefe | ||
| 0x20013828 0x80000ee0 - 0x80000fdf 256 rw--- 3 idle | ||
| 0x20013810 0x80000fe0 - 0x8000125f 640 rw--- 2 ping | ||
| 0x200137f8 0x80001260 - 0x800015df 896 rw--- 1 pong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 map" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| humility: attached to dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| DESC LOW HIGH SIZE ATTR MODE | ||
| pmpaddr01 0x200177e0 - 0x200179af 1cf r-x- TOR | ||
| pmpaddr03 0x80001260 - 0x800015df 37f rw-- TOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.1 pmp" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| humility qemu failed: No 'qemu.sh' archive found in the hubris archive | ||
|
|
||
| Caused by: | ||
| failed to find 'debug/qemu.sh': specified file not found in archive |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.chilly.0 qemu --command \"dump\"" | ||
|
|
||
| status.code = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| humility qemu failed: No 'qemu.sh' archive found in the hubris archive | ||
|
|
||
| Caused by: | ||
| failed to find 'debug/qemu.sh': specified file not found in archive |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.flash-ram-mismatch.0 qemu --command \"dump\"" | ||
|
|
||
| status.code = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| humility qemu failed: No 'qemu.sh' archive found in the hubris archive | ||
|
|
||
| Caused by: | ||
| failed to find 'debug/qemu.sh': specified file not found in archive |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
|
|
||
| # | ||
| # This test case has been automatically created, but can be edited and | ||
| # should be checked in. Should it ever be regenerated, simply delete | ||
| # it and re-run "cargo test" | ||
| # | ||
| fs.base = "../cores" | ||
| bin.name = "humility" | ||
| args = "-d hubris.core.hifive1.0 qemu --command \"dump\"" | ||
|
|
||
| status.code = 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.