Testing 如何禁用Automake';测试驱动程序脚本

Testing 如何禁用Automake';测试驱动程序脚本,testing,automake,Testing,Automake,我们的项目使用autoconf/automake进行配置和构建。构建脚本在Debian Squeeze和Wheezy(automake版本1.11.6)上运行良好,但在更新版本的automake(版本1.14.1)上对Jessie不起作用。当我用新的automake版本运行makedistcheck时,它会失败 make[3]: Entering directory `/tmp/.../_build' /bin/bash: ../autotools/test-driver: No such fi

我们的项目使用autoconf/automake进行配置和构建。构建脚本在Debian Squeeze和Wheezy(automake版本1.11.6)上运行良好,但在更新版本的automake(版本1.14.1)上对Jessie不起作用。当我用新的automake版本运行
makedistcheck
时,它会失败

make[3]: Entering directory `/tmp/.../_build'
/bin/bash: ../autotools/test-driver: No such file or directory
.../_build/../autotools/test-driver: the following mandatory options are missing:
      --test-name --log-file --trs-file
显然,
testdriver
是最新版本的automake引入的一个新脚本

我试图将
autotools/test driver
添加到额外的依赖项中,但如果它存在,
distcheck
将失败

make[3]: Entering directory `/tmp/.../_build'
/bin/bash: ../autotools/test-driver: No such file or directory
.../_build/../autotools/test-driver: the following mandatory options are missing:
      --test-name --log-file --trs-file

如果您能告诉我如何更新构建脚本以使用新版本,或者如何禁用新的automake行为,我将不胜感激。

在顶层运行
automake-a
。通常,您应该有一个
bootstrap
脚本,该脚本使用正确的标志来调用自动工具,用于清除存储库签出,或者在对构建系统进行重大更改时使用


而且不需要设置依赖项,除非您是从模板或其他东西自定义生成
测试驱动程序。

这就是我们目前拥有的。我们运行
aclocal-I自动工具
,然后运行
autoconf
,然后运行
automake——添加缺少的
。这对于标准编译有效,但对于
make distcheck
@PetrPudlák失败,然后尝试从源代码的干净签出。Automake将在找到描述测试的行(即
test=someprogram
)后立即安装
testdriver