aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-09-28debug: Make Openocd.targets() tolerate blank lines.Tim Newsome1-1/+2
2023-07-24Merge pull request #497 from riscv-software-src/unavailableTim Newsome2-10/+7
debug: Re-enable unavailable tests, and fix them for github
2023-07-24debug: Tolerate more whitespace from OpenOCD CLITim Newsome1-1/+1
During the github workflow this character is \n, while on my computer it's ' '. I'm sure there's a good reason for that, but it doesn't seem worth figuring out what that reason is.
2023-07-24debug: Re-enable unavailable tests.Tim Newsome1-9/+6
2023-07-24Merge pull request #499 from riscv-software-src/debug_workflowTim Newsome1-0/+172
debug: Actually run tests in github workflow.
2023-07-21debug: Actually run tests in github workflow.Tim Newsome1-0/+172
This should avoid problems like we just had where bad tests can break the OpenOCD workflow. These tests only run if any debug files are changed, so should have no impact at all on non-debug tests in this repo. This file is copied and then slightly changed from riscv-openocd. New changes are that cacheable steps (building spike, OpenOCD) are stored to the cache even if running the tests fails.
2023-07-20Merge pull request #496 from riscv-software-src/pylint_workflowTim Newsome2-5/+9
debug: Only run pylint if debug files changed.
2023-07-19debug: Better comment the privilege tests.Tim Newsome1-3/+4
Just doing this to make a change in the debug files, which should now cause the pylint workflow to execute.
2023-07-19debug: Only run pylint if debug files changed.Tim Newsome1-2/+5
2023-07-18Merge pull request #493 from riscv-software-src/disable_unavailableTim Newsome1-6/+9
debug: Disable unavailable tests.
2023-07-18debug: Disable unavailable tests.Tim Newsome1-6/+9
They have issues when run in a github workflow.
2023-07-17Merge pull request #489 from riscv-software-src/power_danceTim Newsome10-55/+196
debug: Test OpenOCD behavior when harts become unavailable, using new spike mechanism
2023-07-17debug: Create UnavailableCycleTestTim Newsome1-0/+27
Use new spike mechanism to test OpenOCD behavior when a hart becomes unavailable, and then available again.
2023-07-17debug: CeaseRunTest -> UnavailableRunTestTim Newsome2-3/+23
Use new spike mechanism to test OpenOCD behavior when the current hart becomes unavailable while running. Create ThreadTerminated exception.
2023-07-17debug: CeaseMultiTest -> UnavailableMultiTestTim Newsome2-8/+30
Use the new spike mechanism to test OpenOCD behavior when a hart becomes unavailable while running. Create CommandException.
2023-07-17Interact with OpenOCD CLI over stdin/stdout.Tim Newsome1-39/+102
It's a bit messy to read the log file to get the output, but it seems to be flushed often so that this works. Also, added the `targets` method for retrieving the list of targets, and `wait_until_running` method to wait until all targets are in a running state.
2023-07-17debug: Add support_unavailable_control property.Tim Newsome8-0/+10
2023-07-17parkOtherHarts() already defaults to ceaseTim Newsome1-1/+1
2023-07-17Move "monitor targets" calls into a central place.Tim Newsome2-3/+1
2023-07-17Move `import random`Tim Newsome1-1/+2
Just so it's easier to quickly comment out code and hard-code the target to use without pylint complaining. This really should be a command line option.
2023-07-13Merge pull request #490 from riscv-software-src/flushregsTim Newsome1-4/+4
debug: flushregs -> maintenance flush register-cache
2023-07-13debug: flushregs -> maintenance flush register-cacheTim Newsome1-4/+4
flushregs is deprecated.
2023-07-13Add an exclude list for known failing Hifive1 tests (#485)Marek Vrbka1-0/+28
* Add an exclude list for known failing Hifive1 tests This commit adds a list of known failing tests based on: https://github.com/riscv/riscv-openocd/issues/869#issue-1769176709 * Fix name of the HiFive1 flash target Signed-off-by: Marek Vrbka <133884222+MarekVCodasip@users.noreply.github.com> --------- Signed-off-by: Marek Vrbka <133884222+MarekVCodasip@users.noreply.github.com>
2023-07-10Merge pull request #486 from en-sc/en-sc/warning-repeat-readTim Newsome1-2/+15
change warning check in RepeatReadTest
2023-07-07Merge pull request #487 from riscv-software-src/debug_pathTim Newsome2-8/+4
debug: Don't rely on RISCV env
2023-07-07change warning check in RepeatReadTestEvgeniy Naydanov1-2/+15
2023-07-05Merge pull request #484 from TommyMurphyTM1234/masterTim Newsome1-2/+2
Fix for test program compilation failures due to lack of `zicsr` extension in `-march=rvXX...`
2023-06-30debug: Don't rely on RISCV envTim Newsome2-8/+4
That made sense when mostly people used riscv-tools, but now they get tools from all sorts of places and most of them are suitable for the debug tests. Also document RISCV_TESTS_DEBUG_GCC and RISCV_TESTS_DEBUG_GDB environment variables in the README. The github workflows that rely on these tests don't use the Makefile, but instead invoke gdbserver.py directly, so they're not affected by this change. Fixes #481
2023-06-30Merge pull request #483 from riscv-software-src/pylintTim Newsome1-2/+2
debug: pylint fix.
2023-06-30Fix for https://github.com/riscv-software-src/riscv-tests/issues/482Tommy Murphy1-2/+2
2023-06-29debug: pylint fix.Tim Newsome1-2/+2
2023-06-29Merge pull request #480 from riscv-software-src/pylintTim Newsome2-4/+24
Github workflow to run pylint against debug tests
2023-06-29Merge pull request #479 from riscv-software-src/debug_timeoutTim Newsome1-1/+7
Add --target-timeout to debug test script.
2023-06-29Add --target-timeout to debug test script.Tim Newsome1-1/+7
I'm using this to greatly reduce the timeout when I'm reproducing a failure I know is going to time out.
2023-06-29Merge pull request #478 from Du-Chao/masterTim Newsome1-4/+16
debug: optimize the FreeRtosTest case.
2023-06-27Github workflow to run pylint against debug testsTim Newsome1-0/+17
2023-06-27Pylint fixes.Tim Newsome1-4/+7
2023-06-27Merge pull request #477 from MarekVCodasip/test-exclusionTim Newsome4-1/+52
Add a way to exclude tests by specifying an exclusion file
2023-06-27Add a way to exclude tests by specifying an exclusion fileMarek Vrbka4-1/+52
This patch adds a way to specify a yaml file which specifies either for each target individually or for all targets to exclude tests. Example file format is included in excluded.yaml.example.
2023-06-15debug: optimize the FreeRtosTest case.Chao Du1-4/+16
To make sure the rtos module of OpenOCD works well. Signed-off-by: Chao Du <duchao@eswincomputing.com>
2023-06-13Merge pull request #476 from riscv-software-src/env_argsTim Newsome1-7/+10
Get gcc and gdb path from environment.
2023-06-12Get gcc and gdb path from environment.Tim Newsome1-7/+10
If the environment variables aren't set, then use the same defaults as previously. My current set of tools use riscv64-elf-gcc and riscv64-elf-gdb, and this makes it trivial to use them.
2023-05-26Merge pull request #474 from riscv-software-src/pylintTim Newsome4-24/+34
debug: New pylint => new warnings => new cleanups
2023-05-25debug: New pylint => new warnings => new cleanupsTim Newsome4-24/+34
- Replace general "Exception" with "GdbServerError" in gdbserver.py for when no samples are collected - Replace general "Exception" with "TargetsException" in targets.py for XLEN mismatch - Introduce "TestLibError" exception in testlib.py and replace general exceptions in various locations - Update pylint.rc to remove overgeneral-exceptions warning
2023-05-22Switch bmarks makefile to rv64gcvJerry Zhao1-1/+1
2023-05-22Add vec-strcmpJerry Zhao3-0/+67
2023-05-22Add vec-sgemmJerry Zhao6-0/+663
2023-05-22Update vec-memcpy commentsJerry Zhao1-1/+1
2023-05-22Add vec-daxpyJerry Zhao5-0/+382
2023-05-22Add vec-memcpy benchmarkJerry Zhao8-14/+412