summaryrefslogtreecommitdiff
path: root/test/buildtool/graph_traverser/data/use_trees/graph_description_compatible
blob: 6ca051da2745528d417fd3973f952dbe71b54706 (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": "1eb79602411ef02cf6fe117897015fff89f80face4eccd50425c45149b148408",
                    "size": 4,
                    "file_type": "f"
                }
            },
            "thing": {
                "type": "KNOWN",
                "data": {
                "id": "0bbd636ca17d06a5b630fe3f19844192f57fb70ae9b24686cc8a2fa7e48c9b77",
                    "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"
            ]
        }
    }
}