| Import("*") | |
| PartName("tests") | |
| unit_test.DependsOn([ | |
| Component("libswoc.static", requires=REQ.DEFAULT(internal=False)) | |
| ]) | |
| @unit_test.Group("tests") | |
| def run(env, test): | |
| env.AppendUnique( | |
| CCFLAGS=['-std=c++17'], | |
| ) | |
| test.Sources = [ | |
| "unit_test_main.cc", | |
| "test_BufferWriter.cc", | |
| "test_bw_format.cc", | |
| "test_Errata.cc", | |
| "test_IntrusiveDList.cc", | |
| "test_IntrusiveHashMap.cc", | |
| "test_ip.cc", | |
| "test_Lexicon.cc", | |
| "test_MemSpan.cc", | |
| "test_MemArena.cc", | |
| "test_meta.cc", | |
| "test_TextView.cc", | |
| "test_Scalar.cc", | |
| "test_swoc_file.cc", | |
| "ex_bw_format.cc", | |
| "ex_IntrusiveDList.cc", | |
| "ex_MemArena.cc", | |
| "ex_TextView.cc", | |
| ] | |
| # tests are defined to have a tree structure for the files | |
| test.DataFiles=[ | |
| Pattern(src_dir="#",includes=['doc/conf.py','unit_tests/examples/resolver.txt', 'unit_tests/test_swoc_file.cc']) | |
| ] | |