summaryrefslogtreecommitdiff
path: root/test/buildtool/graph_traverser/data/use_trees/graph_description
blob: ff405309e9ed755fdcbcf2c2a10f0d430ab403e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
    "blobs": ["test to check if blobs are uploaded", "this"],
    "trees": {
        "tree-0": {
            "subject": {
                "type": "KNOWN",
                "data": {
                    "id": "a2a3f4f1e30c488bfbd52aabfbcfcc1f5822158d",
                    "size": 4,
                    "file_type": "f"
                }
            },
            "thing": {
                "type": "KNOWN",
                "data": {
                "id": "d4d7eecc25bcbd902b0b97a97e8e2e478c97454b",
                    "size": 35,
                    "file_type": "f"
                }
            }
        },
        "tree-1": {
            "test_data": {
                "type": "ACTION",
                "data": {
                    "id": "write_test",
                    "path": "statement"
                }
            }
        }
    },
    "actions": {
        "write_test": {
            "input": {
                ".": {
                    "type": "TREE",
                    "data": {
                        "id": "tree-0"
                    }
                }
            },
            "output": [
                "statement"
            ],
            "command": [
                "/bin/sh",
                "-c",
                "set -e\necho -n \"$(cat subject) is a $(cat thing)\" > statement"
            ]
        },
        "read_test": {
            "input": {
                "data": {
                    "type": "TREE",
                    "data": {
                        "id": "tree-1"
                    }
                }
            },
            "output": [
                "statement"
            ],
            "command": [
                "/bin/sh",
                "-c",
                "cat data/test_data > statement"
            ]
        }
    }
}