[gegl/meta-json] TEMP: hack makefiles to only run my testcase
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/meta-json] TEMP: hack makefiles to only run my testcase
- Date: Sun, 28 Dec 2014 16:12:00 +0000 (UTC)
commit 14a624595604368be867cfeb5151f6884668351c
Author: Jon Nordby <jononor gmail com>
Date: Sun Dec 28 17:11:26 2014 +0100
TEMP: hack makefiles to only run my testcase
tests/compositions/Makefile.am | 5 ++---
tests/compositions/run-compositions.py | 9 +++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 71d746d..b6217c6 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -79,13 +79,12 @@ if HAVE_UMFPACK
TESTS += matting-levin.xml
endif
+TESTS=dropshadow-json.xml
+
check-TESTS: $(TESTS)
$(PYTHON) $(srcdir)/run-compositions.py \
--build-dir=$(top_builddir) --src-dir=$(top_srcdir) --xml-dir=$(srcdir) \
$(TESTS)
- $(PYTHON) $(srcdir)/run-compositions.py --without-opencl \
- --build-dir=$(top_builddir) --src-dir=$(top_srcdir) --xml-dir=$(srcdir) \
- $(NO_OPENCL_TESTS)
clean-local:
rm -f output/*
diff --git a/tests/compositions/run-compositions.py b/tests/compositions/run-compositions.py
index de96552..e06170a 100755
--- a/tests/compositions/run-compositions.py
+++ b/tests/compositions/run-compositions.py
@@ -42,7 +42,7 @@ class Context():
else:
exe_suffix = ""
- self.gegl_bin = os.path.join(self.build_dir, "bin", "gegl" + exe_suffix)
+ self.gegl_bin = os.path.join(self.build_dir, "bin", ".libs/gegl" + exe_suffix)
self.img_cmp_bin = os.path.join(self.build_dir, "tools", "gegl-imgcmp" + exe_suffix)
self.detect_opencl_bin = os.path.join(self.build_dir, "tools", "detect_opencl" + exe_suffix)
@@ -115,9 +115,10 @@ class Context():
xml_graph_path = os.path.realpath(test_xml_filename)
try:
+ args = ['gdb', '-ex', 'run', '--args', self.gegl_bin, xml_graph_path, "-o", out_image_path]
if VERBOSE:
- print(" ".join([self.gegl_bin, xml_graph_path, "-o", out_image_path]))
- subprocess.check_call([self.gegl_bin, xml_graph_path, "-o", out_image_path], env=test_env)
+ print(" ".join(args))
+ subprocess.check_call(args, env=test_env)
if VERBOSE:
print(" ".join([self.img_cmp_bin, ref_image_path, out_image_path]))
@@ -198,4 +199,4 @@ def main():
print ("====== %s ======" % FAIL_STR)
sys.exit(1)
-main()
\ No newline at end of file
+main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]