Nuclei-Software / nuclei-sdk

Nuclei RISC-V Software Development Kit
https://doc.nucleisys.com/nuclei_sdk
Apache License 2.0
117 stars 50 forks source link

feature: Add nuclei sdk cli tools #27

Closed fanghuaqi closed 3 years ago

fanghuaqi commented 3 years ago

This PR will add nuclei sdk cli tools which could be used for local or ci test.

  1. nsdk_execute.py: this script is used to run a single build config on hardware/qemu/xl_spike
  2. nsdk_bench.py: this script is used to run multiple configs on hardware/qemu/xl_spike
  3. nsdk_report.py: this script is used to generate reports for several logs generated by nsdk_bench.py

Sample commands:

python tools\scripts\nsdk_cli\nsdk_execute.py --appcfg tools\scripts\nsdk_cli\configs\application.json --hwcfg tools\scripts\nsdk_cli\configs\gd32vf103v_rvstar.json --serport COM10 --logdir logs\rvstar --run
python tools\scripts\nsdk_cli\nsdk_bench.py --appcfg tools\scripts\nsdk_cli\configs\application.json --hwcfg tools\scripts\nsdk_cli\configs\nuclei_fpga_eval_bench.json --logdir logs\nuclei_fpga_eval_bench --parallel=-j --serport COM21 --run