Fix typo: `Assitant` -> `Assistant`
[ctf-testsuite.git] / tests / 1.8 / stress / metadata / pass / many-typedef / test.py
CommitLineData
b7fa458d 1#!/usr/bin/env python3
2b6ee9ec 2from ctftestsuite.stress import MetadataTestAssistant
b7fa458d 3
b7fa458d 4
2b6ee9ec 5class TestAssistant(MetadataTestAssistant):
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 20if __name__ == '__main__':
2ffbd362
PP
21 test_assistant = TestAssistant()
22 test_assistant.main()
This page took 0.023703 seconds and 4 git commands to generate.