2024-03-09 20:38:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# yaml check is not the best one
|
|
|
|
|
|
|
|
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv
|
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
start_total=$(date +%s)
|
2024-03-11 08:45:58 +00:00
|
|
|
|
2024-03-20 16:50:40 +00:00
|
|
|
# We decided to have the regexp-based check disabled in favor of clang-tidy
|
|
|
|
# start=$(date +%s)
|
|
|
|
# ./check-duplicate-includes.sh |& tee /test_output/duplicate_includes_output.txt
|
|
|
|
# runtime=$(($(date +%s)-start))
|
|
|
|
# echo "Check duplicates. Done. $runtime seconds."
|
2024-03-09 20:38:23 +00:00
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
start=$(date +%s)
|
2024-03-09 20:38:23 +00:00
|
|
|
./check-style -n |& tee /test_output/style_output.txt
|
2024-03-12 18:21:05 +00:00
|
|
|
runtime=$(($(date +%s)-start))
|
2024-03-11 08:45:58 +00:00
|
|
|
echo "Check style. Done. $runtime seconds."
|
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
start=$(date +%s)
|
2024-03-09 20:38:23 +00:00
|
|
|
./check-whitespaces -n |& tee /test_output/whitespaces_output.txt
|
2024-03-12 18:21:05 +00:00
|
|
|
runtime=$(($(date +%s)-start))
|
2024-03-11 08:45:58 +00:00
|
|
|
echo "Check whitespaces. Done. $runtime seconds."
|
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
start=$(date +%s)
|
2024-03-09 20:38:23 +00:00
|
|
|
./check-workflows |& tee /test_output/workflows_output.txt
|
2024-03-12 18:21:05 +00:00
|
|
|
runtime=$(($(date +%s)-start))
|
2024-03-11 08:45:58 +00:00
|
|
|
echo "Check workflows. Done. $runtime seconds."
|
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
start=$(date +%s)
|
2024-03-09 20:38:23 +00:00
|
|
|
./check-submodules |& tee /test_output/submodules_output.txt
|
2024-03-12 18:21:05 +00:00
|
|
|
runtime=$(($(date +%s)-start))
|
2024-03-11 08:45:58 +00:00
|
|
|
echo "Check submodules. Done. $runtime seconds."
|
2024-03-09 20:38:23 +00:00
|
|
|
|
2024-03-12 18:21:05 +00:00
|
|
|
runtime=$(($(date +%s)-start_total))
|
2024-03-11 08:45:58 +00:00
|
|
|
echo "Check style total. Done. $runtime seconds."
|