diff options
author | Jon Nordby <jononor@gmail.com> | 2014-12-28 22:53:02 +0100 |
---|---|---|
committer | Jon Nordby <jononor@gmail.com> | 2015-01-20 02:41:25 +0100 |
commit | 562faf979be2522729121060ac04a24fb4e3fea5 (patch) | |
tree | f9be76c82c5e6d26668653aaed17c0b6ef7d8c31 | |
parent | ecb41fb248e8937aeeb767828130e9a7e362345c (diff) |
meta-json: Add a trivial testcase
-rw-r--r-- | operations/json/grey2.fbp | 8 | ||||
-rw-r--r-- | operations/json/grey2.json | 76 | ||||
-rw-r--r-- | tests/compositions/grey-json.xml | 14 |
3 files changed, 98 insertions, 0 deletions
diff --git a/operations/json/grey2.fbp b/operations/json/grey2.fbp new file mode 100644 index 00000000..9e0596b0 --- /dev/null +++ b/operations/json/grey2.fbp @@ -0,0 +1,8 @@ +INPORT=in.INPUT:INPUT +OUTPORT=out.OUTPUT:OUTPUT +INPORT=g.SAMPLES:SAMPLES +INPORT=g.ITERATIONS:ITERATIONS +INPORT=tr.HEIGHT:HEIGHT +INPORT=tr.WIDTH:WIDTH + +in(gegl/nop) OUTPUT -> INPUT g(gegl/c2g) OUTPUT -> INPUT tr(gegl/crop) OUTPUT -> INPUT out(gegl/nop) diff --git a/operations/json/grey2.json b/operations/json/grey2.json new file mode 100644 index 00000000..a2934a4d --- /dev/null +++ b/operations/json/grey2.json @@ -0,0 +1,76 @@ +{ + "processes": { + "in": { + "component": "gegl/nop" + }, + "g": { + "component": "gegl/c2g" + }, + "tr": { + "component": "gegl/crop" + }, + "out": { + "component": "gegl/nop" + } + }, + "connections": [ + { + "src": { + "process": "in", + "port": "output" + }, + "tgt": { + "process": "g", + "port": "input" + } + }, + { + "src": { + "process": "g", + "port": "output" + }, + "tgt": { + "process": "tr", + "port": "input" + } + }, + { + "src": { + "process": "tr", + "port": "output" + }, + "tgt": { + "process": "out", + "port": "input" + } + } + ], + "inports": { + "input": { + "process": "in", + "port": "input" + }, + "samples": { + "process": "g", + "port": "samples" + }, + "iterations": { + "process": "g", + "port": "iterations" + }, + "height": { + "process": "tr", + "port": "height" + }, + "width": { + "process": "tr", + "port": "width" + } + }, + "outports": { + "output": { + "process": "out", + "port": "output" + } + } +} diff --git a/tests/compositions/grey-json.xml b/tests/compositions/grey-json.xml new file mode 100644 index 00000000..59685879 --- /dev/null +++ b/tests/compositions/grey-json.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<gegl> + <node operation='gegl:greyy'> + <params> + <param name='height'>200</param> + <param name='width'>100</param> + </params> + </node> + <node operation='gegl:load'> + <params> + <param name='path'>data/car-stack.png</param> + </params> + </node> +</gegl> |