Valgrind 自动测试——它们在什么地方使用过吗?
您认为基于 valgrind 工具套件运行一组自动测试有意义吗? 您听说过或看到过这样的设置吗? 这样的设置可以执行哪些自动(不受人类直觉影响)操作?
Do you think that running set of automatic tests based on valgrind's tool suite makes sense? Did you hear about or see such setup in action? What automatic (free from human intuition) actions could such setup perform?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在单元测试或最终构建测试中检查内存问题/错误代码,这将是有意义的。 可能有两种方法:
也许这些工具可以在您的跟踪器中自动创建错误项目(尽管它可能很快就会填满)。
我自己没有看到任何东西,但作为 valgrind 用户,这会很方便。 如果您创建了一些很酷的东西,也许可以将其作为开源项目启动!
编辑
经过一番谷歌搜索后,我发现 http: //www.redhat.com/f/summitfiles/presentation/June2/Developer%20Tools/Cox,Malcom_Automated%20Testing.pdf
这似乎涵盖了使用 DejaGNU 和 Valgrind 进行自动化测试,正如我上面建议的
祝你好运!
This would make sense if you were checking for memory problems / bad code as part of unit testing or final build testing. There may be two approaches:
Maybe these tools could automatically create bug items in your tracker (although it might fill up quickly).
Not seen anything myself, but as a valgrind user, it would be handy. If you create something cool, maybe launch it as an open-source project!
edit
after a bit of googling I found http://www.redhat.com/f/summitfiles/presentation/June2/Developer%20Tools/Cox,Malcom_Automated%20Testing.pdf
Which seems to cover automated testing using DejaGNU and Valgrind as I suggested above
Good Luck!