Skip to content

Support @TEST-ENV #112

@awelzel

Description

@awelzel

In certain cases, it could be useful to set an environment variable for all TEST-EXEC / TEST-EXEC-FAIL commands.

Instead of repeating it on each line, I wonder if @TEST-ENV could be a useful keyword.

# @TEST-ENV: OPENSSL_ENABLE_SHA1_SIGNATURES=1

# @TEST-EXEC: zeek -b ...
# @TEST-EXEC: zeek -b ...

Thoughts? I wonder how often this comes up? Setting a custom canonifier for btest-diff is another case where I could see that useful.

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