Commit 35a6d830 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

Historical Builds Makefile

parent 66e20e81
Pipeline #3032 passed with stage
in 0 seconds
......@@ -22,7 +22,7 @@ inc_$3_$2_append:
inc_$3_$2_touch:
./incremental_rebuild.py -s \
-d ../versuchung-data --jobs $(JOBS) \
-vv --clang_hash-clone-url ${CLANG_HASH} \
-v --clang_hash-clone-url ${CLANG_HASH} \
--project-clone-url ${$1} --mode $2 --touch-only true
inc_$3: inc_$3_$2_touch inc_$3_$2_append
......@@ -49,3 +49,8 @@ endef
$(foreach project,LUA MBEDTLS SAMBA,\
$(foreach mode,normal ccache clang-hash ccache-clang-hash,\
$(eval $(call hist_template,$(project),$(mode),$(shell echo $(project) | tr '[:upper:]' '[:lower:]' )))))
analyze:
./analyze_results.py -v -d ../versuchung-data -s \
--result '../versuchung-data/IncrementalCompilation-*'
......@@ -21,7 +21,7 @@ import matplotlib.patches as mpatches
from incremental_rebuild import IncrementalCompilation
class IncrementalCompilationPlots(Experiment):
class AnalyzeResults(Experiment):
inputs = {'results': List(IncrementalCompilation(), [])}
outputs = {'tex': DatarefDict('data.dref')}
......@@ -63,6 +63,5 @@ class IncrementalCompilationPlots(Experiment):
if __name__ == "__main__":
experiment = IncrementalCompilationPlots()
experiment = AnalyzeResults()
dirname = experiment(sys.argv + ["-s"])
print(dirname)
......@@ -38,6 +38,7 @@ class HistoricalCompilation(Experiment, ClangHashHelper):
logging.info("Build the Clang-Hash Plugin")
with self.clang_hash as cl_path:
shell("cd %s; mkdir build; cd build; cmake .. -DCMAKE_BUILD_TYPE=Release; make -j 4", cl_path)
shell("strip %s/build/src/*.so", cl_path)
# Project name
logging.info("Cloning project... %s", self.project_name())
......@@ -54,7 +55,6 @@ class HistoricalCompilation(Experiment, ClangHashHelper):
# clang hash wrapper
self.setup_compiler_paths(cl_path)
while True:
commit = commits.pop(0)
logging.info("Build: %s", commit)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment