Home
last modified time | relevance | path

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

/developtools/integration_verification/tools/fotff/pkg/mock/
H A Dmock.go21 "fotff/pkg"
30 func NewManager() pkg.Manager {
34 func (m *Manager) LastIssue(pkg string) (string, error) {
35 ret := fmt.Sprintf("https://testserver.com/issues/%s", pkg)
50 ret := fmt.Sprintf("pkg%d", m.pkgCount)
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, device)
63 func (m *Manager) PkgDir(pkg string) string {
64 return pkg
/developtools/integration_verification/tools/fotff/pkg/dayu200/
H A 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 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin"), "-noreset"); err != nil {
71 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin"), "-noreset"); err != nil {
80 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-p", filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
88 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-uboot", filepath.Join(m.Workspace, pkg, "uboot.img"), filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
97 if _, err := os.Stat(filepath.Join(m.Workspace, pkg, par
[all...]
H A Ddayu200.go20 "fotff/pkg"
21 "fotff/pkg/gitee_common"
68 func NewManager() pkg.Manager {
88 // Flash function implements pkg.Manager. Flash images in the 'pkg' directory to the given device.
89 // If not all necessary images are available in the 'pkg' directory, will build them.
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, er
[all...]
/developtools/integration_verification/tools/fotff/pkg/
H A Dpkg.go16 package pkg
26 Flash(device string, pkg string, ctx context.Context) error
28 LastIssue(pkg string) (string, error)
33 // PkgDir returns where pkg exists in the filesystem.
34 PkgDir(pkg string) string
/developtools/integration_verification/tools/fotff/pkg/gitee_build/
H A Dgitee_build.go20 "fotff/pkg"
21 "fotff/pkg/gitee_common"
40 func NewManager() pkg.Manager {
51 // Flash function implements pkg.Manager. Since this gitee_build just tests package buildings,
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/rec/
H A Dfotff.go22 "fotff/pkg"
38 func FindOutTheFirstFail(m pkg.Manager, t tester.Tester, testCase string, successPkg string, failPkg string, fellows ...string) (string, error) {
53 func findOutTheFirstFail(m pkg.Manager, t tester.Tester, testcase string, steps []string, fellows ...string) (string, error) {
131 func flashAndTest(m pkg.Manager, t tester.Tester, pkg string, testcase string, ctx context.Context, fellows ...string) (bool, []string, error) {
133 if result, found := utils.CacheGet("testcase_result", testcase+"__at__"+pkg); found {
136 if fellowResult, fellowFound := utils.CacheGet("testcase_result", fellow+"__at__"+pkg); fellowFound {
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, resul
[all...]
H A 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
H A Dflashandtest.go5 "fotff/pkg"
11 // FlashAndTestOptions specify which pkg.Manager and which tester to use to flash and test the specified version
13 M pkg.Manager
H A Drecord.go21 "fotff/pkg"
115 func Analysis(m pkg.Manager, t tester.Tester, pkgName string, testcases []string) {
/developtools/integration_verification/tools/fotff/
H A Dmain.go20 "fotff/pkg"
21 "fotff/pkg/dayu200"
22 "fotff/pkg/gitee_build"
23 "fotff/pkg/mock"
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
[all...]
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
H A 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)
H A Dcommon.go95 // Flash function implements pkg.Manager. Flash images in the 'pkg' directory to the given device.
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)
H A 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), time.Local)
332 return time.ParseInLocation(`20060102150405`, regexp.MustCompile(`\d{14}`).FindString(pkg), time.Local)
/developtools/profiler/host/smartperf/client/client_command/
H A Dsp_profiler_factory.cpp104 void SpProfilerFactory::SetProfilerPkg(const std::string &pkg) in SetProfilerPkg() argument
107 fps.SetPackageName(pkg); in SetProfilerPkg()
109 profilerFps.SetPackageName(pkg); in SetProfilerPkg()
111 ram.SetPackageName(pkg); in SetProfilerPkg()
113 cpu.SetPackageName(pkg); in SetProfilerPkg()
H A Dsp_utils.cpp649 bool SPUtils::IsForeGround(std::string &pkg) in IsForeGround() argument
655 std::string appLine = "app name [" + pkg; in IsForeGround()
656 std::string bundleLine = "bundle name [" + pkg; in IsForeGround()
H A Dsp_task.cpp60 std::string pkg; in ParseToTask() local
69 pkg = args[++i]; in ParseToTask()
95 taskInfo = { sessionId, pkg, configs, interval, snf }; in ParseToTask()
/developtools/integration_verification/tools/fotff/utils/
H A 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/
H A 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/
H A Dsp_profiler_factory.h25 static void SetProfilerPkg(const std::string &pkg);
H A Dsp_utils.h118 * @brief get top pkg
141 bool IsForeGround(std::string &pkg);
/developtools/hdc/src/test/jdwp/
H A DHdcJdwpSimulator.h23 explicit HdcJdwpSimulator(uv_loop_t *loopIn, string pkg);
H A DHdcJdwpSimulator.cpp20 HdcJdwpSimulator::HdcJdwpSimulator(uv_loop_t *loopIn, string pkg) in HdcJdwpSimulator() argument
24 pkgName = pkg; in HdcJdwpSimulator()
/developtools/hdc/hdc_rust/src/transfer/
H A Duart_wrapper.rs39 Ack = 4, // response the pkg is received
40 Nak = 8, // request resend pkg again
450 let pkg = OutputData {
459 QueueManager::put_package(session_id, pkg).await;
478 let Some(mut pkg) = QueueManager::get_package(session_id, 0).await else {
481 pkg.status = if option & (UartOption::Ack as u16) > 1 {
486 QueueManager::update_package(session_id, 0, pkg).await;
/developtools/hdc/src/common/
H A Duart.cpp677 WRITE_LOG(LOG_DEBUG, "UartPackageManager: add pkg %s (pkgs size %zu)", in RequestSendPackage()
680 WRITE_LOG(LOG_FATAL, "UartPackageManager: add pkg %s fail, %s has already been exist.", in RequestSendPackage()
701 it->pkgStatus = PKG_WAIT_SEND; // Re send the pkg in ProcessResponsePackage()
705 WRITE_LOG(LOG_FATAL, "UartPackageManager: hasn't found pkg for pkgId:%s.", pkgId.c_str()); in ProcessResponsePackage()
706 for (auto pkg : outPkgs) { in ProcessResponsePackage()
707 WRITE_LOG(LOG_ALL, "UartPackageManager: pkgId:%s.", pkg.key.c_str()); in ProcessResponsePackage()
728 // we found a pkg wait for send in SendPkgInUARTOutMap()
740 WRITE_LOG(LOG_DEBUG, "UartPackageManager: send pkg %s", it->ToDebugString().c_str()); in SendPkgInUARTOutMap()
746 // response pkg dont need wait response again. in SendPkgInUARTOutMap()
747 WRITE_LOG(LOG_DEBUG, "UartPackageManager: erase pkg in SendPkgInUARTOutMap()
[all...]
/developtools/profiler/hiebpf/include/
H A Dvmlinux.h97904 struct acpi_pkg_state pkg; global() member
127833 u8 pkg; global() member
[all...]

Completed in 404 milliseconds