generally speaking, `cargo test` collects all `#[test]`s and creates a binary 
with a fixed driver and `libtest`. we don't have chance to change the compiler 
ad `libtest`. so the only chance to use `cargo test` is to test the untrusted 
app, not the enclave.

good news is that we can use 
[inventory](https://github.com/mesalock-linux/inventory-sgx) and a proc-macro 
to implement something very similar to `#[test]` which collect every test fn 
pointer (decorated by the customized proc macro attribute) into a static array 
and then drive these test fn ptrs with our own prebuilt driver. in this way, 
though we cannot use `#[test]`, we can construct an only with all test `fn`s 
automatically, and export only 1 ECALL fn for triggering the tests.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/232#issuecomment-623190944

Reply via email to