[gegl] tests: Set GEGL_PATH before running detect_opencl
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: Set GEGL_PATH before running detect_opencl
- Date: Sun, 10 Nov 2013 07:11:44 +0000 (UTC)
commit fbcfed7e62325151e19b4ad262e9aef0567c1b66
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sat Nov 9 22:31:19 2013 -0800
tests: Set GEGL_PATH before running detect_opencl
tests/compositions/run-compositions.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/compositions/run-compositions.py b/tests/compositions/run-compositions.py
index f49db54..94bec3a 100755
--- a/tests/compositions/run-compositions.py
+++ b/tests/compositions/run-compositions.py
@@ -51,7 +51,11 @@ class Context():
raise RuntimeError("Could not locate required file: %s" % prog)
FNULL = open(os.devnull, 'w')
- self.opencl_available = not subprocess.call(self.detect_opencl_bin, stdout=FNULL)
+
+ test_env = os.environ.copy()
+ test_env["GEGL_SWAP"] = "RAM"
+ test_env["GEGL_PATH"] = os.path.join(self.build_dir, "operations")
+ self.opencl_available = not subprocess.call(self.detect_opencl_bin, stdout=FNULL, env=test_env)
self.ref_dir = os.path.join(self.src_dir, "tests", "compositions", "reference")
self.output_dir = os.path.join(self.build_dir, "tests", "compositions", "output")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]