The Ronchi test with a LCD amplitude sinusoidal grating is used for testing convergent optical systems. The rulings are computer-generated and displayed on the LCD. By displaying various phase-shifted rulings and capturing the corresponding images, the phase is obtained with the conventional phase-shifting algorithms. For reference, experimental results are compared with those on a commercial Fizeau interferometer. © 2003 Society of Photo-Optical Instrumentation Engineers.