mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-04 13:36:37 +00:00
0296f9e86c
remove `clap` dependency 🎉
update the book installation instructions
24 lines
583 B
Bash
Executable File
24 lines
583 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Don't allow any system include directives in tests.
|
|
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "Checking for #include directives of system headers..."
|
|
|
|
grep -rn '#include\s*<.*>' bindgen-tests/tests/headers || {
|
|
echo "Found none; OK!"
|
|
exit 0
|
|
}
|
|
|
|
echo "
|
|
Found a test with an #include directive of a system header file!
|
|
|
|
There is no guarantee that the system running the tests has the header
|
|
file, let alone the same version of it that you have. Any test with such an
|
|
include directive won't reliably produce the consistent bindings across systems.
|
|
"
|
|
|
|
exit 1
|