You've already forked ci-testing-tools
mirror of
https://github.com/armbian/ci-testing-tools.git
synced 2026-01-06 10:31:51 -08:00
add board family
This commit is contained in:
@@ -11,6 +11,41 @@ configure_monorepo_watcher() {
|
||||
|
||||
}
|
||||
|
||||
translate_family() {
|
||||
local family=$1
|
||||
local common_family=${family}
|
||||
|
||||
|
||||
case $family in
|
||||
meson-g12b) common_family="meson64"
|
||||
;;
|
||||
meson-gxbb) common_family="meson64"
|
||||
;;
|
||||
mesgon-gxl) common_family="meson64"
|
||||
;;
|
||||
sun4i) common_family="sunxi"
|
||||
;;
|
||||
sun5i) common_family="sunxi"
|
||||
;;
|
||||
sun6i) common_family="sunxi"
|
||||
;;
|
||||
sun7i) common_family="sunxi"
|
||||
;;
|
||||
sun8i) common_family="sunxi"
|
||||
;;
|
||||
sun9i) common_family="sunxi"
|
||||
;;
|
||||
sun50iw1) common_family="sunxi64"
|
||||
;;
|
||||
sun50iw2) common_family="sunxi64"
|
||||
;;
|
||||
sun50iw6) common_family="sunxi64"
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "${common_family}"
|
||||
}
|
||||
|
||||
generate_test_table() {
|
||||
config_dir=build/config/boards
|
||||
files=$(ls ${config_dir}/*.conf ${config_dir}/*.wip ${config_dir}/*.csc)
|
||||
@@ -21,10 +56,12 @@ generate_test_table() {
|
||||
source ${file}
|
||||
board=$(basename ${file}|cut -d '.' -f1)
|
||||
support_level=$(basename ${file}|cut -d'.' -f2)
|
||||
echo "${BOARDFAMILY},${BOARD_NAME},${board},${support_level}" >> test_table.csv
|
||||
|
||||
common_family=$(translate_family ${BOARDFAMILY})
|
||||
echo "${BOARDFAMILY},${common_family},${BOARD_NAME},${board},${support_level}" >> test_table.csv
|
||||
done
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
get_files_changed() {
|
||||
@@ -45,7 +82,7 @@ get_build_target() {
|
||||
for row in $(cat ../test_table.csv|sort -r); do
|
||||
|
||||
family=$(echo $row|cut -d',' -f1)
|
||||
board=$(echo $row|cut -d',' -f3)
|
||||
board=$(echo $row|cut -d',' -f4)
|
||||
for family_row in ${family_changed}; do
|
||||
echo "family_row: ${family_row}"
|
||||
if echo $family_row | fgrep -q $family; then
|
||||
|
||||
Reference in New Issue
Block a user