From 29a2510e1833122bf0368d2545a73cb4a1d193f0 Mon Sep 17 00:00:00 2001 From: Eduard Sukharev Date: Wed, 13 Jul 2022 23:27:41 +0300 Subject: [PATCH] Add tests for MKS TinyBee (ESP32-based) platform --- .github/workflows/test-builds.yml | 3 ++ buildroot/tests/mks_tinybee | 56 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100755 buildroot/tests/mks_tinybee diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml index 90a960430b5a1..c3f3f2f1e1f03 100644 --- a/.github/workflows/test-builds.yml +++ b/.github/workflows/test-builds.yml @@ -101,6 +101,9 @@ jobs: - chitu_f103 - Opulo_Lumen_REV3 + # ESP32 environments + - mks_tinybee + # Put lengthy tests last - LPC1768 diff --git a/buildroot/tests/mks_tinybee b/buildroot/tests/mks_tinybee new file mode 100755 index 0000000000000..52fe6d7cc8b0c --- /dev/null +++ b/buildroot/tests/mks_tinybee @@ -0,0 +1,56 @@ +#!/usr/bin/env bash +# +# Build tests for MKS TinyBee +# + +# exit on first failure +set -e + +# +# Build with the default configurations +# +restore_configs +opt_set MOTHERBOARD BOARD_MKS_TINYBEE TX_BUFFER_SIZE 64 \ + WIFI_SSID '"ssid"' WIFI_PWD '"password"' +opt_enable WIFISUPPORT WEBSUPPORT GCODE_MACROS BAUD_RATE_GCODE M115_GEOMETRY_REPORT REPETIER_GCODE_M360 +exec_test $1 $2 "MKS TinyBee with WIFISUPPORT and WEBSUPPORT" "$3" + +# Somehow following test fails if executed not right after '--target clean' +exec_test $1 "$2 --target clean" "Clean and setup build environment..." "$3" + +# +# Build with ESP3D WiFi, OTA and custom WIFI commands support +# +restore_configs +opt_set MOTHERBOARD BOARD_MKS_TINYBEE TX_BUFFER_SIZE 64 \ + WIFI_SSID '"ssid"' WIFI_PWD '"password"' \ + SERIAL_PORT_2 -1 BAUDRATE_2 250000 +opt_enable ESP3D_WIFISUPPORT WEBSUPPORT OTASUPPORT WIFI_CUSTOM_COMMAND +exec_test $1 "$2" "MKS TinyBee with ESP3D_WIFISUPPORT" "$3" + +# +# Build with TMC drivers using hardware serial +# +restore_configs +opt_set MOTHERBOARD BOARD_MKS_TINYBEE \ + X_DRIVER_TYPE TMC2209 Y_DRIVER_TYPE TMC2208 Z_DRIVER_TYPE TMC2209 E0_DRIVER_TYPE TMC2209 \ + X_HARDWARE_SERIAL Serial1 Y_HARDWARE_SERIAL Serial1 Z_HARDWARE_SERIAL Serial1 E0_HARDWARE_SERIAL Serial1 \ + X_SLAVE_ADDRESS 0 Y_SLAVE_ADDRESS 1 Z_SLAVE_ADDRESS 2 E0_SLAVE_ADDRESS 3 +opt_enable HOTEND_IDLE_TIMEOUT SOFTWARE_DRIVER_ENABLE +exec_test $1 $2 "MKS TinyBee, TMC HW Serial, Hotend Idle" "$3" + +# +# Build with LCD, SD support and Speaker support +# +restore_configs +opt_set MOTHERBOARD BOARD_MKS_TINYBEE \ + LCD_LANGUAGE en \ + LCD_INFO_SCREEN_STYLE 0 \ + DISPLAY_CHARSET_HD44780 WESTERN \ + NEOPIXEL_TYPE NEO_RGB +opt_enable FYSETC_MINI_12864_2_1 SDSUPPORT SPEAKER +opt_enable LED_CONTROL_MENU LED_USER_PRESET_STARTUP LED_COLOR_PRESETS NEOPIXEL_LED +exec_test $1 $2 "MKS TinyBee with NeoPixel LCD, SD and Speaker" "$3" + +# cleanup +restore_configs