Hudson 和配置(调试、发布、并行等)

发布于 2024-10-03 09:45:00 字数 256 浏览 1 评论 0原文

我想知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽袖吟 2024-10-10 09:45:00

首次创建作业时选择构建多配置项目选项。

在多配置构建中,您可以添加一个“轴”,为其中一个构建参数定义一组值。然后构建脚本可以引用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文