[PATCH] D16218: [test-suite] Add --param=profile=perf option to lit.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 13:50:30 PST 2016


MatzeB added a comment.

Very Interesting!

As for this patch I think you should put the perf wrapping code into an own function as well.

Though seeing this I think we should have a discussion about the role of lit in the testsuite. lit is the obvious choice for scheduling tests and is nice as a commandline user interface, I also think we have managed to capture the essence of how to run a test into the .test files. However I think we need a discussion of where to put the logic for various variants of running tests. Right now this logic is mostly in RunSafely.sh (it collects results, sets up timeit, ssh to a device, ...) in that logic your change should be in RunSafely.sh as well. On the other hand I must admit RunSafely.sh is a horrible script, and we might be better off to rewrite the functionality in python and import that in lit.cfg...

I am not against accepting your changes if you need them right now, but we definitely should start the discussion on how to organize the code/logic/scripts long term.


http://reviews.llvm.org/D16218





More information about the llvm-commits mailing list