gpt4 book ai didi

d - 如何使用 DSSS 和 GDC 运行单元测试?

转载 作者:行者123 更新时间:2023-12-04 03:16:57 25 4
gpt4 key购买 nike

我对 D 非常陌生,仍在努力配置我的工具链。

我正在运行 Ubuntu Karmic,并希望将 DSSS 与 GDC 和 Tango 或 TangoBos 一起使用。

到目前为止,我从 these repositories 的 Ubuntu 存储库、DSSS、Tango 和 TangoBos 安装了 GDC我可以使用 dsss + gdc + tangobos 进行编译。

根据 DSSS 文档,应该可以使用

$ dsss build --test

但在我的系统上, --test 参数被忽略。我有 dss 最新版本(0.78),它的内联帮助不包括任何关于单元测试的内容。

运行 ldc --unittest 工作正常(尽管我不确切知道它选择了哪个库)。

有没有办法使用与编译相同的编译器和库来运行我的单元测试?

如果是这样,有没有办法自动化测试或者我必须每个模块运行它?

最佳答案

据我所知,在 Karmic 的某个时候,Ubuntu 的 gdc 安装开始忽略诸如“--foo”之类的参数。

观察:

$ gdc --not-a-real-option
gdc: no input files

对比
$ gdc -not-a-real-option
gdc: unrecognized option '-not-a-real-option'
gdc: no input files

所以在 Lucid dsss 版本 0.76,gdc (Ubuntu 1:1.046-4.3.4-3ubuntu1) 4.3.4,
dsss build -test 

或者
dsss build -unittest

应该用单元测试编译

关于d - 如何使用 DSSS 和 GDC 运行单元测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2381284/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com