Hudson 和配置(调试、发布、并行等)
我想知道 Hudson 中是否有一些测试多个配置的良好实践。我们在调试和发布模式下编译测试,并打开和关闭 MPI。
make 系统采用一系列参数(DEBUG=FALSE、OPT=TRUE、MPI=TRUE)并执行正确的操作,生成标记良好的测试可执行文件。我可能可以创建一个可以完成所有操作的整体控制脚本,但我想知道我是否缺少一些用于迭代参数列表的工具。如果我能在中间清理项目就更好了。
有人有意见吗?最好通过单独的项目来完成吗?带参数?只是写一个非常完整的脚本吗?
I wonder if there are some good practices for testing multiple configurations in Hudson. We compile tests in debug and release mode and also toggle MPI on and off.
The make system takes a series of parameters (DEBUG=FALSE, OPT=TRUE, MPI=TRUE) and does the right thing, producing test executables that are well labeled. I could probably create a monolithic control script that does everything, but I wonder if I am missing some facility for iterating through a list of parameters. Even better would be if I could clean the project in between.
Anyone have an opinion? Is this best done with separate projects? With parameters? Just by writing a very complete script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首次创建作业时选择构建多配置项目选项。
在多配置构建中,您可以添加一个“轴”,为其中一个构建参数定义一组值。然后构建脚本可以引用 Axis 参数作为环境变量。定义多个轴,Hudson 将遍历所有组合。
Select the option Build multi-configuration project when you first create your job.
In the multi-configuration build, you can add an "Axis" that defines a set of values for one of your build parameters. Then the build script can reference the Axis parameter as an environment variable. Define multiple axes and Hudson will run through all of the combinations.