|
@@ -0,0 +1,116 @@
|
|
1
|
+#!/usr/bin/env bash
|
|
2
|
+#
|
|
3
|
+# Build tests for Teensy 3.1/3.2 (ARM Cortex-M4)
|
|
4
|
+#
|
|
5
|
+
|
|
6
|
+# exit on first failure
|
|
7
|
+set -e
|
|
8
|
+
|
|
9
|
+backup_ramps
|
|
10
|
+
|
|
11
|
+restore_configs
|
|
12
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
13
|
+exec_test $1 $2 "Teensy3.1 with default config"
|
|
14
|
+
|
|
15
|
+#
|
|
16
|
+# Test as many features together as possible
|
|
17
|
+#
|
|
18
|
+restore_configs
|
|
19
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
20
|
+opt_set EXTRUDERS 2
|
|
21
|
+opt_set TEMP_SENSOR_0 1
|
|
22
|
+opt_set TEMP_SENSOR_1 5
|
|
23
|
+opt_set TEMP_SENSOR_BED 1
|
|
24
|
+opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LCD_INFO_MENU SDSUPPORT SDCARD_SORT_ALPHA \
|
|
25
|
+ FILAMENT_WIDTH_SENSOR FILAMENT_LCD_DISPLAY CALIBRATION_GCODE BAUD_RATE_GCODE \
|
|
26
|
+ FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
|
|
27
|
+ BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
|
|
28
|
+ PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT M100_FREE_MEMORY_WATCHER \
|
|
29
|
+ ADVANCED_PAUSE_FEATURE ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES PARK_HEAD_ON_PAUSE \
|
|
30
|
+ PHOTO_GCODE PHOTO_POSITION PHOTO_SWITCH_POSITION PHOTO_SWITCH_MS PHOTO_DELAY_MS PHOTO_RETRACT_MM \
|
|
31
|
+ HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT
|
|
32
|
+opt_set I2C_SLAVE_ADDRESS 63
|
|
33
|
+opt_set GRID_MAX_POINTS_X 16
|
|
34
|
+exec_test $1 $2 "Teensy3.1 with many features"
|
|
35
|
+
|
|
36
|
+#
|
|
37
|
+# Test a Sled Z Probe with Linear leveling
|
|
38
|
+#
|
|
39
|
+restore_configs
|
|
40
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
41
|
+opt_enable EEPROM_SETTINGS Z_PROBE_SLED AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE GCODE_MACROS
|
|
42
|
+exec_test $1 $2 "Sled Z Probe with Linear leveling"
|
|
43
|
+
|
|
44
|
+#
|
|
45
|
+# Test a Servo Probe
|
|
46
|
+#
|
|
47
|
+# restore_configs
|
|
48
|
+# opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
49
|
+# opt_enable Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
|
|
50
|
+# AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
|
51
|
+# opt_set NUM_SERVOS 1
|
|
52
|
+# exec_test $1 $2 "Servo Probe"
|
|
53
|
+#
|
|
54
|
+# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
|
55
|
+#
|
|
56
|
+# opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS \
|
|
57
|
+# EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
|
|
58
|
+# exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
|
|
59
|
+
|
|
60
|
+#
|
|
61
|
+# Test MAGNETIC_PARKING_EXTRUDER with LCD
|
|
62
|
+#
|
|
63
|
+restore_configs
|
|
64
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
65
|
+opt_set EXTRUDERS 2
|
|
66
|
+opt_set TEMP_SENSOR_1 1
|
|
67
|
+opt_enable MAGNETIC_PARKING_EXTRUDER ULTIMAKERCONTROLLER
|
|
68
|
+exec_test $1 $2 "MAGNETIC_PARKING_EXTRUDER with LCD"
|
|
69
|
+
|
|
70
|
+#
|
|
71
|
+# Mixing Extruder
|
|
72
|
+#
|
|
73
|
+restore_configs
|
|
74
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
75
|
+opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1 GRADIENT_MIX GRADIENT_VTOOL REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
76
|
+opt_set MIXING_STEPPERS 2
|
|
77
|
+exec_test $1 $2 "Mixing Extruder"
|
|
78
|
+
|
|
79
|
+#
|
|
80
|
+# Test SWITCHING_EXTRUDER
|
|
81
|
+#
|
|
82
|
+# restore_configs
|
|
83
|
+# opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
84
|
+# opt_set EXTRUDERS 2
|
|
85
|
+# opt_set NUM_SERVOS 1
|
|
86
|
+# opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
|
87
|
+# exec_test $1 $2 "SWITCHING_EXTRUDER"
|
|
88
|
+#
|
|
89
|
+# Enable COREXY
|
|
90
|
+#
|
|
91
|
+restore_configs
|
|
92
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
93
|
+opt_enable COREXY
|
|
94
|
+exec_test $1 $2 "COREXY"
|
|
95
|
+
|
|
96
|
+#
|
|
97
|
+# Enable COREXZ
|
|
98
|
+#
|
|
99
|
+restore_configs
|
|
100
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
101
|
+opt_enable COREXZ
|
|
102
|
+exec_test $1 $2 "COREXZ"
|
|
103
|
+
|
|
104
|
+#
|
|
105
|
+# Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
|
|
106
|
+#
|
|
107
|
+restore_configs
|
|
108
|
+opt_set MOTHERBOARD BOARD_TEENSY31_32
|
|
109
|
+opt_enable Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
|
|
110
|
+pins_set ramps/RAMPS X_MAX_PIN -1
|
|
111
|
+opt_add Z2_MAX_PIN 2
|
|
112
|
+opt_enable USE_XMAX_PLUG
|
|
113
|
+exec_test $1 $2 "Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS"
|
|
114
|
+
|
|
115
|
+# Clean up
|
|
116
|
+restore_configs
|