Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 31) sorted by relevance

12

/developtools/integration_verification/tools/fotff/pkg/mock/
Dmock.go30 func NewManager() pkg.Manager {
34 func (m *Manager) LastIssue(pkg string) (string, error) {
35 ret := fmt.Sprintf("https://testserver.com/issues/%s", pkg)
57 func (m *Manager) Flash(device string, pkg string, ctx context.Context) error {
59 …logrus.Infof("Flash: flashing %s to %s, mock implementation returns OK unconditionally", pkg, devi…
63 func (m *Manager) PkgDir(pkg string) string {
64 return pkg
/developtools/integration_verification/tools/fotff/pkg/dayu200/
Dflash.go35 func (m *Manager) flashDevice(device string, pkg string, ctx context.Context) error {
39 if err := m.flashImages(device, pkg, ctx); err != nil {
52 func (m *Manager) flashImages(device string, pkg string, ctx context.Context) error {
53 logrus.Infof("calling flash tool to flash %s into %s...", pkg, device)
65 …ntext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin…
71 …ntext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin…
80 …ctx, m.FlashTool, "-s", locationID, "DI", "-p", filepath.Join(m.Workspace, pkg, "parameter.txt"));…
88 …ationID, "DI", "-uboot", filepath.Join(m.Workspace, pkg, "uboot.img"), filepath.Join(m.Workspace,
97 if _, err := os.Stat(filepath.Join(m.Workspace, pkg, part+".img")); err != nil {
104 …ationID, "DI", "-"+part, filepath.Join(m.Workspace, pkg, part+".img"), filepath.Join(m.Workspace,
[all …]
Ddayu200.go68 func NewManager() pkg.Manager {
90 func (m *Manager) Flash(device string, pkg string, ctx context.Context) error {
91 logrus.Infof("now flash %s", pkg)
93 Pkg: pkg,
99 logrus.Errorf("build %s fail, err: %v", pkg, err)
102 logrus.Infof("%s is available now, start to flash it", pkg)
103 return m.flashDevice(device, pkg, ctx)
/developtools/integration_verification/tools/fotff/pkg/
Dpkg.go16 package pkg package
26 Flash(device string, pkg string, ctx context.Context) error
28 LastIssue(pkg string) (string, error)
34 PkgDir(pkg string) string
/developtools/integration_verification/tools/fotff/pkg/gitee_build/
Dgitee_build.go40 func NewManager() pkg.Manager {
53 func (m *Manager) Flash(device string, pkg string, ctx context.Context) error {
54 logrus.Infof("now flash %s", pkg)
56 Pkg: pkg,
68 logrus.Warnf("build %s fail, err: %v", pkg, err)
70 logrus.Infof("%s is available now", pkg)
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
Dget_newer_or_fail.go81 pkg := fmt.Sprintf("%s_%s_build_fail", m.Component, failedBuildStartTime.Format("20060102_150405"))
92 if err := os.MkdirAll(filepath.Join(m.Workspace, pkg), 0750); err != nil {
93 logrus.Errorf("can not mkdir %s, err: %v", pkg, err)
101 err = os.WriteFile(filepath.Join(m.Workspace, pkg, "manifest_tag.xml"), resp, 0640)
106 …= compressor.NewTgz().Compress(filepath.Join(m.Workspace, pkg), filepath.Join(m.ArchiveDir, pkg+".…
110 return pkg + ".tar.gz"
Dcommon.go96 func (m *Manager) Flash(device string, pkg string, ctx context.Context) error {
122 func (m *Manager) LastIssue(pkg string) (string, error) {
123 data, err := os.ReadFile(filepath.Join(m.Workspace, pkg, "__last_issue__"))
151 func (m *Manager) PkgDir(pkg string) string {
152 return filepath.Join(m.Workspace, pkg)
Dsteps_ci.go73 pkg, err := m.genTagPackage(tag)
77 pkgs = append(pkgs, pkg)
131 func (m *Manager) genTagPackage(tag *Tag) (pkg string, err error) {
133 logrus.Infof("package dir %s for tag %v generated", pkg, tag.TagFileURL)
Dsteps_gitee.go329 func parseTime(pkg string) (time.Time, error) {
330 …t, err := time.ParseInLocation(`20060102_150405`, regexp.MustCompile(`\d{8}_\d{6}`).FindString(pkg
332 …return time.ParseInLocation(`20060102150405`, regexp.MustCompile(`\d{14}`).FindString(pkg), time.L…
/developtools/integration_verification/tools/fotff/rec/
Dfotff.go38 func FindOutTheFirstFail(m pkg.Manager, t tester.Tester, testCase string, successPkg string, failPk…
53 func findOutTheFirstFail(m pkg.Manager, t tester.Tester, testcase string, steps []string, fellows .…
131 func flashAndTest(m pkg.Manager, t tester.Tester, pkg string, testcase string, ctx context.Context,…
133 if result, found := utils.CacheGet("testcase_result", testcase+"__at__"+pkg); found {
136 …if fellowResult, fellowFound := utils.CacheGet("testcase_result", fellow+"__at__"+pkg); fellowFoun…
148 if err := m.Flash(device, pkg, ctx); err != nil && !errors.Is(err, context.Canceled) {
151 if err = t.Prepare(m.PkgDir(pkg), device, ctx); err != nil {
165 utils.CacheSet("testcase_result", result.TestCaseName+"__at__"+pkg, result)
Dfotff_test.go113 func (f *FotffMocker) Flash(device string, pkg string, ctx context.Context) error {
121 f.runningPkg[device] = pkg
122 logrus.Infof("mock: flash %s to %s done", pkg, device)
127 func (f *FotffMocker) LastIssue(pkg string) (string, error) {
128 return "issue" + pkg, nil
139 func (f *FotffMocker) PkgDir(pkg string) string {
140 return pkg
Dflashandtest.go13 M pkg.Manager
/developtools/integration_verification/tools/fotff/
Dmain.go41 var newPkgMgrFuncs = map[string]pkg.NewFunc{
71 func initRunCmd(m pkg.Manager, t tester.Tester) *cobra.Command {
89 func initFlashCmd(m pkg.Manager) *cobra.Command {
104 func initTestCmd(m pkg.Manager, t tester.Tester) *cobra.Command {
137 func loop(m pkg.Manager, t tester.Tester) {
182 func fotff(m pkg.Manager, t tester.Tester, success, fail, testcase string) error {
192 func initExecutor() (pkg.Manager, tester.Tester) {
DREADME.md17 ├── pkg # 版本包管理的接口定义和特定开发板形态的具体实现
Dgo.mod11 github.com/pkg/sftp v1.13.5
Dfotff.ini35 flash_tool = ./pkg/dayu200/upgrade_tool.exe
Dgo.sum34 github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18=
35 github.com/pkg/sftp v1.13.5 h1:a3RLUqkyjYRtBTZJZ1VRrKbN3zhuPLlUc3sphVz81go=
36 github.com/pkg/sftp v1.13.5/go.mod h1:wHDZ0IZX6JcBYRK1TH9bcVq8G7TLpVHYIGJRFnmPfxg=
/developtools/profiler/host/smartperf/client/client_command/
Dsp_profiler_factory.cpp76 void SpProfilerFactory::SetProfilerPkg(const std::string &pkg) in SetProfilerPkg() argument
79 fps.SetPackageName(pkg); in SetProfilerPkg()
81 profilerFps.SetPackageName(pkg); in SetProfilerPkg()
83 mem.SetPackageName(pkg); in SetProfilerPkg()
85 ram.SetPackageName(pkg); in SetProfilerPkg()
87 cpu.SetPackageName(pkg); in SetProfilerPkg()
/developtools/integration_verification/tools/fotff/utils/
Dlog.go63 func SetLogOutput(pkg string) {
64 file := filepath.Join("logs", pkg+".log")
82 stdout := filepath.Join("logs", fmt.Sprintf("%s_stdout.log", pkg))
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/workers/
Dworker.js58 let messageSetPkg = 'set_pkgName::' + socketCollectItems.pkg;
85 if (socketCollectItems.pkg !== undefined) {
102 let messageRam = 'get_ram_info::' + socketCollectItems.pkg;
/developtools/profiler/host/smartperf/client/client_command/include/
Dsp_profiler_factory.h24 static void SetProfilerPkg(const std::string &pkg);
/developtools/hdc/src/test/jdwp/
DHdcJdwpSimulator.h23 explicit HdcJdwpSimulator(uv_loop_t *loopIn, string pkg);
DHdcJdwpSimulator.cpp20 HdcJdwpSimulator::HdcJdwpSimulator(uv_loop_t *loopIn, string pkg) in HdcJdwpSimulator() argument
24 pkgName = pkg; in HdcJdwpSimulator()
/developtools/hdc/hdc_rust/src/transfer/
Duart_wrapper.rs449 let pkg = OutputData { in output_package() localVariable
458 QueueManager::put_package(session_id, pkg).await; in output_package()
477 let Some(mut pkg) = QueueManager::get_package(session_id, 0).await else { in on_read_head()
480 pkg.status = if option & (UartOption::Ack as u16) > 1 { in on_read_head()
485 QueueManager::update_package(session_id, 0, pkg).await; in on_read_head()
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/profiler/item/
DRAM.ets55 mainWorker.postMessage({ ram: true, pkg: globalThis.collectPkg });

12