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

Introduce "exec-runnables-recipe" resolver #6032

Merged
merged 4 commits into from
Sep 28, 2024

Commits on Sep 18, 2024

  1. selftests/.data/whiteboard.py: remove unused file

    Signed-off-by: Cleber Rosa <[email protected]>
    clebergnu committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    94982e7 View commit details
    Browse the repository at this point in the history
  2. Resolvers: refactor common code that checks for executable files

    The exec-test and tap resolvers share the same code that verifies the
    condition of the reference given being an executable file.
    
    This would be enough to consolidate them into a single method, but
    there's going to be a third users of the same check, so there's more
    reason for that yet.
    
    Signed-off-by: Cleber Rosa <[email protected]>
    clebergnu committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    2920bc9 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. Introduce "exec-runnables-recipe" resolver

    This resolver is somewhat of a hybrid between the "exec-test" and the
    "runnables-recipe" resolvers.
    
    It runs an executable, and attempts to read from its STDOUT content
    that will be treated as runnables-recipe JSON content.  If that
    succeeds, the content will be returned as test resolutions.  This is
    useful for executable tests or test generators that will output the
    tests dinamically.
    
    Signed-off-by: Cleber Rosa <[email protected]>
    clebergnu committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    be44384 View commit details
    Browse the repository at this point in the history
  2. exec-runnable-recipe resolver: add support for arguments

    This adds support for used defined arguments to be passed while
    running the executables that will generate the runnables recipe JSON
    content.
    
    It gives the opportunity for either calling the executables with a
    particular option that will output the runnables (instead of other
    action), or tweaking the type of runnables that will be generated.
    
    Signed-off-by: Cleber Rosa <[email protected]>
    clebergnu committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    978e409 View commit details
    Browse the repository at this point in the history