Autozone stores do a simple diagnostic of your check engine light by bringing up error codes and then they give you a list of the error codes printed out.
The check engine light test that Autozone does isn't a really thorough diagnostic test that an auto shop will do but it will help to find out what a problem may be that is causing your check engine light to come on.