diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2017-10-09 15:19:21 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-10-10 10:20:41 -0700 |
commit | cfb7e7dfbb3861236b2e2bee1531c9cc9f970ac0 (patch) | |
tree | 72866a614a6c32e44dce8af2aa7f40ef058c250c /src/codegen/impl_debug.rs | |
parent | 745d60610ec6979368fc240472f7c04a3e04f282 (diff) |
Add a predicate script for determining whether `bindgen` can process a given header
First, `bindgen` is run on the input header. Then the emitted bindings are
compiled with `rustc`. Finally, the compiled bindings' layout tests are run.
By default, this script will exit zero if all of the above steps are successful,
and non-zero if any of them fail. This is appropriate for determining if some
test case (perhaps generated with `csmith` or another fuzzer) uncovers any bugs
in `bindgen`.
However, this script can also be used when reducing (perhaps with `creduce`) a
known-bad test case into a new, smaller test case that exhibits the same bad
behavior. In this mode, you might expect that the emitted bindings fail to
compile with `rustc`, and want to exit non-zero early if that is not the
case. See the "reducing arguments" section for details and what knobs are
available.
Diffstat (limited to 'src/codegen/impl_debug.rs')
0 files changed, 0 insertions, 0 deletions