A passing exercise is an exercise done between two navies to ensure that the navies are able to communicate and cooperate in times of war or humanitarian relief.
Common drills include flashing light drills, semaphore drills, and flaghoist drills. From Wikipedia