单元测试嵌入式C ++(ARM9) [英] Unit Testing on Embedded C++ (ARM9)

查看:198
本文介绍了单元测试嵌入式C ++(ARM9)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来从Java和JUnit的世界。我做了哈德森和所有的演示是我除其他外实现有使用JUnit。我愿做C ++ code相同的嵌入式设备上却找不到从哪里开始。

I come from the world of Java and JUnit. I made a demonstration of Hudson and all what I achieve there with JUnit among other things. I would like to do the same with C++ code on an embedded device but can't find where to start.

该项目是与iccarm.exe(IAR编译器)眼下输出转换成使用romutil.exe一个图像文件被刷新到ARM9板。编译

THe project is compiled with iccarm.exe (IAR compiler) Right now the output is converted into an image file using romutil.exe to be flashed to the ARM9 board.

我试图按照本教程: http://netbeans.org /kb/docs/cnd/c-unit-test.html 但我有试图弄清楚如何将它移植到我的情况的问题。

I tried to follow this tutorial: http://netbeans.org/kb/docs/cnd/c-unit-test.html but I'm having issues trying to figure out how to port it to my case.


  1. 我可以运行在C ++ code单元测试的设备之外吗? (即与哈德森做它来收集报表等)

  2. 我可以把结果输出到一个exe? (看起来像Netbeans的希望它是)

  3. 什么是对我的情况下,最合适的单位框架? (CppUnit的,库尼特等)

任何帮助/方向是更受欢迎。

Any help/direction is more than welcome.

推荐答案

1)你可以建立一个交叉编译器,然后而是采用iccarm.exe,使用交叉编译器。有很多在网上的教程如何使用gcc构建一个交叉编译器。然后,而不是(使用交叉编译器)材使用正常的编译器主机为目标建设。

1) You could build a cross-compiler, and then instead of using iccarm.exe, use the cross compiler. There are lots of tutorials on the net how to build a cross compiler using gcc. Then instead of building for the target (using cross compiler) build for your host using normal compiler.

3)不管你喜欢。 CppUnit的,谷歌的单元测试等

3) Whatever you like. cppunit, google unit tests, etc

这篇关于单元测试嵌入式C ++(ARM9)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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