Example #1
0
 def test_get_default_platform_variant(self):
     self.assertTrue(buildinfo.get_natural_platform_variant() in buildinfo.get_known_platform_variants())
Example #2
0
'''
import re, buildinfo

'''
The name of the source code aspect of a component. This name is used as a
constant in dependency declarations, to specify that a component is re-used as
source. It is reflected in the name of the "code root" folder.
'''
CODE_ASPECT_NAME = 'code'
'''
The name of the build/binary aspect of a component. This name is used as a
constant in dependency declarations, to specify that a component is re-used in
prebuilt form. It is reflected in the name of the "built root" folder.
'''
BUILT_ASPECT_NAME = 'built'
BUILT_ASPECT_SUFFIXES = buildinfo.get_known_platform_variants()
BUILT_ASPECT_VARIANTS = ['.'.join([BUILT_ASPECT_NAME, suffix]) for suffix in BUILT_ASPECT_SUFFIXES]
'''
The name of the test aspect of a component. It is reflected in the "test root"
folder.
'''
TEST_ASPECT_NAME = 'test'
'''
The name of the runnable aspect of the top component. It is reflected in the "run
root" folder. Unlike other aspects, this one only relates to the top component
in the sandbox and does not have a subdir named for the component.
'''
RUNNABLE_ASPECT_NAME = 'run'
'''
The name of the report aspect of the top component. It is reflected in the "report
root" folder. Unlike other aspects, this one only relates to the top component
Example #3
0
Encapsulate information about individual components.
'''
import re, buildinfo
'''
The name of the source code aspect of a component. This name is used as a
constant in dependency declarations, to specify that a component is re-used as
source. It is reflected in the name of the "code root" folder.
'''
CODE_ASPECT_NAME = 'code'
'''
The name of the build/binary aspect of a component. This name is used as a
constant in dependency declarations, to specify that a component is re-used in
prebuilt form. It is reflected in the name of the "built root" folder.
'''
BUILT_ASPECT_NAME = 'built'
BUILT_ASPECT_SUFFIXES = buildinfo.get_known_platform_variants()
BUILT_ASPECT_VARIANTS = [
    '.'.join([BUILT_ASPECT_NAME, suffix]) for suffix in BUILT_ASPECT_SUFFIXES
]
'''
The name of the test aspect of a component. It is reflected in the "test root"
folder.
'''
TEST_ASPECT_NAME = 'test'
'''
The name of the runnable aspect of the top component. It is reflected in the "run
root" folder. Unlike other aspects, this one only relates to the top component
in the sandbox and does not have a subdir named for the component.
'''
RUNNABLE_ASPECT_NAME = 'run'
'''