From 607486bea363e1f847ae741e7ab1584e170e3fef Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 6 Sep 2015 22:19:22 -0700 Subject: [PATCH] populate EXAMPLE_DIRECTORIES variable in the configuration cache for use by test.py --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wscript b/wscript index 7da73fd56..efb27c4ee 100644 --- a/wscript +++ b/wscript @@ -479,6 +479,13 @@ def configure(conf): 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: