Browse Source

Adjust Travis CI tests

Scott Lahteine 6 years ago
parent
commit
d52deeb15a

+ 2
- 2
.travis.yml View File

17
 
17
 
18
 env:
18
 env:
19
   - TEST_PLATFORM="megaatmega2560"
19
   - TEST_PLATFORM="megaatmega2560"
20
-  - TEST_PLATFORM="LPC1768"
21
   - TEST_PLATFORM="DUE"
20
   - TEST_PLATFORM="DUE"
21
+  - TEST_PLATFORM="LPC1768"
22
   - TEST_PLATFORM="STM32F1"
22
   - TEST_PLATFORM="STM32F1"
23
   - TEST_PLATFORM="teensy35"
23
   - TEST_PLATFORM="teensy35"
24
 
24
 
49
   - cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
49
   - cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
50
   #
50
   #
51
 script:
51
 script:
52
-  - start_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
52
+  - run_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}

+ 3
- 0
buildroot/share/tests/DUE_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for DUE (Atmel SAM3X8E ARM Cortex-M3)
4
+#
2
 
5
 
3
 # exit on first failure
6
 # exit on first failure
4
 set -e
7
 set -e

+ 3
- 0
buildroot/share/tests/LPC1768_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for LPC1768 (NXP ARM Cortex-M3)
4
+#
2
 
5
 
3
 # exit on first failure
6
 # exit on first failure
4
 set -e
7
 set -e

+ 3
- 0
buildroot/share/tests/STM32F1_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for STM32F103RE
4
+#
2
 
5
 
3
 # exit on first failure
6
 # exit on first failure
4
 set -e
7
 set -e

+ 42
- 30
buildroot/share/tests/megaatmega2560_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for AVR
4
+#
2
 
5
 
3
 # exit on first failure
6
 # exit on first failure
4
 set -e
7
 set -e
7
 # Backup pins_RAMPS.h
10
 # Backup pins_RAMPS.h
8
 #
11
 #
9
 cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
12
 cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
13
+
10
 #
14
 #
11
 # Build with the default configurations
15
 # Build with the default configurations
12
 #
16
 #
13
 restore_configs
17
 restore_configs
14
 exec_test $1 $2 "Default Configuration"
18
 exec_test $1 $2 "Default Configuration"
19
+
15
 #
20
 #
16
 # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
21
 # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
17
 # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
22
 # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
23
 opt_set TEMP_SENSOR_1 1
28
 opt_set TEMP_SENSOR_1 1
24
 opt_set TEMP_SENSOR_BED 1
29
 opt_set TEMP_SENSOR_BED 1
25
 opt_set POWER_SUPPLY 1
30
 opt_set POWER_SUPPLY 1
31
+opt_set GRID_MAX_POINTS_X 16
26
 opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \
32
 opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \
27
            REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS PINS_DEBUGGING \
33
            REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS PINS_DEBUGGING \
28
            BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR \
34
            BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR \
29
-           AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
30
-opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
35
+           AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
36
+           SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
37
+opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
38
+               POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
31
                FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING
39
                FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING
32
-opt_set GRID_MAX_POINTS_X 16
33
 opt_set_adv FANMUX0_PIN 53
40
 opt_set_adv FANMUX0_PIN 53
34
-exec_test $1 $2 "Extruders(2) MAX6675 Fixed Probe etc"
41
+exec_test $1 $2 "RAMPS with 2 extruders, RRDFGSC, Linear ABL, LEDs, and many options"
42
+
35
 #
43
 #
36
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
44
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
37
 #
45
 #
47
            EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
55
            EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
48
 opt_enable_adv USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
56
 opt_enable_adv USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
49
                CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION
57
                CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION
50
-exec_test $1 $2 "Probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders"
58
+exec_test $1 $2 "Azteeg X3 with 5 extruders, RRDFGSC, probeless UBL, Linear Advance, and more"
59
+
51
 #
60
 #
52
 # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
61
 # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
53
 #
62
 #
55
 opt_set LCD_LANGUAGE jp-kana
64
 opt_set LCD_LANGUAGE jp-kana
56
 opt_disable SEGMENT_LEVELED_MOVES
65
 opt_disable SEGMENT_LEVELED_MOVES
57
 opt_enable_adv BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET
66
 opt_enable_adv BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET
58
-exec_test $1 $2 "Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language"
67
+exec_test $1 $2 "... Sled Z Probe, Skew, UBL Cartesian moves, Japanese, and Z probe BABYSTEPPING"
68
+
59
 #
69
 #
60
 # Test a Servo Probe
70
 # Test a Servo Probe
61
 # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
71
 # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
65
            AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
75
            AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
