populate EXAMPLE_DIRECTORIES variable in the configuration cache for use by test.py
--- a/wscript Sun Sep 06 18:27:37 2015 +0200
+++ b/wscript Sun Sep 06 22:19:22 2015 -0700
@@ -479,6 +479,13 @@
conf.report_optional_feature("ENABLE_EXAMPLES", "Build examples", env['ENABLE_EXAMPLES'],
why_not_examples)
+ try:
+ for dir in os.listdir('examples'):
+ if dir.startswith('.') or dir == 'CVS':
+ continue
+ conf.env.append_value('EXAMPLE_DIRECTORIES', dir)
+ except OSError:
+ return
env['VALGRIND_FOUND'] = False
try: