Air sprung forks; pressurize and submerge in water, looks for bubbles indicating air loss.
Oil bath forks; excess oil build up indicates worn seals.
Externally adjustable forks; turn adjuster knobs to see if they have any effect.
Forks ranging from 5-10 years old; throw away, donate to suspension fork museum, or disassemble and consider it training.