#!/usr/bin/env bash
#
# Build tests for STM32F103RE
#

# exit on first failure
set -e

restore_configs
opt_set MOTHERBOARD BOARD_STM32F1R
opt_set EXTRUDERS 2
opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT \
           PAREN_COMMENTS GCODE_MOTION_MODES SINGLENOZZLE TOOLCHANGE_FILAMENT_SWAP TOOLCHANGE_PARK
exec_test $1 $2 "STM32F1R EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT PAREN_COMMENTS GCODE_MOTION_MODES"

# cleanup
restore_configs
