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`.

```

-- 
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

Reply via email to