Skip to content

Commit 951575a

Browse files
Update pioasm JSON expected outputs
Updating json outputs to account for #2799 merge.
1 parent 6fc969a commit 951575a

4 files changed

Lines changed: 144 additions & 13 deletions

File tree

tools/pioasm/test/valid/output/test_output_json_full_valid.pio

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,102 @@ public entry:
3535
// Exit code: 0
3636
// Stdout:
3737
// {
38+
// "pioASMVersion": "2.2.1-develop",
3839
// "publicSymbols": {
3940
// "global_const": 7
4041
// },
4142
// "programs": [
4243
// {
4344
// "name": "format_test",
45+
// "pioVersion": 0,
4446
// "wrapTarget": 0,
4547
// "wrap": 0,
4648
// "origin": 4,
47-
// "sideset": {"size": 3, "optional": true, "pindirs": true},
49+
// "usedGPIORanges": 0,
4850
// "publicSymbols": {
4951
// "prog_const": 3
5052
// },
5153
// "publicLabels": {
5254
// "entry": 0
5355
// },
56+
// "in": null,
57+
// "out": null,
58+
// "setCount": null,
59+
// "sideset": {"size": 3, "optional": true, "pindirs": true},
60+
// "movStatus": null,
61+
// "fifoConfig": null,
62+
// "clockDiv": null,
5463
// "instructions": [
55-
// {"hex": "B442"}
64+
// {"hex": "B442", "instruction": "nop side 1"}
65+
// ],
66+
// "codeBlocks": [
67+
// {
68+
// "lang": "lang1",
69+
// "contents": " foo\n"
70+
// },
71+
// {
72+
// "lang": "lang1",
73+
// "contents": " foobar\n"
74+
// },
75+
// {
76+
// "lang": "lang2",
77+
// "contents": " bar\n"
78+
// }
79+
// ],
80+
// "langOpts": [
81+
// {
82+
// "lang": "lang1",
83+
// "name": "opt1",
84+
// "value": "\"this is a test 1\""
85+
// },
86+
// {
87+
// "lang": "lang1",
88+
// "name": "opt2",
89+
// "value": "test_3"
90+
// },
91+
// {
92+
// "lang": "lang1",
93+
// "name": "opt2",
94+
// "value": "test_4"
95+
// },
96+
// {
97+
// "lang": "lang1",
98+
// "name": "opt3",
99+
// "value": "test_5"
100+
// },
101+
// {
102+
// "lang": "lang2",
103+
// "name": "opt1",
104+
// "value": "\"this is a test 2\""
105+
// }
56106
// ]
57107
// },
58108
// {
59109
// "name": "second_prog",
110+
// "pioVersion": 0,
60111
// "wrapTarget": 0,
61112
// "wrap": 0,
62113
// "origin": -1,
63-
// "sideset": {"size": 0, "optional": false, "pindirs": false},
114+
// "usedGPIORanges": 0,
64115
// "publicSymbols": {
65116
// },
66117
// "publicLabels": {
67118
// },
119+
// "in": null,
120+
// "out": null,
121+
// "setCount": null,
122+
// "sideset": null,
123+
// "movStatus": null,
124+
// "fifoConfig": null,
125+
// "clockDiv": null,
68126
// "instructions": [
69-
// {"hex": "A042"}
127+
// {"hex": "A042", "instruction": "nop"}
128+
// ],
129+
// "codeBlocks": [
130+
//
131+
// ],
132+
// "langOpts": [
133+
//
70134
// ]
71135
// }
72136
// ]

