ソースを参照

Adjust Travis CI tests

Scott Lahteine 6年前
コミット
d52deeb15a

+ 2
- 2
.travis.yml ファイルの表示

@@ -17,8 +17,8 @@ cache:
17 17
 
18 18
 env:
19 19
   - TEST_PLATFORM="megaatmega2560"
20
-  - TEST_PLATFORM="LPC1768"
21 20
   - TEST_PLATFORM="DUE"
21
+  - TEST_PLATFORM="LPC1768"
22 22
   - TEST_PLATFORM="STM32F1"
23 23
   - TEST_PLATFORM="teensy35"
24 24
 
@@ -49,4 +49,4 @@ before_script:
49 49
   - cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
50 50
   #
51 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 ファイルの表示

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

+ 3
- 0
buildroot/share/tests/LPC1768_tests ファイルの表示

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

+ 3
- 0
buildroot/share/tests/STM32F1_tests ファイルの表示

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

+ 42
- 30
buildroot/share/tests/megaatmega2560_tests ファイルの表示

@@ -1,4 +1,7 @@
1 1
 #!/usr/bin/env bash
2
+#
3
+# Build tests for AVR
4
+#
2 5
 
3 6
 # exit on first failure
4 7
 set -e
@@ -7,11 +10,13 @@ set -e
7 10
 # Backup pins_RAMPS.h
8 11
 #
9 12
 cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
13
+
10 14
 #
11 15
 # Build with the default configurations
12 16
 #
13 17
 restore_configs
14 18
 exec_test $1 $2 "Default Configuration"
19
+
15 20
 #
16 21
 # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
17 22
 # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
@@ -23,15 +28,18 @@ opt_set TEMP_SENSOR_0 -2
23 28
 opt_set TEMP_SENSOR_1 1
24 29
 opt_set TEMP_SENSOR_BED 1
25 30
 opt_set POWER_SUPPLY 1
31
+opt_set GRID_MAX_POINTS_X 16
26 32
 opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \
27 33
            REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS PINS_DEBUGGING \
28 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 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 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 44
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
37 45
 #
@@ -47,7 +55,8 @@ opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATU
47 55
            EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
48 56
 opt_enable_adv USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
49 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 61
 # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
53 62
 #
@@ -55,7 +64,8 @@ opt_enable Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GC
55 64
 opt_set LCD_LANGUAGE jp-kana
56 65
 opt_disable SEGMENT_LEVELED_MOVES
57 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 70
 # Test a Servo Probe
61 71
 # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
@@ -65,27 +75,24 @@ opt_enable Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
65 75
            AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
66 76
 opt_set NUM_SERVOS 1
67 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 81
 # Test MESH_BED_LEVELING feature, with LCD
71 82
 #
72 83
 restore_configs
73 84
 opt_enable MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING ULTIMAKERCONTROLLER
74 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 90
 restore_configs
86 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 96
            ULTIMAKERCONTROLLER SDSUPPORT \
90 97
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632
91 98
 opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
@@ -94,6 +101,7 @@ opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
94 101
 opt_set_adv PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
95 102
 opt_set_adv I2C_SLAVE_ADDRESS 63
96 103
 exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
104
+
97 105
 #
98 106
 # Mixing Extruder with 5 steppers, Cyrillic
99 107
 #
@@ -103,6 +111,7 @@ opt_enable MIXING_EXTRUDER CR10_STOCKDISPLAY
103 111
 opt_set MIXING_STEPPERS 5
104 112
 opt_set LCD_LANGUAGE ru
105 113
 exec_test $1 $2 "Mixing Extruder with 5 steppers, Cyrillic"
114
+
106 115
 #
107 116
 # Test DUAL_X_CARRIAGE
108 117
 #
@@ -113,6 +122,7 @@ opt_set TEMP_SENSOR_1 1
113 122
 opt_enable USE_XMAX_PLUG
114 123
 opt_enable_adv DUAL_X_CARRIAGE
115 124
 exec_test $1 $2 "DUAL_X_CARRIAGE"
125
+
116 126
 #
117 127
 # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
118 128
 #
@@ -121,17 +131,22 @@ exec_test $1 $2 "DUAL_X_CARRIAGE"
121 131
 #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
122 132
 #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
123 133
 #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
134
+
124 135
 #
125 136
 # Enable COREXY
126 137
 #
127 138
 #restore_configs
128 139
 #opt_enable COREXY
129 140
 #exec_test $1 $2 "Stuff"
141
+
130 142
 #
131 143
 # Test many less common options
132 144
 #
133 145
 restore_configs
134 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 150
 opt_enable COREYX USE_XMAX_PLUG \
136 151
            REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT \
137 152
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR \
@@ -140,16 +155,13 @@ opt_enable COREYX USE_XMAX_PLUG \
140 155
 opt_set_adv FAN_MIN_PWM 50
141 156
 opt_set_adv FAN_KICKSTART_TIME 100
142 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 159
                ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
145 160
                VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
146 161
                EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
147 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 163
 exec_test $1 $2 "Many less common options"
152
-#
164
+
153 165
 ######## Other Standard LCD/Panels ##############
154 166
 #
155 167
 # ULTRA_LCD
@@ -189,12 +201,6 @@ exec_test $1 $2 "Many less common options"
189 201
 #opt_set_adv SDSORT_CACHE_NAMES true
190 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 204
 # REPRAPWORLD_KEYPAD
199 205
 #
200 206
 # Cant find configuration details to get it to compile
@@ -207,7 +213,7 @@ exec_test $1 $2 "Full-featured CR-10S config"
207 213
 #restore_configs
208 214
 #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
209 215
 #exec_test $1 $2 "Stuff"
210
-#
216
+
211 217
 ######## I2C LCD/PANELS ##############
212 218
 #
213 219
 # !!!ATTENTION!!!
@@ -237,6 +243,7 @@ exec_test $1 $2 "Full-featured CR-10S config"
237 243
 #restore_configs
238 244
 #opt_enable LCM1602
239 245
 #exec_test $1 $2 "Stuff"
246
+
240 247
 #
241 248
 # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
242 249
 #
@@ -247,9 +254,14 @@ exec_test $1 $2 "Full-featured CR-10S config"
247 254
 #restore_configs
248 255
 #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
249 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 266
 # BQ Hephestos 2
255 267
 #restore_configs

buildroot/share/tests/start_tests → buildroot/share/tests/run_tests ファイルの表示

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

+ 12
- 4
buildroot/share/tests/teensy35_tests ファイルの表示

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

読み込み中…
キャンセル
保存