Lines Matching refs:testsuite
38 import testsuite
42 …testsuite.add_test("ACPI _MAT (Multiple APIC Table Entry) under Processor objects", test_mat, subm…
43 # testsuite.add_test("ACPI _PSS (Pstate) table conformance tests", test_pss, submenu="ACPI Tests…
44 # testsuite.add_test("ACPI _PSS (Pstate) runtime tests", test_pstates, submenu="ACPI Tests")
45 …testsuite.add_test("ACPI DSDT (Differentiated System Description Table)", test_dsdt, submenu="ACPI…
46 testsuite.add_test("ACPI FACP (Fixed ACPI Description Table)", test_facp, submenu="ACPI Tests")
47 …testsuite.add_test("ACPI HPET (High Precision Event Timer Table)", test_hpet, submenu="ACPI Tests")
48 … testsuite.add_test("ACPI MADT (Multiple APIC Description Table)", test_apic, submenu="ACPI Tests")
49 testsuite.add_test("ACPI MPST (Memory Power State Table)", test_mpst, submenu="ACPI Tests")
50 …testsuite.add_test("ACPI RSDP (Root System Description Pointer Structure)", test_rsdp, submenu="AC…
51 …testsuite.add_test("ACPI XSDT (Extended System Description Table)", test_xsdt, submenu="ACPI Tests…
71 …testsuite.test("{} Processor declaration ProcId = _MAT ProcId".format(cpupath), processor.ProcId =…
72 …testsuite.print_detail("{} ProcId ({:#02x}) != _MAT ProcId ({:#02x})".format(cpupath, processor.Pr…
73 testsuite.print_detail("Processor Declaration: {}".format(processor))
74 testsuite.print_detail("_MAT entry[{}]: {}".format(index, subtable))
75 …if testsuite.test("{} with local APIC in _MAT has local APIC in MADT".format(cpupath), processor.P…
76 …testsuite.test("{} ApicId derived using Processor declaration ProcId = _MAT ApicId".format(cpupath…
77 …testsuite.print_detail("{} ApicId derived from MADT ({:#02x}) != _MAT ApicId ({:#02x})".format(cpu…
78 testsuite.print_detail("Processor Declaration: {}".format(processor))
79 testsuite.print_detail("_MAT entry[{}]: {}".format(index, subtable))
82 … if testsuite.test("{} with x2Apic in _MAT has _UID".format(cpupath), uid is not None):
83 testsuite.test("{}._UID = _MAT UID".format(cpupath), uid == subtable.uid)
84 … testsuite.print_detail("{}._UID ({:#x}) != _MAT UID ({:#x})".format(cpupath, uid, subtable.uid))
85 testsuite.print_detail("_MAT entry[{}]: {}".format(index, subtable))
86 …if testsuite.test("{} with _MAT x2Apic has x2Apic in MADT".format(cpupath), subtable.uid in uid_x2…
87 …testsuite.test("{} x2ApicId derived from MADT using UID = _MAT x2ApicId".format(cpupath), uid_x2ap…
88 …testsuite.print_detail("{} x2ApicId derived from MADT ({:#02x}) != _MAT x2ApicId ({:#02x})".format…
89 testsuite.print_detail("_MAT entry[{}]: {}".format(index, subtable))
94 …testsuite.test("_PSS must be identical for all CPUs", len(uniques) <= 1 or (len(uniques) == 2 and …
96 if not testsuite.test("_PSS must exist", pss is not None):
97 testsuite.print_detail(acpi.factor_commonprefix(cpupaths))
98 testsuite.print_detail('No _PSS exists')
101 if not testsuite.test("_PSS must not be empty", pss.pstates):
102 testsuite.print_detail(acpi.factor_commonprefix(cpupaths))
103 testsuite.print_detail('_PSS is empty')
106 testsuite.print_detail(acpi.factor_commonprefix(cpupaths))
108 testsuite.print_detail("P[{}]: {}".format(index, pstate))
110 testsuite.test("_PSS must contain at most 16 Pstates", len(pss.pstates) <= 16)
111 … testsuite.test("_PSS must have no duplicate Pstates", len(pss.pstates) == len(set(pss.pstates)))
114 …testsuite.test("_PSS must list Pstates in descending order of frequency", frequencies == sorted(fr…
116 …testsuite.test("_PSS must have Pstates with no duplicate frequencies", len(frequencies) == len(set…
119 …testsuite.test("_PSS must list Pstates in descending order of power dissipation", dissipations == …
149 if not testsuite.test("_PSS must exist", pss is not None):
150 testsuite.print_detail(acpi.factor_commonprefix(cpupaths))
151 testsuite.print_detail('No _PSS exists')
189 …testsuite.test("P{}: Turbo measured frequency {} >= expected {} MHz".format(n, aperf, pstate.core_…
191 …testsuite.test("P{}: measured frequency {} MHz == expected {} MHz".format(n, aperf, pstate.core_fr…
195 …if not testsuite.test("_PSD (P-State Dependency) must exist for each processor", None not in uniqu…
196 testsuite.print_detail(acpi.factor_commonprefix(uniques[None]))
197 testsuite.print_detail('No _PSD exists')
214 testsuite.print_detail(acpi.factor_commonprefix(cpupaths))
215 testsuite.print_detail(fmt.format(value))
217 …testsuite.test('Dependency count for each processor must be 1', unique_num_dependencies.keys() == …
219 testsuite.test('_PSD.num_entries must be 5', unique_num_entries.keys() == [5])
221 testsuite.test('_PSD.revision must be 0', unique_revision.keys() == [0])
223 …testsuite.test('_PSD.coordination_type must be 0xFE (HW_ALL)', unique_coordination_type.keys() == …
225 …testsuite.test('_PSD.domain must be unique (thread-scoped) for each processor', len(unique_domain)…
227 testsuite.test('_PSD.num_processors must be 1', unique_num_processors.keys() == [1])
232 testsuite.test('ACPI table cumulative checksum must equal 0', csum == 0)
233 testsuite.print_detail("Cumulative checksum = {} (Expected 0)".format(csum))
276 testsuite.test('ACPI 1.0 table first 20 bytes cumulative checksum must equal 0', csum == 0)
277 testsuite.print_detail("Cumulative checksum = {} (Expected 0)".format(csum))