Refractive X-ray lenses are in use at a large number of synchrotron experiments. Several materials and fabrication techniques are available for their production, each having their own strengths and drawbacks. We present a grating interferometer for the quantitative analysis of single refractive X-ray lenses and employ it for the study of a beryllium point focus lens and a polymer line focus lens, highlighting the differences in the outcome of the fabrication methods. The residuals of a line fit to the phase gradient are used to quantify local lens defects, while shape aberrations are quantified by the decomposition of the retrieved wavefront phase profile into either Zernike or Legendre polynomials, depending on the focus and aperture shape. While the polymer lens shows better material homogeneity, the beryllium lens shows higher shape accuracy