Stress tests Python scripts: fix semantics
[ctf-testsuite.git] / tests / 1.8 / stress / metadata / pass / many-typealias / test.py
CommitLineData
66ef3c63 1#!/usr/bin/env python3
2ffbd362 2from ctftestsuite.stress import MetadataTestAssitant
66ef3c63 3
66ef3c63 4
2ffbd362 5class TestAssistant(MetadataTestAssitant):
9926ec7f 6 what = '{size} typealiases'
66ef3c63 7
9926ec7f 8 def write_metadata(self, f):
9926ec7f
PP
9 typealias_fmt = \
10'''typealias integer {{ size = 8; align = 8; signed = false; base = 10; }} := t{name};
11'''
66ef3c63 12
cc0ca792 13 f.write(self.BASIC_PROLOGUE)
66ef3c63 14
9926ec7f
PP
15 for i in range(self.size):
16 typealias = typealias_fmt.format(name=i)
17 f.write(typealias)
66ef3c63 18
66ef3c63 19
9926ec7f 20if __name__ == '__main__':
2ffbd362
PP
21 test_assistant = TestAssistant()
22 test_assistant.main()
This page took 0.023917 seconds and 4 git commands to generate.