xref: /aosp_15_r20/test/dittosuite/example/read_with_setup.ditto (revision 6fa2df46f119dce7527f5beb2814eca0e6f886ac)
1init: {
2  instruction_set: {
3    instructions: [
4      {
5        open_file: {
6          path_name: "test.txt",
7          create: true,
8          output_fd: "test_file"
9        }
10      },
11      {
12        resize_file: {
13          input_fd: "test_file",
14          size: 1048576
15        }
16      },
17      {
18        write_file: {
19          input_fd: "test_file",
20          fsync: true
21        }
22      }
23    ]
24  }
25},
26main: {
27  read_file: {
28    input_fd: "test_file"
29  },
30  repeat: 100
31},
32clean_up: {
33  instruction_set: {
34    instructions: [
35      {
36        close_file: {
37          input_fd: "test_file"
38        }
39      },
40      {
41        delete_file: {
42          path_name: "test.txt"
43        }
44      }
45    ]
46  }
47},
48global {}
49