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

tests: gdbstub: simple test #63672

Merged
merged 6 commits into from
Oct 20, 2023

Commits on Oct 13, 2023

  1. tests: samples: gdbstub: make test out of the sample

    Clone samples/subsys/debug/gdbstub to tests and convert it back
    to a build-only sample aligned with documentation.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    2f8d02e View commit details
    Browse the repository at this point in the history
  2. tests: gdbstub: Improve test case

    Gdbstub test improvements: using pytest fixtures, parametrization, and
    expected pattern matching on outputs from GDB and the test application.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    2f551ef View commit details
    Browse the repository at this point in the history
  3. config: qemu: Add QEMU_EXTRA_FLAGS config option

    Add QEMU_EXTRA_FLAGS as QEMU board config option.
    
    This allows Twister tests to provide additional device setup
    commands to QEMU in prj.conf or testcase.yaml configuration files.
    
    Example use case: to setup TCP or UDP network interfaces
    with non-conflicting port numbers in different test suites
    to avoid conflicts when Twister run tests in parallel on the
    same host.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    5a0ee44 View commit details
    Browse the repository at this point in the history
  4. tests: gdbstub: Add GDB remote target parameter

    Add `gdb_target_remote` test parameter for GDB `target remote`
    command instead of its hardcoded value to allow different types
    of gdbstub serial interfaces as well as different TCP ports in
    gdbstub test suites possibly run in parallel on the same host.
    
    Move all GDB log configuration parameters from GDB script to
    the fixture code.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    b9603ff View commit details
    Browse the repository at this point in the history
  5. tests: gdbstub: qemu: Cross-validate test behavior

    Add a testcase to run the same test application and GDB script
    which we use for Zephyr GDB stub testing, but now with
    the GDB stub enabled at QEMU itself using it as a reference
    RDP backend implementation. This allows to check the Zephyr's
    gdbstub implementation has similar behavior as the reference.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    86c5987 View commit details
    Browse the repository at this point in the history
  6. samples: gdbstub: doc: Remove redundant sample

    Remove gdbstub sample (samples/subsys/debug/gdbstub) as duplicated
    by a test (tests/subsys/debug/gdbstub).
    
    Update the GDB stub documentation.
    
    Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
    golowanow committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    a7ba2bd View commit details
    Browse the repository at this point in the history