You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Some references:
The text was updated successfully, but these errors were encountered: