| run = subprocess.Popen(command, shell=True) |
| output = run.communicate() |
| print "Non-zero return code: " + str(run.returncode) + " => exiting!" |
| def list_of_experiments(): |
| configure_file = open("configure") |
| for line in configure_file.read().split("\n"): |
| if line == 'EXPERIMENT_LIST="': |
| currently_broken = ["csm"] |
| if experiment not in currently_broken: |
| experiments.append(experiment) |
| base_command = "./configure --enable-internal-stats" |
| for experiment_name in list_of_experiments(): |
| test_build("%s --enable-experimental --enable-%s" % (base_command, |
| def test_build(configure_command): |
| print "\033[34m\033[47mTesting %s\033[0m" % (configure_command) |
| RunCommand(configure_command) |
| if __name__ == "__main__": |