aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/jsonnet/intersection_golden.json
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2015-10-22 09:35:11 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-10-22 15:17:19 +0000
commit854b72dddb80a4c8da6bf0ac9dbd683951875541 (patch)
treee55cce6f32ed203070f60e2aa6ce8fbe70edc936 /examples/jsonnet/intersection_golden.json
parent16f10837a224df9d792cba563dbee138a0789cb7 (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/intersection_golden.json')
-rw-r--r--examples/jsonnet/intersection_golden.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/jsonnet/intersection_golden.json b/examples/jsonnet/intersection_golden.json
new file mode 100644
index 0000000000..6e8fa63864
--- /dev/null
+++ b/examples/jsonnet/intersection_golden.json
@@ -0,0 +1,48 @@
+{
+ "intersection": {
+ "jobs": {
+ "intersect": {
+ "command": "comm -12 /tmp/list1_sorted /tmp/list2_sorted > /tmp/intersection",
+ "deps": [
+ ":sort_file1",
+ ":sort_file2"
+ ],
+ "inputs": [
+ "/tmp/list1_sorted",
+ "/tmp/list2_sorted"
+ ],
+ "outputs": [
+ "/tmp/intersection"
+ ],
+ "type": "sh",
+ "vars": { }
+ },
+ "sort_file1": {
+ "command": "sort /tmp/list1 > /tmp/list1_sorted",
+ "deps": [ ],
+ "inputs": [
+ "/tmp/list1"
+ ],
+ "outputs": [
+ "/tmp/list1_sorted"
+ ],
+ "type": "sh",
+ "vars": { }
+ },
+ "sort_file2": {
+ "command": "sort /tmp/list2 > /tmp/list2_sorted",
+ "deps": [ ],
+ "inputs": [
+ "/tmp/list2"
+ ],
+ "outputs": [
+ "/tmp/list2_sorted"
+ ],
+ "type": "sh",
+ "vars": { }
+ }
+ },
+ "retries": 5,
+ "schedule": { }
+ }
+}