Commit | Line | Data |
---|---|---|
62b47f51 | 1 | #!/usr/bin/env python3 |
2ffbd362 | 2 | from ctftestsuite.stress import MetadataTestAssitant |
62b47f51 | 3 | |
62b47f51 | 4 | |
2ffbd362 | 5 | class TestAssistant(MetadataTestAssitant): |
9926ec7f | 6 | what = 'long identifier of {size} chars' |
62b47f51 | 7 | |
9926ec7f PP |
8 | def write_metadata(self, f): |
9 | p1 = \ | |
cc0ca792 | 10 | '''event { |
9926ec7f PP |
11 | name = myevent; |
12 | fields := struct { | |
13 | uint8_t ''' | |
62b47f51 | 14 | |
9926ec7f PP |
15 | p2 = \ |
16 | '''; | |
17 | }; | |
18 | }; | |
19 | ''' | |
62b47f51 | 20 | |
cc0ca792 | 21 | f.write(self.BASIC_PROLOGUE) |
9926ec7f | 22 | f.write(p1) |
62b47f51 | 23 | |
9926ec7f PP |
24 | for i in range(self.size): |
25 | f.write('A') | |
62b47f51 | 26 | |
9926ec7f | 27 | f.write(p2) |
62b47f51 | 28 | |
62b47f51 | 29 | |
9926ec7f | 30 | if __name__ == '__main__': |
2ffbd362 PP |
31 | test_assistant = TestAssistant() |
32 | test_assistant.main() |