Turned up dirt -- gosh! -- leading to charge and trial (5,3)
I believe the answer is:
dummy run
'trial' is the definition.
(I've seen this before)
'turned up dirt gosh leading to charge' is the wordplay.
'turned up' is a reversal indicator.
'dirt' becomes 'mud' (mud is a kind of dirt).
'gosh' becomes 'my' (both are old-fashioned expressions of surprise).
'leading to' is a charade indicator (letters next to each other) (some letters go before or lead others).
'charge' becomes 'run'.
'mud' reversed gives 'dum'.
'dum'+'my'+'run'='DUMMY RUN'
'and' is the link.
(Other definitions for dummy run that I've seen before include "A try-out or test" , "Practice, trial" , "Practice session" , "Rehearsal" .)