-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support cargo test #232
Comments
generally speaking, good news is that we can use inventory and a proc-macro to implement something very similar to |
though our initial PoC works, it has problem with ld from LLVM9, which optimizes out ctors. |
this approach is acceptable. important for us is that tests are collected automatically and results are summarized clearly |
Regarding the # [ctros] link issue, unused symbols are pruned, even if # [used] is used. |
@brenzi, please refer to this PR (apache/incubator-teaclave#269) on how to use inventory to automatically collect test cases. |
In addition to the automatic collection of test cases, we can also provide a cargo subcommand such as The only thing bothers me about "downport" is that the update of SDK requires huge efforts. Test drivers, however, is not as stable as std. A better way is to implement this in the Teaclave platform first and stablize in the SDK when necessary. In summary, @brenzi, you can simply implement your own test drivers first (similar with apache/incubator-teaclave#269). Then, we can gradually improve the test toolchain in the SDK. |
Is there any chance we can make
cargo test
work with our enclave code?it would be great if we could use standard
cargo test
. Right now we can only do handmade testing which is a lot less convenient to trackright now we get a clash between
std
andsgx_tstd
:The text was updated successfully, but these errors were encountered: