首页 文章 精选 留言 我的

精选列表

搜索[专家兼容测试],共10000篇文章
优秀的个人博客,低调大师

BMC测试架构

A Test Framework of BMC for platform team Table of Contents A Test Framework of BMC for platform team.. 1 Introduction. 1 Requirement Analyze. 2 General Design. 2 Requirement. 2 Not requirement:3 Model Design. 3 Pre-run model3 Functional model3 IPMI device “Global” Commands. 3 BMC Watchdog Timer Commands. 4 Chassis Commands. 4 Event commands. 5 PEF and Alerting command. 5 SEL commands. 5 SDR Repository command. 5 FRU Inventory Device Commands. 6 Event Filter Table. 6 Sensor Device commands. 6 Platform-specific OEM command. 7 Post-run model7 Implement. 7 Requirement. 7 User interface. 7 Schedule. 7 Introduction As theone most important component of a server, BMC is used to monitor system environmentmonitoring, hardware error and record related logs, so its high availabilityand stability is critical to us. Currently platform always use some manualscripts or commands to do BMC test, in fact the scripts and commands can be puttogether and re-used for other platform, and we can leverage other team’s testframework such as CTH test platform to test it automatically, therefore oneTest Frame work for BMC test is need, and this document is used to describe thedesign of the framework. RequirementAnalyze Typically uses cases include: 1.OEM SEL decodingTest for customer ipmitool/unit test 2.BMC stress test 3.BMC function test 4.BMC regression test 5.System monitro 6.Platform monitor 7.Firmware upgrade 8.Netmon GeneralDesign Requirement ·support both local KCS test and LAN test ·Could be integrate with EVT test framework ·Could be integrated with CTH test tools oGraphic user interface; oSupport auto Log; oSupport automatically report; oTests mode/collection configurable; ·To be easily expanded for new platform; ·To be easily expanded for other component This requires that other software component own by platform team such asplatmon/error handling will be easily tested by this framework. ·Support auto-training; That means the framework will record the test cases which once detectFW/Software problem, and will automatically add them into test case for latertests.Accordingto experience, because we always meet problem when run BMC reset, firmwareupgrade , sensor reading and power cycle test, these type commands should becollected by auto-training mechanism. ·Support multiply test modes: function test;random test; stress test oFunction test:test for every component/unit one by one; oRandom test: the random test generator willproduce the random test cases, such as random raw data, random SELs to BMC oStress test: a.Component level stress test: Many commands run together on the same component such as SEL / SDR / FRU/ Watchdog / CPLD at the same time toverify its availability. b.System level stress test: Many components ran stress test at the same time ·Support an interface to add platform-specifictest; ·The framework makes full use of code withcurrent DDOS The customer ipmitool is implemented in our DDOS according coming BMCspecification, so maybe we could reuse the code and test scripts ·The framework should define test level/log level The test level is used to define the test granularity (sensor level,component level, bus level, function level, chip level) while the log levelhelp debug and log more details about the execution and output of the testcases. ·Base on small generic test sets To start this work easily, we willchoose a basic test cases collection maybe included by all platform, such asBMC SEL, user , SDR, reset, Lan, Fan, FRU and power control command. Not requirement: ·Test for some OEM command which must operatehardware manually; ·Test for whose result may need manuallyinvestigation. ModelDesign Pre-run model Check BMC version requirement; Check BIOS version requirement; check extra parameters; check BMC is in normal state; save BMC IPMIuser/sol/serial/channel/mac/DHCP/IP default configuration; stop system and platform monitro; Functional Test IPMI device “Global” Commands ·Get Device ID command ·Warm Reset command ·Cold Reset command ·Get Self Tests Results command ·Manufacturing Test on command ·Set ACPI power state command ·Get ACPI power state command ·Get Device GUID command ·Broadcast “Get Device ID” command ·Firmware Firewall & Command Discoverycommands ·IPMI Messaging Support Commands oSet BMC Global Enables oGet BMC Global Enables oClear Message Flags oGet Message Flags oGet Message oSend message §Get BT interface Capabilities §Master write-read §IPMI serial/Modem Commands §Set Serial/Modem Configuration §Get Serial/Modemconfiguration §Serial / Modem connection Activ §SOL command ( Optional) §SOL Activating §Get SOL configuration Parameters §Set SOL configuration Parameters PEF and Alerting command Get PEF Capabilities Arm PEF Postpone Timer Set PEF Configuration Parameters Get PEF Configuration Parameters Set Last Processor Event ID Get Last Processor Event ID BMC Watchdog Timer Commands Reset watchdog timer Set Watchdog timer Get Watchdog timer (On expiration of the Watchdog timeout: vSystem Reset vSystem Power Off vSystem power cycle vPre-timeout interrupt (Optional) Chassis Commands Get Chassis capabilities Get Chassis Status Chassis control Chassis Reset Event commands Set event receiver Get event receiver Platform event message command SEL component Trigger all possible SELs in scripts; Delete SELS; Full SELs; Empty SELs; Get SEL Info Get SEL Entry Add SEL Entry Partial Add SEL entry Clear SEL Get SEL time Set SEL time OEM SEL decoding test (How to do the test with our OEM SELsdecoding code?) SDR Repository command Get SDR Repository Info Reserve SDR Repository Get SDR Add SDR Partial Add SDR Clear SDR Repository Get SDR Repository Time Set SDR Repository Time FRU Inventory Device Commands Get Device ID Get Self Test Results Broadcast Get Device ID Get Sensor Reading Set Event Receiver Get Event Receiver Platform Event Event Filter Table Get EFT list Check whether EFT works How to do PEF auto test? Sensor Device commands Static and Dynamic Senor Devices Get Device SDR info commands Get Device SDR command Reserve Devices SDR Repositorycommand Get sensor Reading Factors command Set sensor Hysteresis command Get sensor Hysteresis command Set Sensor Threshold command Get sensors event Enable command Set sensors event disabled command Re-arm sensor Events command User controlling command Lan command Platform-specific OEM command OEM SELs; OEM SLIC command; OEM NVRAM/BBU command (How to classified different OEM commands per platforms?) Random Test Using “ipmitoolevent” command to cover all OEM SEL decoding, this is easy to be done by ascript: Step 1: get allsensors; Step 2: for everysensor, list all possible state Step 3:Assert/Deassert every state Step 4: checkwhether SEL decoding the event correctly. Another method isusing “raw 0x40 0x41” command to emulate all possible SEL, and then using “ipmitoolsel list” to check whether successful to decode them. Stress and Integration Test Power button Test for many times Short presspre-boot Long press pre-boot Short presspost-boot Long presspost-boot Fan controlling Test for manytimes One Fan enterauto-manual control mode Multiply Fancontrolling method switch Sequent Fancontrolling command LED Test for many times Chassis LED Test SP LED Test FAN LED Test SLIC LED Test PSU LED Test Disk LED Test PSU SEL Test Unpowered PSUinserted Powered PSUinserted Unpowered PSU removed powered PSU removed Firmware program Test Firmware versionget Firmware upgrade Firmware downgrade Firmware checksum Firmware otheroption Performance Test Measure keyperformance for most frequent used commands, and compare it with other platform Post-run model check BMC is in normal state; restore BMC IPMI user/sol/serial/FAN/LED/channel/mac/DHCP/IP defaultconfiguration; restore system and platform monitor; Record logs in three different lawer: And then analyze above logs: PASS rate/ FAILrate: ·Command level log: OK/ERROR ·Case level log Component level log; Log upload; Implement Requirement ·Unified final result format: $component test :PASS/FAIL / Unsupported/Not Run ·Easily to expand to new platform for all OEMcommand (Try to reuse all command function in sub script) ·Cover all possible IPMI command maybe used by system daemon process 本文转自存储之厨51CTO博客,原文链接:http://blog.51cto.com/xiamachao/1681454 ,如需转载请自行联系原作者

优秀的个人博客,低调大师

Rue.js 框架 WASM,业务 TypeScript ,React Vue 语法兼容

后悔药 Rue.js Rue.js(发音 /ruː/,中文名后悔药.js)是一个面向 JSX/TSX 的轻量前端框架,追求简单直观的开发体验,同时提供默认 Block / Vapor 渲染路径、路由、基于 Rust / WebAssembly 的运行时扩展,以及 Rust 实现的响应式系统与原生 DOM 编译能力。 它适合希望保留 React 风格 JSX 开发方式,同时获得 Vue 式响应式 API 与更贴近真实 DOM 更新模型的项目。 相关链接 https://github.com/hunzhiwange/ruejs https://ruejs.huododo.com/ 特性 轻量、直观的 API,适合渐进式接入 默认 Block / Vapor 渲染路径,围绕真实 DOM 做最小更新 JSX / TSX 一等支持,无需额外模板语法 类似 Vue 的响应式 API,支持ref、reactive、computed 提供基于 Rust / WebAssembly 的运行时,可扩展 Vapor 渲染能力 提供 Rust 实现的响应式系统,覆盖信号、依赖追踪与调度能力 提供 Rust / Wasm 原生 DOM 编译器,将 JSX 转换为更贴近真实 DOM 的产物 官方路由、设计组件库与构建插件协同工作 提供@rue-js/runtime-vapor与@rue-js/swc-plugin-rueRust 侧核心能力 快速开始 Rue 提供官方脚手架,也支持接入现有 Vite 项目。 创建新项目 前置条件:Node.js >= 22.12.0 pnpm create rue@latest npm create rue@latest bun create rue@latest yarn dlx create-rue@latest 进入项目后安装依赖并启动开发服务器: cd your-project-name pnpm install pnpm run dev 接入现有项目 pnpm add @rue-js/rue @rue-js/router 在 Vite 配置中启用 Rue 的 JSX: // vite.config.tsimport { defineConfig } from 'vite' export default defineConfig({esbuild: { jsxImportSource: '@rue-js/rue' },}) 示例 下面是一个最小 Rue 应用示例: import { type FC, ref, useApp, useError } from '@rue-js/rue' const Counter: FC = () => {const count = ref(0) return <button onClick={() => count.value++}>点击次数:{count.value}</button>} useError({ overlay: true, console: true })useApp(Counter).mount('#app') 如果你需要页面级路由,可以继续接入@rue-js/router: import { useComponent } from '@rue-js/rue'import { createRouter } from '@rue-js/router' export default createRouter({history: 'hash',routes: [ { path: '/', component: useComponent(() => import('./pages/Home')) }, { path: '/about', component: useComponent(() => import('./pages/About')) },],})

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册