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

Adding the cheriot-audit tests to the test suite #144

Closed
wants to merge 1 commit into from

Conversation

matajoh
Copy link
Member

@matajoh matajoh commented Jun 6, 2024

This PR adds the test suite from https://github.com/CHERIoT-Platform/cheriot-audit/ to this repo.

Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything in particular you would like me to look at in a review?

@@ -0,0 +1,181 @@
#include "../rego_test.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this code come from cheriot? Do we need some attribution here?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is our SPDX header:

// Copyright SCI Semiconductor and CHERIoT Contributors.
// SPDX-License-Identifier: MIT

return scalar(false);
}
string = string.substr(1);
// The way that rego-cpp exposes snmalloc can cause the realloc here to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aiming to fix this with microsoft/Trieste#117

@matajoh
Copy link
Member Author

matajoh commented Jun 6, 2024

Anything in particular you would like me to look at in a review?

I'm talking with David about options. I think we're going to change the tactic to include his repo and and build it against the current repo/branch similar to how we do with Python and Rust, instead of manually copying it in as I've done. He needs to do a bit of instrumentation first, but that way we don't have duplication.

@davidchisnall
Copy link

CHERIoT-Platform/cheriot-audit#4 should make that option easier.

@matajoh
Copy link
Member Author

matajoh commented Jun 26, 2024

This has been done via another means.

@matajoh matajoh closed this Jun 26, 2024
@matajoh matajoh deleted the cheriot-tests branch June 29, 2024 13:48
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