A numerical simulation of the the Shack-Hartmann test is made, applied to the specific case of the primary mirror of El Leóncito telescope. It is discussed the characteristics of the mask, some features of the test, and the influence of several sources of error.