def build_makefile_exp(settings): """Make sure that the replacements are idempotent.""" # We use "tip" here to have a new folder be created each time combos = [(Translator(), Preprocessor(), Planner(rev='tip', dest=name)) for name, replacements in settings] checkouts.checkout(combos) # Make adjustments to Makefiles for (name, replacements), combo in zip(settings, combos): translator, preprocessor, planner = combo makefile_path = os.path.join(planner.bin_dir, 'Makefile') change_makefile(makefile_path, opt, replacements) downward_experiments.build_experiment(combos)
#! /usr/bin/env python2.6 # -*- coding: utf-8 -*- import downward_experiments from checkouts import Translator, Preprocessor, Planner combinations = [ (Translator(rev="default"), Preprocessor(rev="default"), Planner(rev="default")), (Translator(rev="issue28"), Preprocessor(rev="issue28"), Planner(rev="issue28")), ] downward_experiments.build_experiment(combinations)