| |
| Import("*") |
| PartName("tests") |
| |
| DependsOn([ |
| Component("libswoc.static", requires=REQ.DEFAULT(internal=False)) |
| ]) |
| |
| env.AppendUnique( |
| CCFLAGS=['-std=c++17'], |
| ) |
| |
| files = [ |
| "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", |
| ] |
| env.UnitTest( |
| "tests", |
| files, |
| # data file we need for the test to pass |
| data_src=[Pattern(src_dir="#",includes=['doc/conf.py','unit_tests/examples/resolver.txt', 'unit_tests/test_swoc_file.cc'])] |
| ) |
| |