2018-07-13 23:42:15 -05:00
|
|
|
#!/usr/bin/env bash
|
2018-10-08 23:03:53 -05:00
|
|
|
#
|
|
|
|
# Build tests for Teensy 3.5/3.6 (ARM Cortex-M4)
|
|
|
|
#
|
2018-07-13 23:42:15 -05:00
|
|
|
|
|
|
|
# exit on first failure
|
|
|
|
set -e
|
|
|
|
|
2018-09-02 03:27:39 -05:00
|
|
|
restore_configs
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-09-02 03:27:39 -05:00
|
|
|
cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
|
2018-07-13 23:42:15 -05:00
|
|
|
exec_test $1 $2 "Teensy3.5 with default config"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Test as many features together as possible
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_set EXTRUDERS 2
|
|
|
|
opt_set TEMP_SENSOR_0 1
|
|
|
|
opt_set TEMP_SENSOR_1 5
|
|
|
|
opt_set TEMP_SENSOR_BED 1
|
2019-02-14 15:09:35 -06:00
|
|
|
opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LCD_INFO_MENU SDSUPPORT SDCARD_SORT_ALPHA \
|
2019-02-06 17:20:17 -06:00
|
|
|
FILAMENT_WIDTH_SENSOR FILAMENT_LCD_DISPLAY CALIBRATION_GCODE \
|
2018-10-01 18:53:09 -05:00
|
|
|
FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
|
|
|
|
BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
|
2018-11-18 19:58:02 -06:00
|
|
|
PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT M100_FREE_MEMORY_WATCHER \
|
2019-02-14 15:09:35 -06: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 \
|
2019-02-12 15:55:47 -06:00
|
|
|
HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT
|
2018-11-18 19:58:02 -06:00
|
|
|
opt_set I2C_SLAVE_ADDRESS 63
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_set GRID_MAX_POINTS_X 16
|
2018-10-08 23:03:53 -05:00
|
|
|
exec_test $1 $2 "Teensy3.5 with many features"
|
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Test a Sled Z Probe with Linear leveling
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-11-18 19:58:02 -06:00
|
|
|
opt_enable EEPROM_SETTINGS Z_PROBE_SLED AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE GCODE_MACROS
|
2018-07-13 23:42:15 -05:00
|
|
|
exec_test $1 $2 "Sled Z Probe with Linear leveling"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Test a Servo Probe
|
|
|
|
#
|
2018-09-01 01:10:20 -05:00
|
|
|
# restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
# opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-10-01 18:53:09 -05:00
|
|
|
# opt_enable Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
|
|
|
|
# AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
2018-09-01 01:10:20 -05:00
|
|
|
# opt_set NUM_SERVOS 1
|
|
|
|
# exec_test $1 $2 "Servo Probe"
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
|
|
|
#
|
2018-11-18 19:58:02 -06:00
|
|
|
# opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS \
|
|
|
|
# EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
|
2018-09-01 01:10:20 -05:00
|
|
|
# exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
2019-02-06 06:30:53 -06:00
|
|
|
# Test MAGNETIC_PARKING_EXTRUDER with LCD
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2019-02-06 06:30:53 -06:00
|
|
|
opt_set EXTRUDERS 2
|
|
|
|
opt_set TEMP_SENSOR_1 1
|
|
|
|
opt_enable MAGNETIC_PARKING_EXTRUDER ULTIMAKERCONTROLLER
|
|
|
|
exec_test $1 $2 "MAGNETIC_PARKING_EXTRUDER with LCD"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Mixing Extruder
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2019-02-10 04:54:23 -06:00
|
|
|
opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1 GRADIENT_MIX GRADIENT_VTOOL REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_set MIXING_STEPPERS 2
|
|
|
|
exec_test $1 $2 "Mixing Extruder"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Test SWITCHING_EXTRUDER
|
|
|
|
#
|
2018-09-01 01:10:20 -05:00
|
|
|
# restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
# opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-09-01 01:10:20 -05:00
|
|
|
# opt_set EXTRUDERS 2
|
|
|
|
# opt_set NUM_SERVOS 1
|
|
|
|
# opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
|
|
|
# exec_test $1 $2 "SWITCHING_EXTRUDER"
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Enable COREXY
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_enable COREXY
|
|
|
|
exec_test $1 $2 "COREXY"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Enable COREXZ
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_enable COREXZ
|
|
|
|
exec_test $1 $2 "COREXZ"
|
2018-10-08 23:03:53 -05:00
|
|
|
|
2018-07-13 23:42:15 -05:00
|
|
|
#
|
|
|
|
# Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
|
|
|
|
#
|
|
|
|
restore_configs
|
2019-03-24 00:08:32 -05:00
|
|
|
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
2018-11-18 19:58:02 -06:00
|
|
|
opt_enable Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
|
2018-07-13 23:42:15 -05:00
|
|
|
pins_set RAMPS X_MAX_PIN -1
|
2018-11-18 19:58:02 -06:00
|
|
|
opt_add Z2_MAX_PIN 2
|
2018-07-13 23:42:15 -05:00
|
|
|
opt_enable USE_XMAX_PLUG
|
|
|
|
exec_test $1 $2 "Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS"
|
|
|
|
|
2018-06-19 11:55:49 -05:00
|
|
|
# Clean up
|
2018-09-02 03:27:39 -05:00
|
|
|
restore_configs
|