Factor out common metadata prologues
[ctf-testsuite.git] / tests / 1.8 / stress / metadata / pass / many-typealias / test.py
CommitLineData
66ef3c63 1#!/usr/bin/env python3
9926ec7f 2from ctftestsuite.stress import MetadataTest
66ef3c63 3
66ef3c63 4
9926ec7f
PP
5class Test(MetadataTest):
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
PP
20if __name__ == '__main__':
21 test = Test()
22 test.main()
This page took 0.023728 seconds and 4 git commands to generate.