My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

megaatmega2560-tests 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR ATmega2560
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Build with the default configurations
  9. #
  10. #restore_configs
  11. #exec_test $1 $2 "Default Configuration"
  12. #
  13. # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
  14. # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
  15. # linear bed leveling, M48, leveling debug, and firmware retraction.
  16. #
  17. restore_configs
  18. opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
  19. opt_set EXTRUDERS 2
  20. opt_set TEMP_SENSOR_0 -2
  21. opt_set TEMP_SENSOR_1 1
  22. opt_set TEMP_SENSOR_BED 2
  23. opt_set GRID_MAX_POINTS_X 16
  24. opt_set FANMUX0_PIN 53
  25. opt_disable USE_WATCHDOG
  26. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST \
  27. PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING CODEPENDENT_XY_HOMING \
  28. EEPROM_SETTINGS SDSUPPORT SD_REPRINT_LAST_SELECTED_FILE BINARY_FILE_TRANSFER \
  29. BLINKM PCA9632 RGB_LED RGB_LED_R_PIN RGB_LED_G_PIN RGB_LED_B_PIN LED_CONTROL_MENU \
  30. NEOPIXEL_LED CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CASE_LIGHT_MENU \
  31. PID_PARAMS_PER_HOTEND PID_AUTOTUNE_MENU PID_EDIT_MENU LCD_SHOW_E_TOTAL \
  32. PRINTCOUNTER SERVICE_NAME_1 SERVICE_INTERVAL_1 LEVEL_BED_CORNERS \
  33. NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR FILAMENT_RUNOUT_DISTANCE_MM \
  34. ADVANCED_PAUSE_FEATURE FILAMENT_LOAD_UNLOAD_GCODES FILAMENT_UNLOAD_ALL_EXTRUDERS \
  35. AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DISTINCT_E_FACTORS \
  36. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
  37. BACKLASH_COMPENSATION BACKLASH_GCODE BAUD_RATE_GCODE BEZIER_CURVE_SUPPORT \
  38. FWRETRACT ARC_P_CIRCLES CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
  39. PSU_CONTROL AUTO_POWER_CONTROL POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
  40. SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER LIN_ADVANCE \
  41. PINS_DEBUGGING MAX7219_DEBUG M114_DETAIL
  42. opt_set TEMP_SENSOR_CHAMBER 3
  43. opt_set HEATER_CHAMBER_PIN 45
  44. exec_test $1 $2 "RAMPS | EXTRUDERS 2 | CHAR LCD + SD | FIX Probe | ABL-Linear | Advanced Pause | PLR | LEDs ..."
  45. #
  46. # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
  47. #
  48. use_example_configs AnimationExample
  49. opt_set SHOW_CUSTOM_BOOTSCREEN
  50. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  51. opt_set LCD_LANGUAGE fr
  52. opt_set EXTRUDERS 5
  53. opt_set TEMP_SENSOR_1 1
  54. opt_set TEMP_SENSOR_2 5
  55. opt_set TEMP_SENSOR_3 20
  56. opt_set TEMP_SENSOR_4 1000
  57. opt_set TEMP_SENSOR_BED 1
  58. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  59. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING BOOT_MARLIN_LOGO_SMALL \
  60. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT SCROLL_LONG_FILENAMES CANCEL_OBJECTS \
  61. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_USER_MENUS \
  62. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE QUICK_HOME \
  63. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  64. BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL
  65. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL Manual | LIN_ADVANCE ..."
  66. #
  67. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  68. #
  69. use_example_configs AnimationExample
  70. opt_set SHOW_CUSTOM_BOOTSCREEN
  71. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  72. opt_set LCD_LANGUAGE fr
  73. opt_set EXTRUDERS 5
  74. opt_set TEMP_SENSOR_1 1
  75. opt_set TEMP_SENSOR_2 5
  76. opt_set TEMP_SENSOR_3 20
  77. opt_set TEMP_SENSOR_4 1000
  78. opt_set TEMP_SENSOR_BED 1
  79. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  80. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING BOOT_MARLIN_LOGO_SMALL \
  81. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT SCROLL_LONG_FILENAMES CANCEL_OBJECTS \
  82. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_USER_MENUS \
  83. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE QUICK_HOME \
  84. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  85. BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL \
  86. Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
  87. opt_set LCD_LANGUAGE jp_kana
  88. opt_disable SEGMENT_LEVELED_MOVES
  89. opt_enable BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET BABYSTEP_DISPLAY_TOTAL M114_DETAIL
  90. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL Manual | LIN_ADVANCE | Sled Probe | Skew | UBL Cartes. | JP-Kana | Babystep offsets ..."
  91. #
  92. # Test a Servo Probe
  93. # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
  94. #
  95. restore_configs
  96. opt_set LCD_LANGUAGE zh_CN
  97. opt_set NUM_SERVOS 1
  98. opt_enable ZONESTAR_LCD Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE BOOT_MARLIN_LOGO_ANIMATED \
  99. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL \
  100. NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET JOYSTICK
  101. exec_test $1 $2 "RAMPS | ZONESTAR_LCD | Servo Probe | ABL 3-Pt | Debug Leveling | EEPROM | G38 ..."
  102. #
  103. # Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
  104. #
  105. restore_configs
  106. opt_set MOTHERBOARD BOARD_MINIRAMBO
  107. opt_set LCD_LANGUAGE de
  108. opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT \
  109. ULTIMAKERCONTROLLER SDSUPPORT PCA9632 LCD_INFO_MENU \
  110. AUTO_BED_LEVELING_BILINEAR PROBE_MANUALLY LCD_BED_LEVELING G26_MESH_VALIDATION MESH_EDIT_MENU \
  111. M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR \
  112. INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT EXPERIMENTAL_I2CBUS \
  113. NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE \
  114. ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES \
  115. PRINTCOUNTER SERVICE_NAME_1 SERVICE_INTERVAL_1 M114_DETAIL
  116. opt_set PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
  117. opt_set I2C_SLAVE_ADDRESS 63
  118. exec_test $1 $2 "MINIRAMBO | Ultimaker LCD | M100 | PWM_MOTOR_CURRENT | PRINTCOUNTER | Advanced Pause ..."
  119. #
  120. # Mixing Extruder with 5 steppers, Cyrillic
  121. #
  122. restore_configs
  123. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  124. opt_set LCD_LANGUAGE el_gr
  125. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY
  126. opt_set MIXING_STEPPERS 5
  127. opt_set LCD_LANGUAGE ru
  128. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Cyrillic"
  129. #
  130. # Test DUAL_X_CARRIAGE
  131. #
  132. restore_configs
  133. opt_set MOTHERBOARD BOARD_RUMBA
  134. opt_set LCD_LANGUAGE pt
  135. opt_set EXTRUDERS 2
  136. opt_set TEMP_SENSOR_1 1
  137. opt_enable USE_XMAX_PLUG DUAL_X_CARRIAGE
  138. exec_test $1 $2 "Rumba | DUAL_X_CARRIAGE"
  139. #
  140. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  141. #
  142. #restore_configs
  143. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D
  144. #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
  145. #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
  146. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  147. #
  148. # Enable COREXY
  149. #
  150. #restore_configs
  151. #opt_enable COREXY
  152. #exec_test $1 $2 "Stuff"
  153. #
  154. # Test many less common options
  155. #
  156. restore_configs
  157. opt_set MOTHERBOARD BOARD_MEGATRONICS_32
  158. opt_set LCD_LANGUAGE it
  159. opt_set MIXING_STEPPERS 2
  160. opt_set SERVO_DELAY "{ 300, 300, 300 }"
  161. opt_enable COREYX USE_XMAX_PLUG MIXING_EXTRUDER GRADIENT_MIX \
  162. BABYSTEPPING BABYSTEP_DISPLAY_TOTAL FILAMENT_LCD_DISPLAY \
  163. REPRAP_DISCOUNT_SMART_CONTROLLER MENU_ADDAUTOSTART SDSUPPORT SDCARD_SORT_ALPHA \
  164. ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM \
  165. FIX_MOUNTED_PROBE AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE FILAMENT_WIDTH_SENSOR \
  166. SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
  167. SD_ABORT_ON_ENDSTOP_HIT HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT ADVANCED_OK M114_DETAIL \
  168. VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL EXTRA_FAN_SPEED FWRETRACT
  169. opt_set FAN_MIN_PWM 50
  170. opt_set FAN_KICKSTART_TIME 100
  171. opt_set XY_FREQUENCY_LIMIT 15
  172. opt_add FILWIDTH_PIN 5
  173. exec_test $1 $2 "Megatronics 3.2 | Gradient Mix | Endstop Int. | Home Y > X | FW Retract ..."
  174. ######## Other Standard LCD/Panels ##############
  175. #
  176. # ULTRA_LCD
  177. #
  178. #restore_configs
  179. #opt_enable ULTRA_LCD
  180. #exec_test $1 $2 "Stuff"
  181. #
  182. # DOGLCD
  183. #
  184. #restore_configs
  185. #opt_enable DOGLCD
  186. #exec_test $1 $2 "Stuff"
  187. #
  188. # MAKRPANEL
  189. # Needs to use Melzi and Sanguino hardware
  190. #
  191. #restore_configs
  192. #opt_enable MAKRPANEL
  193. #exec_test $1 $2 "Stuff"
  194. #
  195. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  196. #
  197. #restore_configs
  198. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  199. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  200. #exec_test $1 $2 "Stuff"
  201. # #
  202. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  203. #
  204. #restore_configs
  205. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  206. #opt_set SDSORT_GCODE true
  207. #opt_set SDSORT_USES_RAM true
  208. #opt_set SDSORT_USES_STACK true
  209. #opt_set SDSORT_CACHE_NAMES true
  210. #exec_test $1 $2 "Stuff"
  211. #
  212. # REPRAPWORLD_KEYPAD
  213. #
  214. # Cant find configuration details to get it to compile
  215. #restore_configs
  216. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  217. #exec_test $1 $2 "Stuff"
  218. #
  219. # RA_CONTROL_PANEL
  220. #
  221. #restore_configs
  222. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  223. #exec_test $1 $2 "Stuff"
  224. ######## I2C LCD/PANELS ##############
  225. #
  226. # !!!ATTENTION!!!
  227. # Most I2C configurations are failing at the moment because they require
  228. # a different Liquid Crystal library "LiquidTWI2".
  229. #
  230. # LCD_SAINSMART_I2C_1602
  231. #
  232. #restore_configs
  233. #opt_enable LCD_SAINSMART_I2C_1602
  234. #exec_test $1 $2 "Stuff"
  235. #
  236. # LCD_I2C_PANELOLU2
  237. #
  238. #restore_configs
  239. #opt_enable LCD_I2C_PANELOLU2
  240. #exec_test $1 $2 "Stuff"
  241. #
  242. # LCD_I2C_VIKI
  243. #
  244. #restore_configs
  245. #opt_enable LCD_I2C_VIKI
  246. #exec_test $1 $2 "Stuff"
  247. #
  248. # LCM1602
  249. #
  250. #restore_configs
  251. #opt_enable LCM1602
  252. #exec_test $1 $2 "Stuff"
  253. #
  254. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  255. #
  256. #restore_configs
  257. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  258. #for lang in an bg ca 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 vi zh_CN zh_TW test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
  259. #
  260. #restore_configs
  261. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  262. #for lang in an bg ca 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 vi zh_CN zh_TW test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
  263. ######## Example Configurations ##############
  264. #
  265. # Test a full-featured CR-10S config
  266. #
  267. use_example_configs Creality/CR-10S
  268. exec_test $1 $2 "Full-featured CR-10S config"
  269. #
  270. # BQ Hephestos 2
  271. #restore_configs
  272. #use_example_configs Hephestos_2
  273. #exec_test $1 $2 "Stuff"
  274. #
  275. # Delta Config (generic) + ABL bilinear + BLTOUCH
  276. use_example_configs delta/generic
  277. opt_set LCD_LANGUAGE cz
  278. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR BLTOUCH BLTOUCH_FORCE_5V_MODE
  279. exec_test $1 $2 "RAMPS | DELTA | RRD LCD | ABL Bilinear | BLTOUCH"
  280. #
  281. # Delta Config (generic) + UBL + ALLEN_KEY + OLED_PANEL_TINYBOY2 + EEPROM_SETTINGS
  282. #
  283. use_example_configs delta/generic
  284. opt_set LCD_LANGUAGE ko_KR
  285. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 Z_PROBE_ALLEN_KEY EEPROM_SETTINGS EEPROM_CHITCHAT \
  286. OLED_PANEL_TINYBOY2 MESH_EDIT_GFX_OVERLAY
  287. exec_test $1 $2 "RAMPS | DELTA | OLED_PANEL_TINYBOY2 | UBL | Allen Key | EEPROM"
  288. #
  289. # Delta Config (FLSUN AC because it's complex)
  290. #
  291. use_example_configs delta/FLSUN/auto_calibrate
  292. exec_test $1 $2 "RAMPS 1.3 | DELTA | FLSUN AC Config"
  293. #
  294. # Makibox Config need to check board type for Teensy++ 2.0
  295. #
  296. #use_example_configs makibox
  297. #exec_test $1 $2 "Stuff"
  298. #
  299. # SCARA with TMC2130
  300. #
  301. use_example_configs SCARA
  302. opt_set LCD_LANGUAGE es
  303. opt_enable USE_ZMIN_PLUG FIX_MOUNTED_PROBE AUTO_BED_LEVELING_BILINEAR PAUSE_BEFORE_DEPLOY_STOW \
  304. MKS_12864OLED EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL \
  305. MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD SENSORLESS_HOMING SQUARE_WAVE_STEPPING
  306. opt_set X_MAX_ENDSTOP_INVERTING false
  307. opt_set X_DRIVER_TYPE TMC2209
  308. opt_set Y_DRIVER_TYPE TMC2130
  309. opt_set Z_DRIVER_TYPE TMC2130
  310. opt_set E0_DRIVER_TYPE TMC2660
  311. exec_test $1 $2 "RAMPS | SCARA | Mixed TMC | EEPROM"
  312. #
  313. # Test mixed TMC config
  314. #
  315. restore_configs
  316. opt_set LCD_LANGUAGE vi
  317. opt_set X_DRIVER_TYPE TMC2160
  318. opt_set Y_DRIVER_TYPE TMC5160
  319. opt_set Z_DRIVER_TYPE TMC2208
  320. opt_set E0_DRIVER_TYPE TMC2130
  321. opt_set X_MIN_ENDSTOP_INVERTING true
  322. opt_set Y_MIN_ENDSTOP_INVERTING true
  323. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER \
  324. MARLIN_BRICKOUT MARLIN_INVADERS MARLIN_SNAKE \
  325. MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD \
  326. USE_ZMIN_PLUG SENSORLESS_HOMING TMC_DEBUG M114_DETAIL
  327. exec_test $1 $2 "RAMPS | Mixed TMC | Sensorless | RRDFGSC | Games"
  328. #
  329. # tvrrug Config need to check board type for sanguino atmega644p
  330. #
  331. #use_example_configs tvrrug/Round2
  332. #exec_test $1 $2 "Stuff"
  333. # clean up
  334. restore_configs