tools/pioasm/test/valid/output/test_output_json_lang_opt_valid.pio

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,72 @@ public entry:
1717
// Exit code: 0
1818
// Stdout:
1919
// {
20+
// "pioASMVersion": "2.2.1-develop",
2021
// "publicSymbols": {
2122
// "GLOBAL_CONST": 2
2223
// },
2324
// "programs": [
2425
// {
2526
// "name": "json_cov",
27+
// "pioVersion": 1,
2628
// "wrapTarget": 0,
2729
// "wrap": 1,
2830
// "origin": -1,
29-
// "sideset": {"size": 3, "optional": true, "pindirs": true},
31+
// "usedGPIORanges": 0,
3032
// "publicSymbols": {
3133
// "LOCAL_CONST": 3
3234
// },
3335
// "publicLabels": {
3436
// "entry": 0
3537
// },
38+
// "in": null,
39+
// "out": null,
40+
// "setCount": null,
41+
// "sideset": {"size": 3, "optional": true, "pindirs": true},
42+
// "movStatus": null,
43+
// "fifoConfig": null,
44+
// "clockDiv": null,
3645
// "instructions": [
37-
// {"hex": "B042"},
38-
// {"hex": "0000"}
46+
// {"hex": "B042", "instruction": "nop side 0"},
47+
// {"hex": "0000", "instruction": "jmp 0"}
48+
// ],
49+
// "codeBlocks": [
50+
//
51+
// ],
52+
// "langOpts": [
53+
// {
54+
// "lang": "json",
55+
// "name": "some_option",
56+
// "value": "1"
57+
// }
3958
// ]
4059
// },
4160
// {
4261
// "name": "json_no_sideset",
62+
// "pioVersion": 0,
4363
// "wrapTarget": 0,
4464
// "wrap": 0,
4565
// "origin": 5,
46-
// "sideset": {"size": 0, "optional": false, "pindirs": false},
66+
// "usedGPIORanges": 0,
4767
// "publicSymbols": {
4868
// },
4969
// "publicLabels": {
5070
// },
71+
// "in": null,
72+
// "out": null,
73+
// "setCount": null,
74+
// "sideset": null,
75+
// "movStatus": null,
76+
// "fifoConfig": null,
77+
// "clockDiv": null,
5178
// "instructions": [
52-
// {"hex": "A042"}
79+
// {"hex": "A042", "instruction": "nop"}
80+
// ],
81+
// "codeBlocks": [
82+
//
83+
// ],
84+
// "langOpts": [
85+
//
5386
// ]
5487
// }
5588
// ]

tools/pioasm/test/valid/output/test_output_json_symbols_valid.pio

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,42 @@ public entry:
99
// Exit code: 0
1010
// Stdout:
1111
// {
12+
// "pioASMVersion": "2.2.1-develop",
1213
// "publicSymbols": {
1314
// "global_const": 7
1415
// },
1516
// "programs": [
1617
// {
1718
// "name": "format_test",
19+
// "pioVersion": 0,
1820
// "wrapTarget": 0,
1921
// "wrap": 0,
2022
// "origin": -1,
21-
// "sideset": {"size": 0, "optional": false, "pindirs": false},
23+
// "usedGPIORanges": 0,
2224
// "publicSymbols": {
2325
// },
2426
// "publicLabels": {
2527
// "entry": 0
2628
// },
29+
// "in": null,
30+
// "out": null,
31+
// "setCount": null,
32+
// "sideset": null,
33+
// "movStatus": null,
34+
// "fifoConfig": null,
35+
// "clockDiv": null,
2736
// "instructions": [
28-
// {"hex": "A042"}
37+
// {"hex": "A042", "instruction": "nop"}
38+
// ],
39+
// "codeBlocks": [
40+
//
41+
// ],
42+
// "langOpts": [
43+
// {
44+
// "lang": "json",
45+
// "name": "foo",
46+
// "value": "1"
47+
// }
2948
// ]
3049
// }
3150
// ]

tools/pioasm/test/valid/output/test_output_json_valid.pio

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,36 @@
77
// Exit code: 0
88
// Stdout:
99
// {
10+
// "pioASMVersion": "2.2.1-develop",
1011
// "publicSymbols": {
1112
// },
1213
// "programs": [
1314
// {
1415
// "name": "format_test",
16+
// "pioVersion": 0,
1517
// "wrapTarget": 0,
1618
// "wrap": 0,
1719
// "origin": -1,
18-
// "sideset": {"size": 0, "optional": false, "pindirs": false},
20+
// "usedGPIORanges": 0,
1921
// "publicSymbols": {
2022
// },
2123
// "publicLabels": {
2224
// },
25+
// "in": null,
26+
// "out": null,
27+
// "setCount": null,
28+
// "sideset": null,
29+
// "movStatus": null,
30+
// "fifoConfig": null,
31+
// "clockDiv": null,
2332
// "instructions": [
24-
// {"hex": "A042"}
33+
// {"hex": "A042", "instruction": "nop"}
34+
// ],
35+
// "codeBlocks": [
36+
//
37+
// ],
38+
// "langOpts": [
39+
//
2540
// ]
2641
// }
2742
// ]

0 commit comments

Comments
 (0)