RiescueC

RiescueC

class riescue.RiescueC

Bases: CliBase

Top level entry for RiESCUE-C dtest framework. Instantiate an instance of this module to start a run for RiESCUE-C.

classmethod run_cli(args=None, **kwargs)

Initialize from command line arguments and runs correct run_<mode> method

run_bringup(bringup_test_json: Path, seed: int, run_dir: Path = PosixPath('.'), args: Namespace | None = None, toolchain: Toolchain | None = None) Path

Run bringup mode, targeting individual instructions, extensions, and/or groups

Parameters:
  • bringup_test_json – The JSON file containing the bringup test configuration. Required

  • seed – The seed to use for the random number generator. Defaults to a random number in range 0 to 2^32

  • toolchain – Configured Toolchain object. If none provided, a default Toolchain object will be used (assumes whisper and spike are available in environment)

  • run_dir – The directory to run the test in. Defaults to current directory

run_test_plan(seed: int, run_dir: Path = PosixPath('.'), args: Namespace | None = None, toolchain: Toolchain | None = None)

Runs test plan mode

Parameters:
  • seed – The seed to use for the random number generator. Defaults to a random number in range 0 to 2^32

  • toolchain – Configured Toolchain object. If none provided, a default Toolchain object will be used (assumes whisper is available in environment)

  • run_dir – The directory to run the test in. Defaults to current directory