mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
PR #12628 expanded architecture macros for every DSC record so component-private records match their component. A positive raw owner can also represent include provenance, so broad expansion changes records outside component scope. Expand architecture macros only for Component records and records whose owner maps to a final Component. Reset the owner mapping whenever the post-processed table is rebuilt to prevent stale ownership across DoPostProcess calls. Add regression coverage for component-private LibraryClasses and PCDs, nested and private includes, multiple architectures, unresolved macros, repeated sections, and repeated post-processing. Signed-off-by: Bob Chen (UST Global Singapore Pte Limited) <v-kuanlchen@microsoft.com>
30 lines
705 B
Python
30 lines
705 B
Python
## @file
|
|
# Unit tests for Python based BaseTools
|
|
#
|
|
# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
|
|
##
|
|
# Import Modules
|
|
#
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
|
|
def TheTestSuite():
|
|
suites = []
|
|
import CheckPythonSyntax
|
|
suites.append(CheckPythonSyntax.TheTestSuite())
|
|
import CheckUnicodeSourceFiles
|
|
suites.append(CheckUnicodeSourceFiles.TheTestSuite())
|
|
import MetaFileParserTests
|
|
suites.append(MetaFileParserTests.TheTestSuite())
|
|
return unittest.TestSuite(suites)
|
|
|
|
if __name__ == '__main__':
|
|
allTests = TheTestSuite()
|
|
unittest.TextTestRunner().run(allTests)
|
|
|