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

Support testing from within an enclave #135

Open
nick-mobilecoin opened this issue Sep 16, 2022 · 0 comments
Open

Support testing from within an enclave #135

nick-mobilecoin opened this issue Sep 16, 2022 · 0 comments
Assignees

Comments

@nick-mobilecoin
Copy link
Collaborator

There currently isn't a good way to unit test behavior that directly talks to the SGX SDK. While it's good practice to separate logic and dependencies, it would still be good to unit test functionality at the SGX SDK boundary.

This limitation stems from the current rust test infrastructure. The test infrastructure is invoked by the host system.
One thought is to find a way to pass in test parameters through the host into the enclave and execute that way.

graph LR
    A[untrusted side] --> |ECALL| B[trusted entry point]
    D[Test runner] --> |ECALL|E[test entry point]
    subgraph Inside Enclave
    B --> C[Code to test]
    E --> F[enclave::test]
    F --> C
    end  
Loading

Some references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant