/developtools/integration_verification/tools/fotff/pkg/mock/ |
D | mock.go | 30 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/ |
D | flash.go | 35 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 …]
|
D | dayu200.go | 68 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/ |
D | pkg.go | 16 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/ |
D | gitee_build.go | 40 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/ |
D | get_newer_or_fail.go | 81 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"
|
D | common.go | 96 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)
|
D | steps_ci.go | 73 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)
|
D | steps_gitee.go | 329 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/ |
D | fotff.go | 38 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)
|
D | fotff_test.go | 113 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
|
D | flashandtest.go | 13 M pkg.Manager
|
/developtools/integration_verification/tools/fotff/ |
D | main.go | 41 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) {
|
D | README.md | 17 ├── pkg # 版本包管理的接口定义和特定开发板形态的具体实现
|
D | go.mod | 11 github.com/pkg/sftp v1.13.5
|
D | fotff.ini | 35 flash_tool = ./pkg/dayu200/upgrade_tool.exe
|
D | go.sum | 34 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/ |
D | sp_profiler_factory.cpp | 76 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/ |
D | log.go | 63 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/ |
D | worker.js | 58 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/ |
D | sp_profiler_factory.h | 24 static void SetProfilerPkg(const std::string &pkg);
|
/developtools/hdc/src/test/jdwp/ |
D | HdcJdwpSimulator.h | 23 explicit HdcJdwpSimulator(uv_loop_t *loopIn, string pkg);
|
D | HdcJdwpSimulator.cpp | 20 HdcJdwpSimulator::HdcJdwpSimulator(uv_loop_t *loopIn, string pkg) in HdcJdwpSimulator() argument 24 pkgName = pkg; in HdcJdwpSimulator()
|
/developtools/hdc/hdc_rust/src/transfer/ |
D | uart_wrapper.rs | 449 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/ |
D | RAM.ets | 55 mainWorker.postMessage({ ram: true, pkg: globalThis.collectPkg });
|