[PATCH] D53565: Configure only needed part of test-suite during running subtests
Elena Lepilkina via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 23 05:53:57 PDT 2018
eklepilkina created this revision.
eklepilkina added reviewers: MatzeB, homerdin.
Herald added subscribers: llvm-commits, atanasyan, mgorny, sdardis.
There is an opportunity to run only some benchmarks (current test, subfolder) from test-suite. This allows to build and run only some part of test-suite. Alas, CMake produces build tree generating all files (most part of them are not needed in such cases).
This patch provides macro-wrapper that allows not to add extra folders in build tree in such cases.
I made experiments, I ran only one benchmark: generated build tree now is 26 MB, with current patch - 764.7 KB.
P.S. Also I added tests folder with simple lit tests to check work of macro.
Repository:
rT test-suite
https://reviews.llvm.org/D53565
Files:
Bitcode/Benchmarks/CMakeLists.txt
Bitcode/Benchmarks/Halide/CMakeLists.txt
Bitcode/CMakeLists.txt
Bitcode/Regression/CMakeLists.txt
CMakeLists.txt
CTMark/CMakeLists.txt
External/CMakeLists.txt
External/SPEC/CFP2000/CMakeLists.txt
External/SPEC/CFP2017rate/CMakeLists.txt
External/SPEC/CFP2017speed/CMakeLists.txt
External/SPEC/CINT2000/CMakeLists.txt
External/SPEC/CINT2017rate/CMakeLists.txt
External/SPEC/CINT2017speed/CMakeLists.txt
External/SPEC/CMakeLists.txt
External/SPEC/SpecCPU2006.cmake
External/SPEC/SpecCPU95.cmake
MicroBenchmarks/CMakeLists.txt
MicroBenchmarks/ImageProcessing/CMakeLists.txt
MicroBenchmarks/LCALS/CMakeLists.txt
MicroBenchmarks/XRay/CMakeLists.txt
MultiSource/Applications/ALAC/CMakeLists.txt
MultiSource/Applications/CMakeLists.txt
MultiSource/Applications/JM/CMakeLists.txt
MultiSource/Benchmarks/7zip/CPP/7zip/CMAKE/CMakeLists_ALL.txt
MultiSource/Benchmarks/ASCI_Purple/CMakeLists.txt
MultiSource/Benchmarks/ASC_Sequoia/CMakeLists.txt
MultiSource/Benchmarks/BitBench/CMakeLists.txt
MultiSource/Benchmarks/CMakeLists.txt
MultiSource/Benchmarks/DOE-ProxyApps-C++/CMakeLists.txt
MultiSource/Benchmarks/DOE-ProxyApps-C/CMakeLists.txt
MultiSource/Benchmarks/FreeBench/CMakeLists.txt
MultiSource/Benchmarks/MallocBench/CMakeLists.txt
MultiSource/Benchmarks/McCat/CMakeLists.txt
MultiSource/Benchmarks/MiBench/CMakeLists.txt
MultiSource/Benchmarks/NPB-serial/CMakeLists.txt
MultiSource/Benchmarks/Olden/CMakeLists.txt
MultiSource/Benchmarks/Prolangs-C++/CMakeLists.txt
MultiSource/Benchmarks/Prolangs-C/CMakeLists.txt
MultiSource/Benchmarks/Ptrdist/CMakeLists.txt
MultiSource/Benchmarks/Rodinia/CMakeLists.txt
MultiSource/Benchmarks/TSVC/CMakeLists.txt
MultiSource/Benchmarks/Trimaran/CMakeLists.txt
MultiSource/Benchmarks/VersaBench/CMakeLists.txt
MultiSource/Benchmarks/mediabench/CMakeLists.txt
MultiSource/Benchmarks/mediabench/adpcm/CMakeLists.txt
MultiSource/Benchmarks/mediabench/g721/CMakeLists.txt
MultiSource/Benchmarks/mediabench/gsm/CMakeLists.txt
MultiSource/Benchmarks/mediabench/jpeg/CMakeLists.txt
MultiSource/Benchmarks/mediabench/mpeg2/CMakeLists.txt
MultiSource/CMakeLists.txt
MultiSource/UnitTests/C++11/CMakeLists.txt
MultiSource/UnitTests/CMakeLists.txt
MultiSource/UnitTests/Mips/CMakeLists.txt
MultiSource/UnitTests/Mips/Mips16/CMakeLists.txt
SingleSource/Benchmarks/BenchmarkGame/CMakeLists.txt
SingleSource/Benchmarks/CMakeLists.txt
SingleSource/Benchmarks/Misc-C++/CMakeLists.txt
SingleSource/Benchmarks/Polybench/CMakeLists.txt
SingleSource/Benchmarks/Polybench/datamining/CMakeLists.txt
SingleSource/Benchmarks/Polybench/linear-algebra/CMakeLists.txt
SingleSource/Benchmarks/Polybench/linear-algebra/kernels/CMakeLists.txt
SingleSource/Benchmarks/Polybench/linear-algebra/solvers/CMakeLists.txt
SingleSource/Benchmarks/Polybench/medley/CMakeLists.txt
SingleSource/Benchmarks/Polybench/stencils/CMakeLists.txt
SingleSource/Benchmarks/Shootout-C++/CMakeLists.txt
SingleSource/CMakeLists.txt
SingleSource/Regression/C++/CMakeLists.txt
SingleSource/Regression/CMakeLists.txt
SingleSource/UnitTests/CMakeLists.txt
SingleSource/UnitTests/Mips/CMakeLists.txt
SingleSource/UnitTests/SetjmpLongjmp/CMakeLists.txt
SingleSource/UnitTests/SignlessTypes/CMakeLists.txt
SingleSource/UnitTests/Vector/CMakeLists.txt
tests/add_bench_subdirectory.test
tests/lit.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53565.170612.patch
Type: text/x-patch
Size: 53638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181023/796eec15/attachment-0001.bin>
More information about the llvm-commits
mailing list