mega1280 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 \
  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 USE_XMAX_PLUG DUAL_X_CARRIAGE REPRAPWORLD_KEYPAD
  39. exec_test $1 $2 "ZRIB_V52 | DUAL_X_CARRIAGE" "$3"
  40. #
  41. # Delta Config (generic) + Probeless
  42. #
  43. use_example_configs delta/generic
  44. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_AUTO_CALIBRATION DELTA_CALIBRATION_MENU
  45. exec_test $1 $2 "RAMPS | DELTA | RRD LCD | DELTA_AUTO_CALIBRATION | DELTA_CALIBRATION_MENU" "$3"
  46. #
  47. # Delta Config (generic) + ABL bilinear + BLTOUCH
  48. #
  49. use_example_configs delta/generic
  50. opt_set LCD_LANGUAGE cz \
  51. Z_MIN_PROBE_ENDSTOP_INVERTING false \
  52. Z_MIN_ENDSTOP_INVERTING false
  53. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR BLTOUCH
  54. exec_test $1 $2 "DELTA | RRD LCD | ABL Bilinear | BLTOUCH" "$3"
  55. # clean up
  56. restore_configs