Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/btlmd/ucoreplayer
Automatically test your CPU with uCore testcases.
https://github.com/btlmd/ucoreplayer
Last synced: 12 days ago
JSON representation
Automatically test your CPU with uCore testcases.
- Host: GitHub
- URL: https://github.com/btlmd/ucoreplayer
- Owner: Btlmd
- Created: 2022-11-25T20:02:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-25T20:24:24.000Z (about 2 years ago)
- Last Synced: 2024-11-21T05:12:41.303Z (2 months ago)
- Language: Python
- Homepage:
- Size: 462 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uCore player for cod-lab-2022
Having built up a CPU baseline, manually run all uCore tests for every new revision is necessary but tedious. This tool automatically runs test cases and compares the output of your CPU and that of QEMU.
## Setup on Ubuntu
[//]: # (- Install [riscv64-unknown-elf-gcc](https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.08/riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14.tar.gz))
- Install Qemu 5.0.0, see [uCore-Tutorial](https://learningos.github.io/uCore-Tutorial-Guide-2022S/chapter0/1setup-devel-env.html#qemu)
- Install Chrome.
- Compile `ucore`.
- Install `./requirements.txt`## Usage
- Create `./config.json`.
```json
{
"user_id": "",
"user_password": "",
"ucore_root": "/cod-lab-ucore/labcodes_answer/lab8", // where we have `Makefile` and `bin`
}
```- launch
```bash
python main.py --qemu --remote --compare --timeout 30
```## Acknowledgement
Thanks to [c7w](https://github.com/c7w) and [ayf19](https://github.com/ayf19). We've advanced swiftly because the cost of communication is saved.## Examples
- Running tests
![Test](./assets/test.png)- Comparing logs
![Compare](./assets/diff.png)