Fix: Make traces with no data stream type ID readable by babeltrace
[barectf.git] / tests / tracing / configs / basic / ds / no-dst-id.yaml
diff --git a/tests/tracing/configs/basic/ds/no-dst-id.yaml b/tests/tracing/configs/basic/ds/no-dst-id.yaml
new file mode 100644 (file)
index 0000000..08fad38
--- /dev/null
@@ -0,0 +1,66 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+# Copyright (c) 2023 Erica Bugden <ebugden@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# Test Purpose
+#
+# This test configuration aims to verify that when the config property
+# 'data-stream-type-id-field-type' is set to false, that the metadata
+# file generated by barectf will not mention the  type id (in either the
+# stream type description or in the event type descriptions).
+#
+# This makes sure that two common CTF trace readers (Babeltrace and
+# Trace Compass) will be able to read the traces produced.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    $features:
+      magic-field-type: false
+      uuid-field-type: false
+      data-stream-type-id-field-type: false
+    data-stream-types:
+      default:
+        $features:
+          packet:
+            total-size-field-type:
+              class: unsigned-integer
+              size: 16
+            content-size-field-type:
+              class: unsigned-integer
+              size: 16
+            beginning-timestamp-field-type: false
+            end-timestamp-field-type: false
+          event-record:
+            type-id-field-type: false
+            timestamp-field-type: false
+        event-record-types:
+          my_event:
+            payload-field-type:
+              class: structure
+              members:
+                - my_field: string
This page took 0.023847 seconds and 4 git commands to generate.