diff options
author | Jean-Philippe DUFRAIGNE <j.dufraigne@gmail.com> | 2016-11-05 09:44:24 +0000 |
---|---|---|
committer | Jean-Philippe DUFRAIGNE <j.dufraigne@gmail.com> | 2016-11-05 14:07:52 +0000 |
commit | 2866ab506f0bf1946e7732b0b57567508fd62d28 (patch) | |
tree | ffa958090064c257991afb807c8d80cb1efc7902 /tests/headers/macro-expr-basic.h | |
parent | 9073a4f0538e41a28164809b28e7f38a2ee528fe (diff) |
Speed up integration tests (move building expectations)
Speed up running 'cargo test':
-Before: 2'17s
-After: 30s
Update to use new path:
Makefile, .travis.yml, CONTRIBUTING.md, tests/tests.rs
Delete unused expectation that fail to compile:
tests/expectations/moar_bitfields.rs
tests/expectations/variadic_template_args.rs
For every 'cargo test' run, the bindgen output where built.
We already test that the bindgen output match expectations/*.rs,
so there is no need to check it build unless the expectation is updated.
Move tests/expectations/*.rs to tests/expectations/tests/*.rs and make
tests/expectations a new dev-dependency package. This allow running:
- cargo test -p tests_expectations
In addition to the speed up, we also get a clean output for the build
and test run. In particular, a number of warnings are generated that should
probably be silenced, and eventually enforced modifying travis to build:
- RUSTFLAGS='-D warnings' cargo test -p tests_expectations
The benefit of having it as a new package is that it avoid polluting
the 'cargo test' output that should focus on bindgen.
Diffstat (limited to 'tests/headers/macro-expr-basic.h')
0 files changed, 0 insertions, 0 deletions