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:
parent
1d0a49c2b7
commit
f0574167c6
|
@ -182,5 +182,18 @@ test_qtox() {
|
|||
cd -
|
||||
}
|
||||
|
||||
build_qtox
|
||||
test_qtox
|
||||
# CMake is supposed to process files, e.g. ones with versions.
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user