如何测试我自己(小型)嵌入式操作系统的可靠性? [英] How to test reliability of my own (small) embedded operating system?

查看:211
本文介绍了如何测试我自己(小型)嵌入式操作系统的可靠性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我添加了一些自动化单元测试,高测试代码覆盖率(> 95%),但范围只是静态部分。

我将一些代码指标作为复杂性和可读性。

我正在测试我的代码与MiSRA支持的规则检查器,当然固定所有警告。

我正在使用静态分析器测试代码,并再次修复所有警告。



现在我可以做些什么来测试 - 改进我的操作系统的可靠性?
动态部分怎么样? / p>

解决方案

尝试为动态部分编写一些单元测试。
然后在目标硬件上运行测试。
在具有更多核心的硬件上运行测试
在只有一个核心的硬件上运行测试



更改目标系统时钟速度并运行动态测试



应该摆脱大多数时间问题。


I've written a small operating system for embedded project running on small to medium target.

I added some automated unit test with a high test code coverage (>95%), but the scope is only the static part.
I got some code metrics as complexity and readability.
I'm testing my code with a rule checker with MiSRA support, and of course fixed all warnings.
I'm testing the code with a static analyzer and again fixed all warnings.

What can I do now to test - and improve - the reliability of my OS ? How about the dynamic part ?

解决方案

Try writing some unit tests for the dynamic part. Then run the tests on the target hardware. Run the tests on hardware with more cores Run the tests on hardware with only one core

Vary target system clock speed and run the dynamic tests.

should shake out most timing issues.

这篇关于如何测试我自己(小型)嵌入式操作系统的可靠性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