Unit tests are certainly good for ensuring that the unit works as written, but I'm more concerned with how it plays with the rest of the system. It's hard for me to tell what's calling what and when unless I can run it in a way that exercises it.
But on the unit tests front, does gem5 have support for that? I haven't encountered this yet in my work on it. On Mon, Oct 22, 2018 at 12:35 AM Gabe Black <[email protected]> wrote: > I don't have an answer for you, but I think it's great you're making > testing a priority. Maybe unit tests for the Fault objects? It would be > nice to have unit tests for the interrupt controller objects too, but since > they're probably SimObjects it's hard to get them to work in isolation. > > Gabe > > On Sun, Oct 21, 2018 at 9:17 AM Alec Roelke <[email protected]> wrote: > > > Hi Everyone, > > > > Over the past few weeks I've been working on an implementation for > > interrupts in RISC-V so that it can eventually support FS mode fully, but > > before I move on to another feature or submit a patch I would like to > test > > them to make sure they work. I'm trying to avoid having to implement > > everything at once before I do any testing, since that will make > debugging > > exponentially more difficult. What is the best way I could test my > > implementation of interrupts? > > > > Thanks, > > Alec Roelke > > _______________________________________________ > > gem5-dev mailing list > > [email protected] > > http://m5sim.org/mailman/listinfo/gem5-dev > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
