| 774 | ) |
| 775 | |
| 776 | def new_test(arch, cc): |
| 777 | if is_standalone: return textwrap.dedent("""\ |
| 778 | class TestCCompilerOpt_{class_name}(_Test_CCompilerOpt, unittest.TestCase): |
| 779 | arch = '{arch}' |
| 780 | cc = '{cc}' |
| 781 | def __init__(self, methodName="runTest"): |
| 782 | unittest.TestCase.__init__(self, methodName) |
| 783 | self.setup_class() |
| 784 | """).format( |
| 785 | class_name=arch + '_' + cc, arch=arch, cc=cc |
| 786 | ) |
| 787 | return textwrap.dedent("""\ |
| 788 | class TestCCompilerOpt_{class_name}(_Test_CCompilerOpt): |
| 789 | arch = '{arch}' |
| 790 | cc = '{cc}' |
| 791 | """).format( |
| 792 | class_name=arch + '_' + cc, arch=arch, cc=cc |
| 793 | ) |
| 794 | """ |
| 795 | if 1 and is_standalone: |
| 796 | FakeCCompilerOpt.fake_info = "x86_icc" |