ralfbiedert / interoptopus

The polyglot bindings generator for your library (C#, C, Python, …) 🐙
302 stars 27 forks source link

No such file or directory #76

Closed chengchangwu closed 1 year ago

chengchangwu commented 1 year ago

I clone interoptopus, remove examples/hello_world/bindings, then cargo test. Following errors are generated,

     Running tests/bindings.rs (/home/ccwu/Projects/botnana/interoptopus/target/debug/deps/bindings-ec8e39723c19b389)

running 3 tests
Error: IO(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Error: IO(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Error: IO(Os { code: 2, kind: NotFound, message: "No such file or directory" })
test bindings_cpython_cffi ... FAILED
test bindings_csharp ... FAILED
test bindings_c ... FAILED

failures:

---- bindings_cpython_cffi stdout ----
thread 'bindings_cpython_cffi' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/897e37553bba8b42751c67658967889d11ecd120/library/test/src/lib.rs:184:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- bindings_csharp stdout ----
thread 'bindings_csharp' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/897e37553bba8b42751c67658967889d11ecd120/library/test/src/lib.rs:184:5

---- bindings_c stdout ----
thread 'bindings_c' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/897e37553bba8b42751c67658967889d11ecd120/library/test/src/lib.rs:184:5

failures:
    bindings_c
    bindings_cpython_cffi
    bindings_csharp

test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass `--test bindings`
chengchangwu commented 1 year ago

I see. I should at least create directories under bindings.