Commit | Line | Data |
---|---|---|
b7fa458d | 1 | #!/usr/bin/env python3 |
2ffbd362 | 2 | from ctftestsuite.stress import MetadataTestAssitant |
b7fa458d | 3 | |
b7fa458d | 4 | |
2ffbd362 | 5 | class TestAssistant(MetadataTestAssitant): |
9926ec7f | 6 | what = '{size} typedefs' |
b7fa458d | 7 | |
9926ec7f | 8 | def write_metadata(self, f): |
9926ec7f PP |
9 | typedef_fmt = \ |
10 | '''typedef integer {{ size = 8; align = 8; signed = false; base = 10; }} t{name}; | |
11 | ''' | |
b7fa458d | 12 | |
cc0ca792 | 13 | f.write(self.BASIC_PROLOGUE) |
b7fa458d | 14 | |
9926ec7f PP |
15 | for i in range(self.size): |
16 | typedef = typedef_fmt.format(name=i) | |
17 | f.write(typedef) | |
b7fa458d | 18 | |
b7fa458d | 19 | |
9926ec7f | 20 | if __name__ == '__main__': |
2ffbd362 PP |
21 | test_assistant = TestAssistant() |
22 | test_assistant.main() |