如何在测试套件脚本中运行一个automake程序?

问题描述 投票:0回答:0

假设我有一个程序 foo 和a Makefile.am 如下。

bin_PROGRAMS = foo
foo_SOURCES = foo.c

我想写一个测试套件 foo 使用shell脚本,但它需要运行的 foo 程序建立后。比如说。

#!/bin/sh
./foo arg1 arg2

但如果程序被配置为... --program-prefix--program-suffix 因为程序的名字不会是 foo 了。

我怎样才能从shell脚本中调用程序,即使它的名字不是通常的名字?

testing sh gnu automake
© www.soinside.com 2019 - 2024. All rights reserved.