Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: Test OpenOCD behavior when harts become unavailable, using new spike mechanism #489

Merged
merged 8 commits into from
Jul 17, 2023

Commits on Jul 17, 2023

  1. Move import random

    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.
    timsifive committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    1754ac4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6c33d7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    65e27a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a29522f View commit details
    Browse the repository at this point in the history
  5. Interact with OpenOCD CLI over stdin/stdout.

    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.
    timsifive committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    e1cb5be View commit details
    Browse the repository at this point in the history
  6. debug: CeaseMultiTest -> UnavailableMultiTest

    Use the new spike mechanism to test OpenOCD behavior when a hart becomes
    unavailable while running.
    
    Create CommandException.
    timsifive committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    ba831d0 View commit details
    Browse the repository at this point in the history
  7. debug: CeaseRunTest -> UnavailableRunTest

    Use new spike mechanism to test OpenOCD behavior when the current hart
    becomes unavailable while running.
    
    Create ThreadTerminated exception.
    timsifive committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    995fa25 View commit details
    Browse the repository at this point in the history
  8. debug: Create UnavailableCycleTest

    Use new spike mechanism to test OpenOCD behavior when a hart becomes
    unavailable, and then available again.
    timsifive committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    90691df View commit details
    Browse the repository at this point in the history