add extra layer of directory search in cpp tests to the build scripts
Scons misses to buid cpp tests as deep in the file directory structure as tests/cpp_unit/Recon/SciFi. An extra layer of directory search is needed.
Updated by Rogers, Chris about 10 years ago
- Category set to Build System
- Status changed from Open to In Progress
- Target version set to Future MAUS release
- % Done changed from 0 to 50
- Workflow changed from New Issue to In Development
Please see below for a patch to core_builder.py
I didn't merge it into the trunk yet as it starts building a whole bunch of tests - most of which fail to even compile. So please apply the patch and then try to fix the tests before I can merge it in.
=== modified file 'src/common_py/maus_build_tools/core_builder.py' --- src/common_py/maus_build_tools/core_builder.py 2012-04-05 08:06:36 +0000 +++ src/common_py/maus_build_tools/core_builder.py 2012-06-06 16:01:20 +0000 @@ -85,7 +85,8 @@ env.Append(LINKFLAGS=['-undefined', 'suppress','-flat_namespace']) test_cpp_files = glob.glob("tests/cpp_unit/*/*cc")+\ - glob.glob("tests/cpp_unit/*cc") + glob.glob("tests/cpp_unit/*cc")+\ + glob.glob("tests/cpp_unit/*/*/*cc") env.Program(target = 'tests/cpp_unit/test_cpp_unit', \ source = test_cpp_files, \