Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 233) sorted by relevance

12345678910

/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dstorage.py17 (status, output) = cls.target.run('mkdir -p %s' % cls.mount_point)
18 (status, output) = cls.target.run('mount %s %s' % (cls.device, cls.mount_point))
28 (status, output) = cls.target.run('mkdir -p %s' % cls.test_dir)
30 (status, output) = cls.target.run('rm -f %s/*' % cls.test_dir)
37 (status, output) = cls.target.run('touch %s/%s' % (cls.test_dir, cls.test_file))
38 msg = ('File %s not created on %s' % (cls.test_file, cls.device))
42 (cls.test_dir, cls.test_file, cls.test_dir, cls.test_file))
43 msg = ('File %s not moved to %s' % (cls.test_file, cls.device))
46 (status, output) = cls.target.run('rm %s/%s1' % (cls.test_dir, cls.test_file))
53 (cls.test_dir, cls.test_file))
[all …]
H A Dltp_compliance.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
42 cls.extras = cls.tc.extraresults
48 cls.extras['ltpposixresult.sections'] = cls.sections
56 if cls.failmsg:
[all …]
H A Dltp_stress.py21 def setUpClass(cls): argument
22 cls.ltp_startup()
26 cls.ltp_finishup()
29 def ltp_startup(cls): argument
30 cls.sections = {}
31 cls.failmsg = ""
36 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
43 cls.extras = cls.tc.extraresults
49 cls.extras['ltpstressresult.sections'] = cls.sections
57 if cls.failmsg:
[all …]
H A Dltp.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
42 cls.extras = cls.tc.extraresults
48 cls.extras['ltpresult.sections'] = cls.sections
55 if cls.failmsg:
[all …]
H A Dopkg.py25 def setUp(cls): argument
27 if cls.tc.td["MULTILIB_VARIANTS"]:
28 allarchfeed = cls.tc.td["TUNE_PKGARCH"]
29 service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_IPK'], allarchfeed)
30 cls.repo_server = HTTPService(service_repo,
31 '0.0.0.0', port=cls.tc.target.server_port,
32 logger=cls.tc.logger)
33 cls.repo_server.start()
36 def tearDown(cls): argument
37 cls.repo_server.stop()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A DCOW.py38 def __str__(cls): argument
44 def cow(cls): argument
45 class C(cls):
107 cls.__setitem__(key, cls.__marker__)
118 value = cls.__getreadonly__(key, cls.__marker__)
148 def iterkeys(cls): argument
163 def __str__(cls): argument
169 def cow(cls): argument
170 class C(cls):
184 def iterkeys(cls): argument
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Dbootimg-biosplusefi.py87 def __init__(cls): argument
95 cls.__instanciateSubClasses()
98 def __instanciateSubClasses(cls): argument
127 if ( (not cls.__imgEFIObj) or (not cls.__imgBiosObj) ):
128 cls.__instanciateSubClasses()
130 cls.__imgEFIObj.do_install_disk(
140 cls.__imgBiosObj.do_install_disk(
158 if ( (not cls.__imgEFIObj) or (not cls.__imgBiosObj) ):
159 cls.__instanciateSubClasses()
190 if ( (not cls.__imgEFIObj) or (not cls.__imgBiosObj) ):
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Desdk.py62 cls.ext_sdk_path = oeSDKExtSelfTest.get_eSDK_toolchain(cls.image)
63 runCmd("%s -y -d \"%s\"" % (cls.ext_sdk_path, cls.tmpdir_eSDKQA))
65 cls.env_eSDK = oeSDKExtSelfTest.get_esdk_environment('', cls.tmpdir_eSDKQA)
77 def setUpClass(cls): argument
79 cls.image = 'core-image-minimal'
84 cls.tmpdir_eSDKQA = cls.tmpdirobj.name
89 cls.ext_sdk_path = oeSDKExtSelfTest.get_eSDK_toolchain(cls.image)
90 runCmd("%s -y -d \"%s\"" % (cls.ext_sdk_path, cls.tmpdir_eSDKQA))
92 cls.env_eSDK = oeSDKExtSelfTest.get_esdk_environment('', cls.tmpdir_eSDKQA)
103 def tearDownClass(cls): argument
[all …]
H A Dkerneldevelopment.py15 def setUpClass(cls): argument
16 super(KernelDev, cls).setUpClass()
18 cls.layername = 'meta-kerneltest'
19 runCmd('bitbake-layers create-layer %s' % cls.layername)
21 cls.recipes_linuxyocto_dir = os.path.join \
22 (cls.builddir, cls.layername, 'recipes-kernel', 'linux', 'linux-yocto')
23 cls.recipeskernel_dir = os.path.dirname(cls.recipes_linuxyocto_dir)
24 runCmd('bitbake-layers add-layer %s' % cls.layername)
27 def tearDownClass(cls): argument
29 runCmd('rm -rf %s' % cls.layername)
[all …]
H A Dgotoolchain.py35 def setUpClass(cls): argument
36 super(oeGoToolchainSelfTest, cls).setUpClass()
37 cls.tmpdir_SDKQA = tempfile.mkdtemp(prefix='SDKQA')
38 cls.go_path = os.path.join(cls.tmpdir_SDKQA, "go")
41 cls.sdk_path = oeGoToolchainSelfTest.get_sdk_toolchain()
43 runCmd("sh %s -y -d \"%s\"" % (cls.sdk_path, cls.tmpdir_SDKQA))
44 cls.env_SDK = oeGoToolchainSelfTest.get_sdk_environment(cls.tmpdir_SDKQA)
47 def tearDownClass(cls): argument
48 shutil.rmtree(cls.tmpdir_SDKQA, ignore_errors=True)
49 super(oeGoToolchainSelfTest, cls).tearDownClass()
H A Dmeta_ide.py18 def setUpClass(cls): argument
19 super(MetaIDE, cls).setUpClass()
24 cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
25 cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
26 cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
27 cls.corebasedir = bb_vars['COREBASE']
28 cls.tmpdir_metaideQA = tempfile.mkdtemp(prefix='metaide')
31 def tearDownClass(cls): argument
32 shutil.rmtree(cls.tmpdir_metaideQA, ignore_errors=True)
33 super(MetaIDE, cls).tearDownClass()
/openbmc/openbmc/poky/meta/lib/oe/
H A Dclassutils.py9 def __init__(cls, name, bases, attrs): argument
10 cls.registry = {}
11 type.__init__(cls, name, bases, attrs)
30 if not cls.implemented:
36 cls.name
38 cls.name = name
39 cls.registry[cls.name] = cls
46 def unregister(cls): argument
47 for key in cls.registry.keys():
48 if cls.registry[key] is cls:
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py25 def setUpClass(cls): argument
28 cls.testlayer_path = cls.tc.config_paths['testlayer_path']
29 cls.builddir = cls.tc.config_paths['builddir']
31 cls.localconf_path = cls.tc.config_paths['localconf']
32 cls.local_bblayers_path = cls.tc.config_paths['bblayers']
34 cls.testinc_path = os.path.join(cls.tc.config_paths['builddir'],
36 cls.testinc_bblayers_path = os.path.join(cls.tc.config_paths['builddir'],
38 cls.machineinc_path = os.path.join(cls.tc.config_paths['builddir'],
42 cls.testinc_path, cls.testinc_bblayers_path,
45 cls.add_include()
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/tests/
H A Dbase.py66 def setUpClass(cls): argument
73 cls.patchset = None
77 cls.patchset = []
81 cls.commits = []
82 for msg in cls.mbox:
86 cls.setUpClassLocal()
89 def tearDownClass(cls): argument
137 cls.tinfoil = cls.setup_tinfoil()
140 cls.added, cls.modified, cls.removed = cls.get_metadata_stats(cls.patchset)
217 if not cls.tinfoil:
[all …]
/openbmc/linux/drivers/base/
H A Dclass.c203 cp->class = cls; in class_register()
242 kfree(cls); in class_create_release()
262 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in class_create()
263 if (!cls) { in class_create()
268 cls->name = name; in class_create()
275 return cls; in class_create()
278 kfree(cls); in class_create()
562 if (!cls) in class_compat_register()
566 kfree(cls); in class_compat_register()
569 return cls; in class_compat_register()
[all …]
/openbmc/qemu/python/qemu/utils/
H A Dqom_common.py47 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyInfo': argument
53 return cls(value['name'], value['type'],
89 def register(cls, subparsers: Any) -> None: argument
95 subparser = subparsers.add_parser(cls.name, help=cls.help,
97 cls.configure_parser(subparser)
115 parser.set_defaults(cmd_class=cls)
150 cls: Type[CommandT],
159 cmd = cls(args)
166 def entry_point(cls) -> int: argument
173 cls.configure_parser(parser)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/sdkext/cases/
H A Ddevtool.py19 def setUpClass(cls): argument
20 myapp_src = os.path.join(cls.tc.esdk_files_dir, "myapp")
21 cls.myapp_dst = os.path.join(cls.tc.sdk_dir, "myapp")
22 shutil.copytree(myapp_src, cls.myapp_dst)
23 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_dst)
24 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_dst)
28 cls.myapp_cmake_dst = os.path.join(cls.tc.sdk_dir, "myapp_cmake")
29 shutil.copytree(myapp_cmake_src, cls.myapp_cmake_dst)
35 def tearDownClass(cls): argument
36 shutil.rmtree(cls.myapp_dst)
[all …]
/openbmc/linux/scripts/
H A Drust_is_available_test.py37 def generate_clang(cls, stdout): argument
47 def generate_rustc(cls, stdout): argument
68 return cls.generate_bindgen(stdout, cls.bindgen_default_bindgen_libclang_stderr)
72 return cls.generate_bindgen(cls.bindgen_default_bindgen_version_stdout, stderr)
75 def setUpClass(cls): argument
78 cls.missing = pathlib.Path(cls.tempdir.name) / "missing"
80 cls.nonexecutable = pathlib.Path(cls.tempdir.name) / "nonexecutable"
84 cls.unexpected_binary = "true"
94 cls.default_rustc = cls.generate_rustc(f"rustc {cls.rustc_default_version}")
95cls.default_bindgen = cls.generate_bindgen(cls.bindgen_default_bindgen_version_stdout, cls.bindge…
[all …]
/openbmc/docs/logo/
H A DOpenBMC-Logo.svg1cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
/openbmc/webui-vue/docs/.vuepress/public/
H A Dopenbmc-logo.svg1cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
99 exts = cls->knode.exts; in fill_action_fields()
177 TC_U32_NODE(cls->knode.handle)); in cxgb4_config_knode()
202 fs.tc_prio = cls->common.prio; in cxgb4_config_knode()
203 fs.tc_cookie = cls->knode.handle; in cxgb4_config_knode()
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c33 u32 loc = cls->knode.handle; in tc_find_entry()
66 exts = cls->knode.exts; in tc_fill_actions()
193 ret = tc_fill_entry(priv, cls); in tc_config_knode()
205 tc_unfill_entry(priv, cls); in tc_config_knode()
213 tc_unfill_entry(priv, cls); in tc_delete_knode()
222 switch (cls->command) { in tc_setup_cls_u32()
224 tc_unfill_entry(priv, cls); in tc_setup_cls_u32()
601 cls->common.extack); in tc_add_flow()
614 entry->cookie = cls->cookie; in tc_add_flow()
703 entry->cookie = cls->cookie; in tc_add_vlan_flow()
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dpluginbase.py33 def get_plugins(cls, ptype): argument
39 if not cls._plugin_dirs:
46 if path not in cls._plugin_dirs and os.path.isdir(path):
47 cls._plugin_dirs.insert(0, path)
51 for pdir in cls._plugin_dirs:
66 def __new__(cls, name, bases, attrs): argument
67 class_type = type.__new__(cls, name, bases, attrs)
89 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument
99 def do_stage_partition(cls, part, source_params, creator, cr_workdir, argument
127 def do_prepare_partition(cls, part, source_params, creator, cr_workdir, argument
[all …]
/openbmc/openbmc/poky/meta-selftest/lib/oeqa/runtime/cases/
H A Ddnf_runtime.py9 def setUpClass(cls): argument
11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
13 '0.0.0.0', port=cls.tc.target.server_port,
14 logger=cls.tc.logger)
15 cls.repo_server.start()
18 def tearDownClass(cls): argument
19 cls.repo_server.stop()
20 cls.temp_dir.cleanup()
/openbmc/openbmc/meta-security/meta-tpm/lib/oeqa/runtime/cases/
H A Dswtpm.py10 def setUpClass(cls): argument
11 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
12 cls.tc.target.run('mkdir /tmp/myvtpm2')
13 cls.tc.target.run('chown tss:root /tmp/myvtpm2')
16 def tearDownClass(cls): argument
17 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
18 cls.tc.target.run('rm -fr /tmp/myvtpm2')

12345678910