[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing flags to make check targets

From: Rhys Ulerich
Subject: Re: passing flags to make check targets
Date: Fri, 29 Nov 2013 12:40:04 -0600

> My TESTS=  targets can accept flags and data and I would like to pass things
> like files "-f test.dat" to them,
> How do I do that?

I am unsure if it is the party line answer, but I've generally written
a script invoking the binary and added that script to TESTS and

For example, in
I want to invoke my test_diffwave_p3dfft binary several times passing
in arguments.  To do so I've written the file
and used the snippet
    # Filed under check_PROGRAMS so binary is built before test is executed
    # There must be a better way to express this dependency, but this works
    TESTS                        +=
    dist_check_SCRIPTS           +=
    check_PROGRAMS               += test_diffwave_p3dfft

As you can tell from the comment, I suspect there's a better way to
register that needs
built first.

Hope that helps, and please tell me if you find something better,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]