zephyriot / zep-jira14

0 stars 0 forks source link

extend sanitycheck to support ARC simulator #1372

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Andrew Boie:

As a developer, I would like ARC targets to be evaluated under emulation to prove runtime correctness of unit tests. Currently all other arches except ARC have QEMU support. There is no ARC v2 support in QEMU yet, but a simulator can be acquired here: https://www.synopsys.com/cgi-bin/dwarcnsim/req1.cgi

We can't put the simulator in the SDK unfortunately. Add a board target that works under the ARC NSIM simulator with basic console and timer. Add an optional flag to sanitycheck to additionally test ARC code under this simulator. Provision simulator on CI slaves and enable ARC testing with NSIM on CI builds.

(Imported from Jira ZEP-1505)

nashif commented 7 years ago

by Chuck Jordan:

zephyr/drivers/serial/uart_nsim.c appears to ONLY handle output.

nashif commented 7 years ago

by Andrew Boie:

output is all we need, sanitycheck test cases do not require a bidirectional console.

nashif commented 7 years ago

by Robert Beatty:

Andrew Boie do we need this for 1.8?

nashif commented 7 years ago

by Andrew Boie:

Robert Beatty we have no emulation support at all for ARC so I think this should be a priority.

nashif commented 7 years ago

by Robert Beatty:

Andrew Boie , ok--we'll consider for v1.8. Mark Linkmeyer to find an owner.

nashif commented 7 years ago

by Mark Linkmeyer:

Based on the above comments I'm setting the priority of this story to Medium (a.k.a. should-have). It will be resourced accordingly based on its priority.

nashif commented 7 years ago

by Mark Linkmeyer:

Hi Ruud Derwig , is this story planned to be implemented in time for 1.9? If so, will you please change its status from New to "To Do"? This will indicate it's not in planning anymore and it's believed (with high confidence) to be feasible to get done in 1.9. Thx.