Fix typo: `Assitant` -> `Assistant`
[ctf-testsuite.git] / tests / 1.8 / stress / metadata / pass / large-metadata / test.py
CommitLineData
9491ba33 1#!/usr/bin/env python3
2b6ee9ec 2from ctftestsuite.stress import MetadataTestAssistant
9491ba33 3
9491ba33 4
2b6ee9ec 5class TestAssistant(MetadataTestAssistant):
9926ec7f 6 what = 'large metadata with {size} extra chars'
9491ba33 7
9926ec7f 8 def write_metadata(self, f):
cc0ca792
PP
9 p1 = \
10'''event {
9926ec7f
PP
11 name = myevent;
12 fields := struct {
13 uint8_t f;
14 };
15'''
16 p2 = '\n};\n'
9491ba33 17
cc0ca792 18 f.write(self.BASIC_PROLOGUE)
9926ec7f 19 f.write(p1)
9491ba33 20
9926ec7f
PP
21 for i in range(self.size):
22 f.write(' ')
9491ba33 23
9926ec7f 24 f.write(p2)
9491ba33 25
9491ba33 26
9926ec7f 27if __name__ == '__main__':
2ffbd362
PP
28 test_assistant = TestAssistant()
29 test_assistant.main()
This page took 0.023422 seconds and 4 git commands to generate.