2020-09-09 18:57:20 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Build tests for Teensy 4.0/4.1 (ARM Cortex-M7)
|
|
|
|
#
|
|
|
|
|
|
|
|
# exit on first failure
|
|
|
|
set -e
|
|
|
|
|
|
|
|
restore_configs
|
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Teensy4.1 with default config" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test as many features together as possible
|
|
|
|
#
|
|
|
|
restore_configs
|
2021-03-03 00:15:56 -06:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41 \
|
2021-11-06 22:53:36 -05:00
|
|
|
EXTRUDERS 2 TEMP_SENSOR_0 -5 TEMP_SENSOR_1 5 TEMP_SENSOR_BED 1 TEMP_0_CS_PIN 23 \
|
2021-03-03 00:15:56 -06:00
|
|
|
I2C_SLAVE_ADDRESS 63 \
|
2021-03-23 01:47:07 -05:00
|
|
|
GRID_MAX_POINTS_X 16 \
|
|
|
|
NOZZLE_CLEAN_START_POINT "{ { 10, 10, 3 }, { 10, 10, 3 } }" \
|
|
|
|
NOZZLE_CLEAN_END_POINT "{ { 10, 20, 3 }, { 10, 20, 3 } }"
|
2021-11-06 22:53:36 -05:00
|
|
|
opt_enable MAX31865_SENSOR_OHMS_0 MAX31865_CALIBRATION_OHMS_0 \
|
|
|
|
EXTENSIBLE_UI LCD_INFO_MENU SDSUPPORT SDCARD_SORT_ALPHA \
|
2020-09-22 19:58:06 -05:00
|
|
|
FILAMENT_LCD_DISPLAY CALIBRATION_GCODE BAUD_RATE_GCODE \
|
2020-09-09 18:57:20 -05:00
|
|
|
FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
|
2020-09-22 19:58:06 -05:00
|
|
|
BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET \
|
|
|
|
PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
|
2020-09-09 18:57:20 -05:00
|
|
|
ADVANCED_PAUSE_FEATURE ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES PARK_HEAD_ON_PAUSE \
|
|
|
|
PHOTO_GCODE PHOTO_POSITION PHOTO_SWITCH_POSITION PHOTO_SWITCH_MS PHOTO_DELAY_MS PHOTO_RETRACT_MM \
|
|
|
|
HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT
|
2020-09-22 19:58:06 -05:00
|
|
|
opt_add EXTUI_EXAMPLE
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Teensy4.1 with many features" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test a Sled Z Probe with Linear leveling
|
|
|
|
#
|
|
|
|
restore_configs
|
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41
|
|
|
|
opt_enable EEPROM_SETTINGS Z_PROBE_SLED Z_SAFE_HOMING AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE GCODE_MACROS
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Sled Z Probe with Linear leveling" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test a Servo Probe
|
|
|
|
#
|
|
|
|
# restore_configs
|
|
|
|
# opt_set MOTHERBOARD BOARD_TEENSY41
|
|
|
|
# opt_enable Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
|
|
|
|
# AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
|
|
|
# opt_set NUM_SERVOS 1
|
2020-11-21 22:32:56 -06:00
|
|
|
# exec_test $1 $2 "Servo Probe" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
#
|
|
|
|
# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
|
|
|
#
|
|
|
|
# opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS \
|
|
|
|
# EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
|
2020-11-21 22:32:56 -06:00
|
|
|
# exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
2020-10-19 20:38:24 -05:00
|
|
|
# Test MAGNETIC_PARKING_EXTRUDER with no LCD
|
2020-09-09 18:57:20 -05:00
|
|
|
#
|
|
|
|
restore_configs
|
2021-03-03 00:15:56 -06:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41 SERIAL_PORT_2 -2 \
|
|
|
|
EXTRUDERS 2 TEMP_SENSOR_1 1
|
2020-10-20 14:35:29 -05:00
|
|
|
opt_enable EEPROM_SETTINGS MAGNETIC_PARKING_EXTRUDER
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Ethernet, EEPROM, Magnetic Parking Extruder, No LCD" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Mixing Extruder
|
|
|
|
#
|
|
|
|
restore_configs
|
2021-03-03 00:15:56 -06:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41 MIXING_STEPPERS 2
|
2020-09-22 19:58:06 -05:00
|
|
|
opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1 GRADIENT_MIX GRADIENT_VTOOL
|
2021-08-08 01:24:15 -05:00
|
|
|
opt_disable DISABLE_INACTIVE_EXTRUDER
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Mixing Extruder" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test SWITCHING_EXTRUDER
|
|
|
|
#
|
|
|
|
# restore_configs
|
2021-03-03 00:15:56 -06:00
|
|
|
# opt_set MOTHERBOARD BOARD_TEENSY41 EXTRUDERS 2 NUM_SERVOS 1
|
2020-09-09 18:57:20 -05:00
|
|
|
# opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
2020-11-21 22:32:56 -06:00
|
|
|
# exec_test $1 $2 "SWITCHING_EXTRUDER" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Enable COREXY
|
|
|
|
#
|
|
|
|
restore_configs
|
2021-03-03 00:15:56 -06:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41 \
|
|
|
|
X_DRIVER_TYPE TMC5160 Y_DRIVER_TYPE TMC5160 \
|
|
|
|
X_MIN_ENDSTOP_INVERTING true Y_MIN_ENDSTOP_INVERTING true \
|
|
|
|
X_CS_PIN 46 Y_CS_PIN 47
|
|
|
|
opt_enable COREXY USE_ZMIN_PLUG MONITOR_DRIVER_STATUS SENSORLESS_HOMING
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Teensy 4.0/4.1 COREXY" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Enable COREXZ
|
|
|
|
#
|
|
|
|
restore_configs
|
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41
|
|
|
|
opt_enable COREXZ
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Teensy 4.0/4.1 COREXZ" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Enable Dual Z with Dual Z endstops
|
|
|
|
#
|
|
|
|
restore_configs
|
2021-08-02 17:08:35 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY41 NUM_Z_STEPPER_DRIVERS 2 Z2_MIN_PIN 2
|
2020-10-19 03:16:02 -05:00
|
|
|
opt_enable Z_MULTI_ENDSTOPS USE_XMAX_PLUG
|
2020-09-09 18:57:20 -05:00
|
|
|
pins_set ramps/RAMPS X_MAX_PIN -1
|
2020-11-17 20:04:28 -06:00
|
|
|
exec_test $1 $2 "Dual Z with Dual Z endstops" "$3"
|
2020-09-09 18:57:20 -05:00
|
|
|
|
|
|
|
# Clean up
|
|
|
|
restore_configs
|