make auto-test script generate during the compiling stage