6 def RunCommand(command
):
7 run
= subprocess
.Popen(command
, shell
=True)
8 output
= run
.communicate()
10 print "Non-zero return code: " + str(run
.returncode
) + " => exiting!"
13 def list_of_experiments():
15 configure_file
= open("configure")
17 for line
in configure_file
.read().split("\n"):
18 if line
== 'EXPERIMENT_LIST="':
23 currently_broken
= ["csm"]
25 if experiment
not in currently_broken
:
26 experiments
.append(experiment
)
30 base_command
= "./configure --enable-internal-stats"
31 test_build(base_command
)
32 for experiment_name
in list_of_experiments():
33 test_build("%s --enable-experimental --enable-%s" % (base_command
,
36 def test_build(configure_command
):
37 print "\033[34m\033[47mTesting %s\033[0m" % (configure_command
)
38 RunCommand(configure_command
)
39 RunCommand("make clean")
42 if __name__
== "__main__":