compile_test.py (cont) if __name__ == "__main__": compilers_file = open('tests/compilers.dat', "r") kernel_dirs_file = open('tests/kernel_dirs.dat', "r") compilers = [string.strip(z) for z in compilers_file.readlines()] kernel_dirs = [string.strip(z) for z in kernel_dirs_file.readlines()] regexp = re.compile("^#|^ ") for c in compilers: if regexp.match(c): continue for k in kernel_dirs: if regexp.match(k): continue rc = compile(c+'gcc', c+'g++', k) if (rc != 0): print '\n\n\ncompilation failed with ',c,'gcc KERNEL_DIR=',k,'\n\n' sys.stdout.flush()