35 lines
772 B
Python
Executable File
35 lines
772 B
Python
Executable File
# Run a selection of common tests
|
|
|
|
from tests.move import *
|
|
from tests.sinqMotor.limits import *
|
|
from tests.sinqMotor.masterMacs.common import *
|
|
from tests.sinqMotor.turboPmac.reset import reset
|
|
|
|
|
|
def test_stop_reset_enable_move_sequence(motor):
|
|
stop_reset_enable_move_sequence(motor, 4)
|
|
stop_reset_enable_move_sequence(motor, 2)
|
|
|
|
|
|
def test_move_to_low_limit_switch(motor):
|
|
reset(motor, 1)
|
|
move_to_low_limit_switch(motor)
|
|
|
|
|
|
def test_move_to_high_limit_switch(motor):
|
|
reset(motor, 1)
|
|
move_to_high_limit_switch(motor)
|
|
|
|
|
|
def test_move_while_move(motor):
|
|
reset(motor, 1)
|
|
move_while_move(motor, -60, -20)
|
|
|
|
|
|
def test_stop(motor):
|
|
reset(motor, 1)
|
|
stop(motor, 18)
|
|
|
|
# def test_reread_limits_from_hw(motor):
|
|
# reread_limits_from_hw(motor)
|