Skip to content

Conversation

@ivanperez-keera
Copy link
Contributor

This commit adds a new target to the Makefile, test, that runs tests on the Copilot monitors. Specifically, it finds every file under tests/ and runs the monitor against them. The expectation of whether the monitors should report an error or not on each input file is made based on the filename: files ending in good should pass, and files ending in bad should not.

The C code for the main driver for the monitors is modified to accept an argument, which is used in place of the fixed LOG_PATH whenever available.

@ivanperez-keera ivanperez-keera marked this pull request as ready for review May 2, 2025 14:28
This commit adds a new target to the Makefile, `test`, that runs tests on the
Copilot monitors. Specifically, it finds every file under `tests/` and runs the
monitor against them. The expectation of whether the monitors should report an
error or not on each input file is made based on the filename: files
ending in `good` should pass, and files ending in `bad` should not.

The C code for the main driver for the monitors is modified to accept an
argument, which is used in place of the fixed LOG_PATH whenever available.

Signed-off-by: Ivan Perez <[email protected]>
@matthew-l-weber matthew-l-weber merged commit cb2fa27 into main May 2, 2025
27 checks passed
@ivanperez-keera ivanperez-keera deleted the test/copilot branch May 30, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants