自动工具在测试失败时输出test-suite.log内容

 明年夏天1314520 发布于 2023-02-06 10:28

我有一个基于autotools的项目。当“ make check”目标失败时,我将看到以下内容:

============================================================================
Testsuite summary for 
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/python/test-suite.log
============================================================================
make[5]: *** [test-suite.log] Error 1

到目前为止,这在受限制的构建器(在这种情况下为launchpad构建)中不会发生的情况下是可以的,我只能在其中看到构建日志。受影响目录中的Makefile.am如下所示:

EXTRA_DIST = test_inetdomain.py test_zone.py test_matcher.py test_dispatch.py test_nat.py test_log.py test_session.py test_stacking.py

noinst_SCRIPTS = runtest.sh

TESTS = runalltests.sh

.PHONY: mkzorp
mkzorp:
    make -C ../../zorp 

runtest.sh: mkzorp

我应该向Makefile.am写入什么/应该给autoreconf / autoconf提供什么参数/应该设置哪些环境变量以查看stdout / stderr上的测试输出?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有