66
 opt_set NUM_SERVOS 1
76
 opt_set NUM_SERVOS 1
67
 opt_enable_adv NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
77
 opt_enable_adv NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
68
-exec_test $1 $2 "Servo Probe with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS etc"
78
+exec_test $1 $2 "RAMPS with Servo Probe, 3-Point ABL, DEBUG_LEVELING_FEATURE, EEPROM, G38, and more"
79
+
69
 #
80
 #
70
 # Test MESH_BED_LEVELING feature, with LCD
81
 # Test MESH_BED_LEVELING feature, with LCD
71
 #
82
 #
72
 restore_configs
83
 restore_configs
73
 opt_enable MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING ULTIMAKERCONTROLLER
84
 opt_enable MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING ULTIMAKERCONTROLLER
74
 exec_test $1 $2 "MESH_BED_LEVELING feature, with LCD"
85
 exec_test $1 $2 "MESH_BED_LEVELING feature, with LCD"
86
+
75
 #
87
 #
76
-# Test MINIRAMBO for PWM_MOTOR_CURRENT
77
-#      PROBE_MANUALLY feature, with LCD support,
78
-#      ULTIMAKERCONTROLLER, FILAMENT_LCD_DISPLAY, FILAMENT_WIDTH_SENSOR,
79
-#      PRINTCOUNTER, NOZZLE_PARK_FEATURE, NOZZLE_CLEAN_FEATURE, PCA9632,
80
-#      Z_DUAL_ENDSTOPS, BEZIER_CURVE_SUPPORT, EXPERIMENTAL_I2CBUS,
81
-#      ADVANCED_PAUSE_FEATURE, ADVANCED_PAUSE_CONTINUOUS_PURGE, PARK_HEAD_ON_PAUSE, LCD_INFO_MENU,
82
-#      EEPROM_SETTINGS, EEPROM_CHITCHAT, M100_FREE_MEMORY_WATCHER,
83
-#      INCH_MODE_SUPPORT, TEMPERATURE_UNITS_SUPPORT
88
+# Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
84
 #
89
 #
85
 restore_configs
90
 restore_configs
86
 opt_set MOTHERBOARD BOARD_MINIRAMBO
91
 opt_set MOTHERBOARD BOARD_MINIRAMBO
87
-opt_enable PROBE_MANUALLY AUTO_BED_LEVELING_BILINEAR G26_MESH_EDITING LCD_BED_LEVELING ULTIMAKERCONTROLLER \
88
-           EEPROM_SETTINGS EEPROM_CHITCHAT M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
92
+opt_enable PROBE_MANUALLY AUTO_BED_LEVELING_BILINEAR G26_MESH_EDITING LCD_BED_LEVELING \
93
+           EEPROM_SETTINGS EEPROM_CHITCHAT \
94
+           M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR \
95
+           INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
89
            ULTIMAKERCONTROLLER SDSUPPORT \
96
            ULTIMAKERCONTROLLER SDSUPPORT \
90
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632
97
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632
91
 opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
98
 opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
94
 opt_set_adv PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
101
 opt_set_adv PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
95
 opt_set_adv I2C_SLAVE_ADDRESS 63
102
 opt_set_adv I2C_SLAVE_ADDRESS 63
96
 exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
103
 exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
104
+
97
 #
105
 #
98
 # Mixing Extruder with 5 steppers, Cyrillic
106
 # Mixing Extruder with 5 steppers, Cyrillic
99
 #
107
 #
103
 opt_set MIXING_STEPPERS 5
111
 opt_set MIXING_STEPPERS 5
104
 opt_set LCD_LANGUAGE ru
112
 opt_set LCD_LANGUAGE ru
105
 exec_test $1 $2 "Mixing Extruder with 5 steppers, Cyrillic"
113
 exec_test $1 $2 "Mixing Extruder with 5 steppers, Cyrillic"
114
+
106
 #
115
 #
107
 # Test DUAL_X_CARRIAGE
116
 # Test DUAL_X_CARRIAGE
108
 #
117
 #
113
 opt_enable USE_XMAX_PLUG
122
 opt_enable USE_XMAX_PLUG
114
 opt_enable_adv DUAL_X_CARRIAGE
123
 opt_enable_adv DUAL_X_CARRIAGE
115
 exec_test $1 $2 "DUAL_X_CARRIAGE"
124
 exec_test $1 $2 "DUAL_X_CARRIAGE"
125
+
116
 #
126
 #
117
 # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
127
 # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
118
 #
128
 #
121
 #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
131
 #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
122
 #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
132
 #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
123
 #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
133
 #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
134
+
124
 #
135
 #
125
 # Enable COREXY
136
 # Enable COREXY
