Deanna Garcia | 726241f | 2021-03-30 17:40:25 +0000 | [diff] [blame] | 1 | # Remove code enclosed by "BEGIN FULL-RUNTIME" and "END FULL-RUNTIME" to |
2 | # create the lite-only version of a test file. | ||||
3 | |||||
4 | BEGIN { | ||||
5 | in_full_runtime = 0; | ||||
6 | } | ||||
7 | |||||
8 | /BEGIN FULL-RUNTIME/ { | ||||
9 | in_full_runtime = 1; | ||||
10 | next; | ||||
11 | } | ||||
12 | |||||
13 | /END FULL-RUNTIME/ { | ||||
14 | in_full_runtime = 0; | ||||
15 | next; | ||||
16 | } | ||||
17 | |||||
18 | in_full_runtime { | ||||
19 | # Skip full runtime code path. | ||||
20 | next; | ||||
21 | } | ||||
22 | |||||
23 | { | ||||
24 | print; | ||||
25 | } |