summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/tests
AgeCommit message (Collapse)Author
2020-03-13openpgp-ffi, ffi: Prevent capturing of c-tests's output.Justus Winter
- By explicitly printing to stderr, we can avoid the test's output from being captured by Rust's test framework.
2020-03-13ffi, openpgp-ffi: Properly use LDLIBS to link against Sequoia.Justus Winter
- Fixes linking tests and examples with ld --as-needed.
2020-03-09Switch from failure to anyhow.Justus Winter
- Use the anyhow crate instead of failure to implement the dynamic side of our error handling. anyhow::Error derefs to dyn std::error::Error, allowing better interoperability with other stdlib-based error handling libraries. - Fixes #444.
2020-01-07openpgp-ffi, ffi: Always rebuild C doctests.Justus Winter
2019-12-20Remove nettle dependency where it's unnecessaryIgor Matuszewski
2019-08-20openpgp-ffi, ffi: Honor CFLAGS in c-tests, add -Wall.Justus Winter
2019-05-13openpgp-ffi, ffi: Improve c-tests.rs.Justus Winter
- Use failure, improve error message when invoking make fails.
2019-05-07openpgp-ffi, ffi: Reword.Justus Winter
2019-05-07openpgp-ffi, ffi: Improve 6911aed9.Justus Winter
- To preserve location information, replace the include.
2019-05-07openpgp-ffi, ffi: Fix calling convention on Windows.Justus Winter
- Use `extern "C"` instead of `extern "system"`. The latter selects stdcall, which is only appropriate for talking to the Windows API.
2019-05-07openpgp-ffi: Remove '#include <error.h>' from doctests.Justus Winter
2019-03-22openpgp-ffi: Replace glibc's error function.Justus Winter
- To make the tests and examples more portable, provide our own roughly compatible replacement for glibc's error(3).
2019-03-21openpgp-ffi: Use crate for futimes fiddling.Justus Winter
- The previous solution of using libc::futimes turned out to be not portable because different platforms have differently sized timestamps. Use a crate for that instead. - Also, bring ffi's c-tests up-to-speed. - Fixes #225.
2019-03-20openpgp-ffi: Simplify c-test.Justus Winter
- Use the line number instead of a hash. This makes it simpler, but also easier to locate the test in the source file.
2019-01-23openpgp-ffi: Paper over the shady parsing in c-tests.Justus Winter
- Fixes tests not being found because the functions signature were formatted differently. In the end, only proper parsing will help here.
2019-01-17openpgp-ffi: New crate.Justus Winter
- This creates a new crate, 'sequoia-openpgp-ffi', and moves a handful of functions from 'sequoia-ffi' to it. - The 'sequoia-ffi' crate is a superset of the 'sequoia-openpgp-ffi' crate. This is accomplished by some include! magic. - My first attempt involved having 'sequoia-ffi' depend on 'sequoia-openpgp-ffi', so that the former just re-exports the symbols. However, that turned out to be unreliable, and might be not what we want, because it could also duplicate parts of Rust's standard library. - Fixes #144.