forked from qualcomm-linux/kernel-checkers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_scripts.sh
More file actions
executable file
·42 lines (35 loc) · 838 Bytes
/
Copy pathrun_scripts.sh
File metadata and controls
executable file
·42 lines (35 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Usage:
# ./run_scripts.sh --kernel-src <KERNEL_SRC_PATH> --base <BASE_SHA> --head <HEAD_SHA>
# Load shared utilities
source "$(dirname "$0")/script-utils.sh"
# Parse and validate input arguments
parse_args "$@"
validate_args
scripts=(
"checkpatch.sh"
"check-uapi-headers.sh"
"sparse-check.sh"
"dt-binding-check.sh"
"dtb-check.sh"
"check-patch-compliance.sh"
)
# Initialize variables
exit_status=0
log_summary=""
for script in "${scripts[@]}"; do
echo ""
echo "Running $script script..."
echo ""
"$(pwd)/$script" --kernel-src "$kernel_src" --base "$base_sha" --head "$head_sha"
status=$?
if [ $status -eq 0 ]; then
log_summary+="$script passed\n"
else
exit_status=1
log_summary+="$script failed\n"
fi
done
leave_kernel_dir
echo -e "Log Summary:\n$log_summary"
exit $exit_status