aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
AgeCommit message (Collapse)AuthorFilesLines
2016-10-20Test OpenOCD step and resume.Tim Newsome1-1/+22
2016-10-19Fix conflict: JTAG VPI changes vs openocd refactorTim Newsome1-7/+4
2016-10-19Merge pull request #34 from richardxia/use-port-randomizationTim Newsome1-4/+16
Use port randomization for VCS and OpenOCD
2016-10-18Pull port number from VCS output and pass to OpenOCD.Richard Xia1-2/+8
2016-10-18Add framework to test OpenOCD directly.Tim Newsome1-7/+189
This took a lot of refactoring to make it look reasonable. There isn't actually any functional OpenOCD test yet. But a dummy test runs a command (and fails).
2016-10-18Randomize gdb port.Richard Xia1-2/+8
2016-10-14Wait for OpenOCD to start fully before connecting.Tim Newsome1-0/+15
Requires OpenOCD change 4eba841bfee4b6c347423ac28851ab7ee7e75532
2016-09-30Tolerate remotes that return memory read errors.Tim Newsome1-1/+9
2016-09-20Minor tweaks to trigger tests for openocd.Tim Newsome1-0/+1
2016-09-15Rewrite debug testing.Tim Newsome1-28/+30
No longer use unittest. Now tests can return not_applicable if eg. a desired execution mode isn't implemented on a target. Also we do a better job killing spike processes when a test fails. Did a lot of code cleanup, partly by using pylint. Fix the Makefile so that if the test fails, 'make' actually fails too.
2016-09-02Limit spike RAM so I can run valgrind on it.Tim Newsome1-0/+1
2016-09-01Add test for address triggers.Tim Newsome1-0/+5
2016-08-22Add requirements.txt and reorder imports by type.Richard Xia1-3/+3
2016-08-08Some code cleanupMegan Wachs1-3/+2
2016-08-08Added FreedomE300 Simulator targetMegan Wachs1-1/+41
2016-07-28Add --gdb argument so I can run valgrind on gdb.Tim Newsome1-3/+3
2016-07-19Add Makefile.Tim Newsome1-4/+1
Add --isolate argument which enables the 32- and 64-bit spikes to be tested simultaneously.
2016-07-19flush spike log after initial write.Tim Newsome1-0/+1
This makes sure the execution line is the first one in the logfile.
2016-07-18Turn off debugging.Tim Newsome1-1/+1
2016-07-18Write command to logfile.Tim Newsome1-0/+2
2016-07-18Increase "load" timeout.Tim Newsome1-3/+3
2016-07-18Fix hwbp test.Tim Newsome1-1/+1
2016-07-18Add hwbp test (currently doesn't pass).Tim Newsome1-0/+6
2016-07-18Make tests work with broken 32-bit compiler.Tim Newsome1-2/+5
Apparently the 32-bit compiler doesn't generate good enough debug info for gdb to know what function we're in, which also means it doesn't know where the local variables in those functions are stored.
2016-07-18Add simple register tests.Tim Newsome1-2/+2
Make the RegsTest case a bit more comprehensible.
2016-07-18Add block test.Tim Newsome1-2/+4
2016-07-18All tests pass with spike now.Tim Newsome1-2/+6
I did comment out a couple.
2016-07-18Made some progress towards working with spike.Tim Newsome1-10/+25
I'm writing all the tests so they should just work on real hardware, too.
2016-07-18WIP on debug testing.Tim Newsome1-0/+140
./gdbserver.py --m2gl_m2s --openocd "$HOME/SiFive/openocd/src/openocd -s $HOME/SiFive/openocd/tcl" -- RegsTest.test_write_gprs doesn't fail in a completely crazy way.