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:
committed by
Tom Henderson
parent
6b830f9457
commit
dded72e02e
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user