Skip to content

Commit

Permalink
Update existing test specs to use new format for vararray-len fields
Browse files Browse the repository at this point in the history
  • Loading branch information
woodfell committed Nov 21, 2023
1 parent d0216e7 commit 6a7a104
Show file tree
Hide file tree
Showing 32 changed files with 237 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package: sbp.integrity
tests:

- msg:
c_decoded_fields:
n_faulty_los:
handle_as: vararray-len
relates_to: faulty_los
value: 2
fields:
header:
obs_time:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package: sbp.integrity
tests:

- msg:
c_decoded_fields:
n_faulty_points:
handle_as: vararray-len
relates_to: faulty_points
value: 3
fields:
header:
obs_time:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package: sbp.integrity
tests:

- msg:
c_decoded_fields:
n_faulty_los:
handle_as: vararray-len
relates_to: faulty_los
value: 2
fields:
header:
obs_time:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package: sbp.integrity
tests:

- msg:
c_decoded_fields:
n_faulty_sats:
handle_as: vararray-len
relates_to: faulty_sats
value: 3
fields:
obs_time:
tow: 180
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package: sbp.integrity
tests:

- msg:
c_decoded_fields:
n_faulty_points:
handle_as: vararray-len
relates_to: faulty_points
value: 3
fields:
header:
obs_time:
Expand Down
5 changes: 4 additions & 1 deletion spec/tests/yaml/swiftnav/sbp/logging/test_MsgFwd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ tests:
protocol: 0
source: 0
c_decoded_fields:
n_fwd_payload: 16
n_fwd_payload:
handle_as: vararray-len
relates_to: fwd_payload
value: 16
module: sbp.logging
name: MsgFwd
msg_type: '0x402'
Expand Down
5 changes: 4 additions & 1 deletion spec/tests/yaml/swiftnav/sbp/observation/test_MsgObs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ tests:
sat: 18
code: 3
c_decoded_fields:
n_obs: 14
n_obs:
handle_as: vararray-len
relates_to: obs
value: 14
module: sbp.observation
name: MsgObs
msg_type: '0x4a'
Expand Down
25 changes: 20 additions & 5 deletions spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ tests:
reserved: 0
sat: 218
c_decoded_fields:
n_obs: 6
n_obs:
handle_as: vararray-len
relates_to: obs
value: 6
module: sbp.observation
name: MsgObsDepB
msg_type: '0x43'
Expand Down Expand Up @@ -137,7 +140,10 @@ tests:
reserved: 0
sat: 225
c_decoded_fields:
n_obs: 3
n_obs:
handle_as: vararray-len
relates_to: obs
value: 3
module: sbp.observation
name: MsgObsDepB
msg_type: '0x43'
Expand Down Expand Up @@ -226,7 +232,10 @@ tests:
reserved: 0
sat: 218
c_decoded_fields:
n_obs: 6
n_obs:
handle_as: vararray-len
relates_to: obs
value: 6
module: sbp.observation
name: MsgObsDepB
msg_type: '0x43'
Expand Down Expand Up @@ -290,7 +299,10 @@ tests:
reserved: 0
sat: 225
c_decoded_fields:
n_obs: 3
n_obs:
handle_as: vararray-len
relates_to: obs
value: 3
module: sbp.observation
name: MsgObsDepB
msg_type: '0x43'
Expand Down Expand Up @@ -379,7 +391,10 @@ tests:
reserved: 0
sat: 218
c_decoded_fields:
n_obs: 6
n_obs:
handle_as: vararray-len
relates_to: obs
value: 6
module: sbp.observation
name: MsgObsDepB
msg_type: '0x43'
Expand Down
25 changes: 20 additions & 5 deletions spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ tests:
reserved: 0
sat: 12
c_decoded_fields:
n_obs: 5
n_obs:
handle_as: vararray-len
relates_to: obs
value: 5
module: sbp.observation
name: MsgObsDepC
msg_type: '0x49'
Expand Down Expand Up @@ -125,7 +128,10 @@ tests:
reserved: 0
sat: 29
c_decoded_fields:
n_obs: 3
n_obs:
handle_as: vararray-len
relates_to: obs
value: 3
module: sbp.observation
name: MsgObsDepC
msg_type: '0x49'
Expand Down Expand Up @@ -204,7 +210,10 @@ tests:
reserved: 0
sat: 12
c_decoded_fields:
n_obs: 5
n_obs:
handle_as: vararray-len
relates_to: obs
value: 5
module: sbp.observation
name: MsgObsDepC
msg_type: '0x49'
Expand Down Expand Up @@ -266,7 +275,10 @@ tests:
reserved: 0
sat: 29
c_decoded_fields:
n_obs: 3
n_obs:
handle_as: vararray-len
relates_to: obs
value: 3
module: sbp.observation
name: MsgObsDepC
msg_type: '0x49'
Expand Down Expand Up @@ -345,7 +357,10 @@ tests:
reserved: 0
sat: 12
c_decoded_fields:
n_obs: 5
n_obs:
handle_as: vararray-len
relates_to: obs
value: 5
module: sbp.observation
name: MsgObsDepC
msg_type: '0x49'
Expand Down
5 changes: 4 additions & 1 deletion spec/tests/yaml/swiftnav/sbp/observation/test_MsgOsr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ tests:
tropo_std: 5
range_std: 5
c_decoded_fields:
n_obs: 12
n_obs:
handle_as: vararray-len
relates_to: obs
value: 12
module: sbp.observation
name: MsgOsr
msg_type: '0x640'
Expand Down
5 changes: 4 additions & 1 deletion spec/tests/yaml/swiftnav/sbp/observation/test_MsgSvAzEl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ tests:
code: 14
sat: 36
c_decoded_fields:
n_azel: 33
n_azel:
handle_as: vararray-len
relates_to: azel
value: 33
module: sbp.observation
name: MsgSvAzEl
msg_type: '0x97'
Expand Down
30 changes: 24 additions & 6 deletions spec/tests/yaml/swiftnav/sbp/observation/test_msgObsDepA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ tests:
lock: 15074
prn: 30
c_decoded_fields:
n_obs: 7
n_obs:
handle_as: vararray-len
relates_to: obs
value: 7
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down Expand Up @@ -101,7 +104,10 @@ tests:
lock: 64062
prn: 31
c_decoded_fields:
n_obs: 1
n_obs:
handle_as: vararray-len
relates_to: obs
value: 1
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down Expand Up @@ -176,7 +182,10 @@ tests:
lock: 15074
prn: 30
c_decoded_fields:
n_obs: 7
n_obs:
handle_as: vararray-len
relates_to: obs
value: 7
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down Expand Up @@ -215,7 +224,10 @@ tests:
lock: 64062
prn: 31
c_decoded_fields:
n_obs: 1
n_obs:
handle_as: vararray-len
relates_to: obs
value: 1
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down Expand Up @@ -276,7 +288,10 @@ tests:
lock: 22736
prn: 30
c_decoded_fields:
n_obs: 5
n_obs:
handle_as: vararray-len
relates_to: obs
value: 5
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down Expand Up @@ -341,7 +356,10 @@ tests:
lock: 22736
prn: 30
c_decoded_fields:
n_obs: 5
n_obs:
handle_as: vararray-len
relates_to: obs
value: 5
module: sbp.observation
name: MsgObsDepA
msg_type: '0x45'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ tests:
total_bytes: 0
tx_bytes: 0
c_decoded_fields:
n_interfaces: 5
n_interfaces:
handle_as: vararray-len
relates_to: interfaces
value: 5
module: sbp.piksi
name: MsgNetworkBandwidthUsage
msg_type: '0xBD'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tests:
handle_as: encoded-string
fn_prefix: sbp_msg_settings_read_by_index_resp_setting
encoded_len: 76
min_len: 1
sections:
- "telemetry_radio"
- "configuration_string"
Expand Down Expand Up @@ -41,6 +42,7 @@ tests:
handle_as: encoded-string
fn_prefix: sbp_msg_settings_read_by_index_resp_setting
encoded_len: 33
min_len: 1
sections:
- "uart_ftdi"
- "mode"
Expand Down Expand Up @@ -70,6 +72,7 @@ tests:
handle_as: encoded-string
fn_prefix: sbp_msg_settings_read_by_index_resp_setting
encoded_len: 33
min_len: 1
sections:
- "uart_ftdi"
- "sbp_message_mask"
Expand Down Expand Up @@ -98,6 +101,7 @@ tests:
handle_as: encoded-string
fn_prefix: sbp_msg_settings_read_by_index_resp_setting
encoded_len: 27
min_len: 1
sections:
- "uart_ftdi"
- "baudrate"
Expand Down Expand Up @@ -126,6 +130,7 @@ tests:
handle_as: encoded-string
fn_prefix: sbp_msg_settings_read_by_index_resp_setting
encoded_len: 34
min_len: 1
sections:
- "uart_uarta"
- "mode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ package: sbp.signing
tests:
- msg:
c_decoded_fields:
n_certificate_bytes: 247
n_certificate_bytes:
handle_as: vararray-len
relates_to: certificate_bytes
value: 247
fields:
certificate_bytes:
- 180
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ package: sbp.signing
tests:
- msg:
c_decoded_fields:
n_signed_messages: 3
n_signed_messages:
handle_as: vararray-len
relates_to: signed_messages
value: 3
fields:
certificate_id:
- 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ package: sbp.signing
tests:
- msg:
c_decoded_fields:
n_signed_messages: 184
n_signed_messages:
handle_as: vararray-len
relates_to: signed_messages
value: 184
fields:
certificate_id:
- 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ package: sbp.signing
tests:
- msg:
c_decoded_fields:
n_signed_messages: 3
n_signed_messages:
handle_as: vararray-len
relates_to: signed_messages
value: 3
fields:
certificate_id:
- 1
Expand Down
Loading

0 comments on commit 6a7a104

Please sign in to comment.