build: (fixes #217) Guard compilation of example used as a test

* Added documentation to ExampleAsTestSuite on the need for this guarding
* Updated with Peter's patch for examples-as-test placeholders in wscripts
This commit is contained in:
Steven Smith
2020-06-01 08:36:35 -07:00
committed by Tom Henderson
parent 6b830f9457
commit dded72e02e
36 changed files with 218 additions and 5 deletions

View File

@@ -26,6 +26,11 @@ def build(bld):
module_test.source = [
'test/{MODULE}-test-suite.cc',
]
# Tests encapsulating example programs should be listed here
if (bld.env['ENABLE_EXAMPLES']):
module_test.source.extend([
# 'test/{MODULE}-examples-test-suite.cc',
])
headers = bld(features='ns3header')
headers.module = {MODULE!r}