126
 #
137
 #
127
 #restore_configs
138
 #restore_configs
128
 #opt_enable COREXY
139
 #opt_enable COREXY
129
 #exec_test $1 $2 "Stuff"
140
 #exec_test $1 $2 "Stuff"
141
+
130
 #
142
 #
131
 # Test many less common options
143
 # Test many less common options
132
 #
144
 #
133
 restore_configs
145
 restore_configs
134
 opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
146
 opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
147
+opt_set EXTRUDERS 2
148
+opt_set TEMP_SENSOR_1 -4
149
+opt_set SERVO_DELAY "{ 300, 300, 300 }"
135
 opt_enable COREYX USE_XMAX_PLUG \
150
 opt_enable COREYX USE_XMAX_PLUG \
136
            REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT \
151
            REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT \
137
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR \
152
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR \
140
 opt_set_adv FAN_MIN_PWM 50
155
 opt_set_adv FAN_MIN_PWM 50
141
 opt_set_adv FAN_KICKSTART_TIME 100
156
 opt_set_adv FAN_KICKSTART_TIME 100
142
 opt_set_adv XY_FREQUENCY_LIMIT  15
157
 opt_set_adv XY_FREQUENCY_LIMIT  15
143
-opt_enable_adv SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \
158
+opt_enable_adv SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
144
                ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
159
                ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
145
                VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
160
                VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
146
                EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
161
                EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
147
                MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
162
                MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
148
-opt_set EXTRUDERS 2
149
-opt_set TEMP_SENSOR_1 -4
150
-opt_set SERVO_DELAY "{ 300, 300, 300 }"
151
 exec_test $1 $2 "Many less common options"
163
 exec_test $1 $2 "Many less common options"
152
-#
164
+
153
 ######## Other Standard LCD/Panels ##############
165
 ######## Other Standard LCD/Panels ##############
154
 #
166
 #
155
 # ULTRA_LCD
167
 # ULTRA_LCD
189
 #opt_set_adv SDSORT_CACHE_NAMES true
201
 #opt_set_adv SDSORT_CACHE_NAMES true
190
 #exec_test $1 $2 "Stuff"
202
 #exec_test $1 $2 "Stuff"
191
 #
203
 #
192
-# Test a full-featured CR-10S config
193
-#
194
-use_example_configs Creality/CR-10S
195
-opt_enable SHOW_CUSTOM_BOOTSCREEN
196
-exec_test $1 $2 "Full-featured CR-10S config"
197
-#
198
 # REPRAPWORLD_KEYPAD
204
 # REPRAPWORLD_KEYPAD
199
 #
205
 #
200
 # Cant find configuration details to get it to compile
206
 # Cant find configuration details to get it to compile
207
 #restore_configs
213
 #restore_configs
208
 #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
214
 #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
209
 #exec_test $1 $2 "Stuff"
215
 #exec_test $1 $2 "Stuff"
210
-#
216
+
211
 ######## I2C LCD/PANELS ##############
217
 ######## I2C LCD/PANELS ##############
212
 #
218
 #
213
 # !!!ATTENTION!!!
219
 # !!!ATTENTION!!!
237
 #restore_configs
243
 #restore_configs
238
 #opt_enable LCM1602
244
 #opt_enable LCM1602
239
 #exec_test $1 $2 "Stuff"
245
 #exec_test $1 $2 "Stuff"
246
+
240
 #
247
 #
241
 # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
248
 # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
242
 #
249
 #
247
 #restore_configs
254
 #restore_configs
248
 #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
255
 #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
249
 #for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
256
 #for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
257
+
258
+######## Example Configurations ##############
250
 #
259
 #
260
+# Test a full-featured CR-10S config
251
 #
261
 #
252
-######## Example Configurations ##############
262
+use_example_configs Creality/CR-10S
263
+opt_enable SHOW_CUSTOM_BOOTSCREEN
264
+exec_test $1 $2 "Full-featured CR-10S config"
253
 #
265
 #
254
 # BQ Hephestos 2
266
 # BQ Hephestos 2
255
 #restore_configs
267
 #restore_configs

buildroot/share/tests/start_tests → buildroot/share/tests/run_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# run_tests
4
+#
2
 export PATH="$PATH:$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"
5
 export PATH="$PATH:$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"
3
 export PATH="$PATH:./buildroot/bin"
6
 export PATH="$PATH:./buildroot/bin"
4
 
7
 
27
 
30
 
28
 if [[ $2 = "ALL" ]]; then
31
 if [[ $2 = "ALL" ]]; then
