1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

test(build): check whether code/files have been processed by CMake

This commit is contained in:
Zetok Zalbavar 2017-02-22 20:36:21 +00:00
parent 1d0a49c2b7
commit f0574167c6
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -182,5 +182,18 @@ test_qtox() {
cd - cd -
} }
build_qtox # CMake is supposed to process files, e.g. ones with versions.
test_qtox # Check whether those changes have been committed.
check_if_differs() {
echo "Checking whether files processed by CMake have been committed..."
echo ""
# ↓ `0` exit status only if there are no changes
git diff --exit-code
}
main() {
build_qtox
test_qtox
check_if_differs
}
main