Skip to content

Commit

Permalink
Add tests for mks_tinybee platform
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-sukharev committed Jul 14, 2022
1 parent c80c181 commit 408fe70
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ jobs:
- chitu_f103
- Opulo_Lumen_REV3

# ESP32 environments
- mks_tinybee

# Put lengthy tests last

- LPC1768
Expand Down
9 changes: 0 additions & 9 deletions buildroot/tests/esp32
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32 TX_BUFFER_SIZE 64 \
opt_enable WIFISUPPORT WEBSUPPORT GCODE_MACROS BAUD_RATE_GCODE M115_GEOMETRY_REPORT REPETIER_GCODE_M360
exec_test $1 $2 "ESP32 with WIFISUPPORT and WEBSUPPORT" "$3"

#
# Build with ESP3D WiFi, OTA and custom WIFI commands support
#
restore_configs
opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32 TX_BUFFER_SIZE 64 \
WIFI_SSID '"ssid"' WIFI_PWD '"password"'
opt_enable ESP3D_WIFISUPPORT WEBSUPPORT OTASUPPORT WIFI_CUSTOM_COMMAND
exec_test $1 $2 "ESP32, ESP3D + WEB + OTA" "$3"

#
# Build with TMC drivers using hardware serial
#
Expand Down
51 changes: 51 additions & 0 deletions buildroot/tests/mks_tinybee
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bash
#
# Build tests for ESP32
#

# 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 "ESP32 with WIFISUPPORT and WEBSUPPORT" "$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, ESP3D + WEB + OTA" "$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 "ESP32, 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
opt_enable FYSETC_MINI_12864_2_1 SDSUPPORT SPEAKER
exec_test $1 $2 "ESP32, LCD, Speaker, SD" "$3"

# cleanup
restore_configs

0 comments on commit 408fe70

Please sign in to comment.