mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
d46de3aeb4
Problem: - It is possible for a new test file to be added to the `AK/Tests` directory without being added to the corresponding `CMakeLists.txt`. This results in the tests not being run. Solution: - As part of CI linting, verify that all the `AK/Tests/Test*.cpp` files are mentioned in the `CMakeLists.txt`.
24 lines
734 B
Bash
Executable file
24 lines
734 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|
cd "${script_path}/.." || exit 1
|
|
|
|
for cmd in \
|
|
Meta/check-ak-test-files.sh \
|
|
Meta/check-debug-flags.sh \
|
|
Meta/check-style.sh \
|
|
Meta/lint-executable-resources.sh \
|
|
Meta/lint-ipc-ids.sh \
|
|
Meta/lint-shell-scripts.sh ; do
|
|
echo "Running $cmd"
|
|
"$cmd"
|
|
echo "$cmd successful"
|
|
done
|
|
|
|
echo "Running Meta/lint-clang-format.sh"
|
|
Meta/lint-clang-format.sh --overwrite-inplace && git diff --exit-code
|
|
echo "Meta/lint-clang-format.sh successful"
|
|
echo "(Not running lint-missing-resources.sh due to high false-positive rate.)"
|
|
echo "(Also look out for check-symbols.sh, which can only be executed after the build!)"
|