Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
--- /dev/null
+version: '2.2'
+metadata:
+ type-aliases:
+ uint16:
+ class: int
+ size: 16
+ trace:
+ byte-order: le
+ streams:
+ my_stream:
+ $default: 23
+ packet-context-type:
+ class: struct
+ fields:
+ packet_size: uint16
+ content_size: uint16
+ events:
+ my_event:
+ payload-type:
+ class: struct
+ fields:
+ my_field:
+ class: int
+ size: 8
barectf_assert_file_exists events-key-invalid-identifier.yaml
barectf_config_check_fail
}
+
+@test 'wrong "$default" property type in stream object makes barectf fail' {
+ barectf_assert_file_exists default-invalid-type.yaml
+ barectf_config_check_fail
+}