Say I have a program foo
and a Makefile.am
as follows:
bin_PROGRAMS = foo
foo_SOURCES = foo.c
I would like to write a test suite for foo
using sh
scripts, but it requires running the foo
program after it is built. For example:
#!/bin/sh
./foo arg1 arg2
But this won't work if the program is configured with --program-prefix
or --program-suffix
because the name of the program wouldn't be foo
anymore.
How can I call the program from a shell script, even if its name isn't what it normally would be?
Aucun commentaire:
Enregistrer un commentaire