brenzi opened a new issue #232:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/232


   Is there any chance we can make `cargo test` work with [our enclave 
code](https://github.com/scs/substraTEE-worker/tree/master/enclave)?
   
   it would be great if we could use standard `cargo test`. Right now we can 
only do [handmade 
testing](https://github.com/scs/substraTEE-worker/blob/master/worker/src/tests/mod.rs)
 which is a lot less convenient to track
   
   right now we get a clash between `std` and `sgx_tstd`:
   
   ```
      Compiling substratee-worker-enclave v0.6.0 
(/home/abrenzikofer/substraTEE-worker/enclave)
   error: duplicate lang item in crate `std` (which `test` depends on): 
`f32_runtime`.
     |
     = note: the lang item is first defined in crate `sgx_tstd` (which 
`substratee_worker_enclave` depends on)
   
   error: duplicate lang item in crate `std` (which `test` depends on): 
`f64_runtime`.
     |
     = note: the lang item is first defined in crate `sgx_tstd` (which 
`substratee_worker_enclave` depends on)
   
   error: duplicate lang item in crate `std` (which `test` depends on): 
`panic_impl`.
     |
     = note: the lang item is first defined in crate `sgx_tstd` (which 
`substratee_worker_enclave` depends on)
   
   error: duplicate lang item in crate `std` (which `test` depends on): 
`begin_panic`.
     |
     = note: the lang item is first defined in crate `sgx_tstd` (which 
`substratee_worker_enclave` depends on)
   
   error: duplicate lang item in crate `std` (which `test` depends on): `oom`.
     |
     = note: the lang item is first defined in crate `sgx_tstd` (which 
`substratee_worker_enclave` depends on)
   
   error: aborting due to 5 previous errors
   
   error: could not compile `substratee-worker-enclave`.
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org
For additional commands, e-mail: notifications-h...@teaclave.apache.org

Reply via email to