Τα έδωσε όλα για να περάσει το τεστ.

English Translation

He/She gave it his/her all to pass the test.

A less misleading translation would be: “He/She gave it his/her all to pass the test.”.