Shared and distributed X-in-the-loop tests for automotive systems