The "motion" tests start a full emc in sim mode, with linuxcncrsh as the UI. They run g-code programs and use halsampler to monitor the motions that motmod emits to HAL.