Skip to content

Skip tests based on preprocessor conditionals in generate_test_runner.rb #831

@bmoneill

Description

@bmoneill

generate_test_runner.rb does not currently take into account #ifdefs and the like. If you have written a test which targets a specific platform, for example, the build will fail when building on another platform because the runner generates the function declarations anyways.

A working fix could be for the user set environment variables that match the preprocessor definitions, and have generate_test_runner.rb parse #ifdefs/#ifndefs and only generate runner code for the functions that match the conditional. This behavior should probably be enabled via a CLI argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions