| #!/usr/bin/env bash |
| |
| set -xeu |
| cd "$(dirname "$0")/.." |
| |
| # Regenerate the test headers' bindings in debug and release modes, and assert |
| # that we always get the expected generated bindings. |
| |
| cargo test --features "$BINDGEN_FEATURES assert_no_dangling_items" |
| ./ci/assert-no-diff.sh |
| |
| cargo test --release --features "$BINDGEN_FEATURES assert_no_dangling_items" |
| ./ci/assert-no-diff.sh |
| |
| # Now test the expectations' size and alignment tests. |
| |
| pushd tests/expectations |
| cargo test |
| cargo test --release |
| popd |
| |
| # And finally, test our example bindgen + build.rs integration template project. |
| |
| cd bindgen-integration |
| cargo test --features "$BINDGEN_FEATURES" |
| cargo test --release --features "$BINDGEN_FEATURES" |