mega1280 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR ATmega1280
  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" "$3"
  12. #
  13. # Test MESH_BED_LEVELING feature, with LCD
  14. #
  15. restore_configs
  16. opt_set LCD_LANGUAGE an \
  17. POWER_MONITOR_CURRENT_PIN 14 POWER_MONITOR_VOLTAGE_PIN 15 \
  18. CLOSED_LOOP_ENABLE_PIN 44 CLOSED_LOOP_MOVE_COMPLETE_PIN 45
  19. opt_enable SPINDLE_FEATURE ULTIMAKERCONTROLLER LCD_BED_LEVELING EDITABLE_HOMING_FEEDRATE \
  20. EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT \
  21. SENSORLESS_BACKOFF_MM HOMING_BACKOFF_POST_MM HOME_Y_BEFORE_X CODEPENDENT_XY_HOMING \
  22. MESH_BED_LEVELING ENABLE_LEVELING_FADE_HEIGHT MESH_G28_REST_ORIGIN \
  23. G26_MESH_VALIDATION MESH_EDIT_MENU GCODE_QUOTED_STRINGS \
  24. EXTERNAL_CLOSED_LOOP_CONTROLLER POWER_MONITOR_CURRENT POWER_MONITOR_VOLTAGE
  25. exec_test $1 $2 "Spindle, MESH_BED_LEVELING, closed loop, Power Monitor, and LCD" "$3"
  26. #
  27. # ...and without PWM
  28. #
  29. opt_disable SPINDLE_LASER_USE_PWM
  30. exec_test $1 $2 "(No PWM)" "$3"
  31. #
  32. # Test DUAL_X_CARRIAGE
  33. #
  34. restore_configs
  35. opt_set MOTHERBOARD BOARD_ZRIB_V52 \
  36. LCD_LANGUAGE pt REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 \
  37. EXTRUDERS 2 TEMP_SENSOR_1 1 X2_DRIVER_TYPE A4988
  38. opt_enable DUAL_X_CARRIAGE REPRAPWORLD_KEYPAD
  39. opt_add DEBUG_DXC_MODE
  40. exec_test $1 $2 "ZRIB_V52 | DUAL_X_CARRIAGE" "$3"
  41. #
  42. # Delta Config (generic) + Probeless
  43. #
  44. use_example_configs delta/generic
  45. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_AUTO_CALIBRATION DELTA_CALIBRATION_MENU
  46. exec_test $1 $2 "RAMPS | DELTA | RRD LCD | DELTA_AUTO_CALIBRATION | DELTA_CALIBRATION_MENU" "$3"
  47. #
  48. # Delta Config (generic) + ABL bilinear + BLTOUCH
  49. #
  50. use_example_configs delta/generic
  51. opt_set LCD_LANGUAGE cz \
  52. Z_MIN_PROBE_ENDSTOP_HIT_STATE HIGH \
  53. Z_MIN_ENDSTOP_HIT_STATE HIGH
  54. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR BLTOUCH
  55. exec_test $1 $2 "DELTA | RRD LCD | ABL Bilinear | BLTOUCH" "$3"