29
   dir_list=("$(dirname "${BASH_SOURCE[0]}")"/*)
32
   dir_list=("$(dirname "${BASH_SOURCE[0]}")"/*)
30
-  declare -a tests=(${dir_list[@]/*start_tests/})
33
+  declare -a tests=(${dir_list[@]/*run_tests/})
31
   for f in "${tests[@]}"; do
34
   for f in "${tests[@]}"; do
32
     env_backup
35
     env_backup
33
     testenv=$(basename $f | cut -d"_" -f1)
36
     testenv=$(basename $f | cut -d"_" -f1)

+ 12
- 4
buildroot/share/tests/teensy35_tests View File

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for Teensy 3.5/3.6 (ARM Cortex-M4)
4
+#
2
 
5
 
3
 # exit on first failure
6
 # exit on first failure
4
 set -e
7
 set -e
6
 restore_configs
9
 restore_configs
7
 opt_set MOTHERBOARD BOARD_TEENSY35_36
10
 opt_set MOTHERBOARD BOARD_TEENSY35_36
8
 cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
11
 cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
9
-#
10
-# Test Teensy3.5 with default config
11
-#
12
 exec_test $1 $2 "Teensy3.5 with default config"
12
 exec_test $1 $2 "Teensy3.5 with default config"
13
+
13
 #
14
 #
14
 # Test as many features together as possible
15
 # Test as many features together as possible
15
 #
16
 #
26
 opt_enable_adv ADVANCED_PAUSE_FEATURE LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA PARK_HEAD_ON_PAUSE
27
 opt_enable_adv ADVANCED_PAUSE_FEATURE LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA PARK_HEAD_ON_PAUSE
27
 opt_set_adv I2C_SLAVE_ADDRESS 63
28
 opt_set_adv I2C_SLAVE_ADDRESS 63
28
 opt_set GRID_MAX_POINTS_X 16
29
 opt_set GRID_MAX_POINTS_X 16
29
-exec_test $1 $2 "As many features together as possible"
30
+exec_test $1 $2 "Teensy3.5 with many features"
31
+
30
 #
32
 #
31
 # Test a Sled Z Probe with Linear leveling
33
 # Test a Sled Z Probe with Linear leveling
32
 #
34
 #
34
 opt_enable EEPROM_SETTINGS \
36
 opt_enable EEPROM_SETTINGS \
35
            Z_PROBE_SLED AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE
37
            Z_PROBE_SLED AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE
36
 exec_test $1 $2 "Sled Z Probe with Linear leveling"
38
 exec_test $1 $2 "Sled Z Probe with Linear leveling"
39
+
37
 #
40
 #
38
 # Test a Servo Probe
41
 # Test a Servo Probe
39
 #
42
 #
48
 # opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
51
 # opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
49
 # opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
52
 # opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
50
 # exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
53
 # exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
54
+
51
 #
55
 #
52
 # Test MESH_BED_LEVELING feature, with LCD
56
 # Test MESH_BED_LEVELING feature, with LCD
53
 #
57
 #
54
 restore_configs
58
 restore_configs
55
 opt_enable MESH_BED_LEVELING MESH_G28_REST_ORIGIN MANUAL_BED_LEVELING ULTIMAKERCONTROLLER
59
 opt_enable MESH_BED_LEVELING MESH_G28_REST_ORIGIN MANUAL_BED_LEVELING ULTIMAKERCONTROLLER
56
 exec_test $1 $2 "MESH_BED_LEVELING feature, with LCD"
60
 exec_test $1 $2 "MESH_BED_LEVELING feature, with LCD"
61
+
57
 #
62
 #
58
 # Mixing Extruder
63
 # Mixing Extruder
59
 #
64
 #
61
 opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1
66
 opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1
62
 opt_set MIXING_STEPPERS 2
67
 opt_set MIXING_STEPPERS 2
63
 exec_test $1 $2 "Mixing Extruder"
68
 exec_test $1 $2 "Mixing Extruder"
69
+
64
 #
70
 #
65
 # Test SWITCHING_EXTRUDER
71
 # Test SWITCHING_EXTRUDER
66
 #
72
 #
75
 restore_configs
81
 restore_configs
76
 opt_enable COREXY
82
 opt_enable COREXY
77
 exec_test $1 $2 "COREXY"
83
 exec_test $1 $2 "COREXY"
84
+
78
 #
85
 #
79
 # Enable COREXZ
86
 # Enable COREXZ
80
 #
87
 #
81
 restore_configs
88
 restore_configs
82
 opt_enable COREXZ
89
 opt_enable COREXZ
83
 exec_test $1 $2 "COREXZ"
90
 exec_test $1 $2 "COREXZ"
91
+
84
 #
92
 #
85
 # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
93
 # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
86
 #
94
 #

Loading…
Cancel
Save