diff options
author | David Chen <dzc@google.com> | 2015-10-22 09:35:11 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-10-22 15:17:19 +0000 |
commit | 854b72dddb80a4c8da6bf0ac9dbd683951875541 (patch) | |
tree | e55cce6f32ed203070f60e2aa6ce8fbe70edc936 /examples/jsonnet/wordcount_golden.json | |
parent | 16f10837a224df9d792cba563dbee138a0789cb7 (diff) |
[jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
RELNOTES: [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
--
MOS_MIGRATED_REVID=106040951
Diffstat (limited to 'examples/jsonnet/wordcount_golden.json')
-rw-r--r-- | examples/jsonnet/wordcount_golden.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/jsonnet/wordcount_golden.json b/examples/jsonnet/wordcount_golden.json new file mode 100644 index 0000000000..25d99cf3ab --- /dev/null +++ b/examples/jsonnet/wordcount_golden.json @@ -0,0 +1,53 @@ +{ + "wordcount": { + "jobs": { + "count": { + "command": "uniq -c /tmp/sorted_tokens > /tmp/counts", + "deps": [ + ":sort" + ], + "inputs": [ + "/tmp/sorted_tokens" + ], + "outputs": [ + "/tmp/counts" + ], + "type": "sh", + "vars": { } + }, + "sort": { + "command": "sort /tmp/tokens > /tmp/sorted_tokens", + "deps": [ + ":tokenize" + ], + "inputs": [ + "/tmp/tokens" + ], + "outputs": [ + "/tmp/sorted_tokens" + ], + "type": "sh", + "vars": { } + }, + "tokenize": { + "command": "tr ' ' '\n' < /tmp/passage_test > /tmp/tokens", + "deps": [ ], + "inputs": [ + "/tmp/passage_test" + ], + "outputs": [ + "/tmp/tokens" + ], + "type": "sh", + "vars": { } + } + }, + "retries": 12, + "schedule": { + "repeat_frequency": 1, + "repeat_type": "week", + "start_date": "2015-11-15", + "start_time": "17:30" + } + } +} |