Factor out common metadata prologues
[ctf-testsuite.git] / utils / python / ctftestsuite / stress.py
index d355fa38a7cc4340ed934091d27d4e44a4a52123..6f85ec5dbd6bfad388fced529d821c3749a26730 100644 (file)
@@ -5,6 +5,25 @@ import os
 
 
 class MetadataTest:
+    BASIC_PROLOGUE = \
+'''/* CTF 1.8 */
+
+typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
+typealias integer { size = 32; align = 8; signed = false; base = hex; } := uint32_t;
+
+trace {
+    major = 0;
+    minor = 0;
+    uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
+    byte_order = le;
+    packet.header := struct {
+        uint32_t magic;
+        uint8_t uuid[16];
+    };
+};
+
+'''
+
     def __init__(self):
         self._actions = {
             'prepare': self._prepare,
This page took 0.024971 seconds and 4 git commands to generate.