1. A non-transitory computer-readable recording medium having stored therein a selecting program that causes a computer to execute a process, the process comprising: first generating first information that indicates whether there is a relationship between each pair of one of a plurality of first tests and one of a plurality of second tests, by use of a result of each of the plurality of first tests being performed on a corresponding one of a plurality of first modules that configure a program, each of the plurality of second tests being performed on a corresponding one of a plurality of second modules which configure the program and each of which has dependence relationship with at least one of the plurality of first modules; second generating second information that indicates a level of the relationship of each pair having the relationship from among a plurality of the pairs, by use of a result of performing the plurality of first tests and a result of performing the plurality of second tests, the level of the relationship being obtained by comparing a strength of the relationship of each pair having the relationship from among the plurality of the pairs and a predetermined threshold, wherein the strength of the relationship being an entropy value which is calculated by using a total number of the plurality of the pairs and a total number of pairs having the relationship from among the plurality of the pairs; when a specific test included in the plurality of first tests is designated, extracting, from among the plurality of second tests, a related test that relates to the specific test, based on the first information and the second information; and executing the specific test and the extracted related test so as to exclude execution of the plurality of remaining second tests and to maximize an effect of a test performed within a limited time.