Assuming the compression test is low, you crank the engine to TDC, valves closed, and pump 30-40# of air into cylinder via sparkplug hole or fuel injector. listen through air intake for intake valve leakage, exhaust for exhaust valve leak, crankcase vent for ring blowby leakage, (some expected at end gaps), check for bubbles in radiator or spray soap and watch for bubbles around head gasket. Never tried it but I would used a piece of tubing as a stethoscope. You can buy fittings for sparkplug holes, and I guess, get creative for diesels.