mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
geckolib: Check bindgen status and run tests automatically
This commit is contained in:
parent
b50f760d86
commit
02a045ac45
1 changed files with 10 additions and 0 deletions
|
@ -128,3 +128,13 @@ fi
|
|||
-opaque-type "imgIRequest" \
|
||||
-include "$1/mozilla-config.h" \
|
||||
"$DIST_INCLUDE/nsStyleStruct.h"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\e[91warning:\e[0m bindgen exited with nonzero exit status"
|
||||
else
|
||||
echo -e "\e[34minfo:\e[0m bindgen exited successfully, running tests"
|
||||
TESTS_FILE=$(mktemp)
|
||||
rustc ../gecko_style_structs.rs --test -o $TESTS_FILE
|
||||
$TESTS_FILE
|
||||
rm $TESTS_FILE
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue