-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow passing ExternalProgram objects as test() and add_install_script() arguments. #3552
Comments
Hum, we can't change this now because it would break too many build files, but we could add a new |
Actually, why are you using |
I'm not asking for API change, just to align the documentation to avoid that others go mad trying to figure out why they don't obtain what they are excepting :) Anyway... I'm using .path() probably because I'm doing something ugly like this:
I want to test my python code, inside the
Hope all that things doesn't looks too silly ;) |
Even in your case, when you pass a |
I wasn't clever or brave enough to test this way :D but now it doesn't seems to work, look below, maybe I misunderstood your suggestion:
gives
gives
|
Well, that's a bug then, it should work that way. :) |
Also I have updated the documentation in git. It should show up on the main website on the next sync. |
Thank you very much for the documentation updates and to indicate me (so quickly) the right way to use find_program() in test()! |
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
In the same vein, the following:
fails with:
Is this the same problem? Using |
Yeah. Can you open a new issue for that? |
This was wrongly closed, the linked PR only implemented this for |
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: mesonbuild#3552 Signed-off-by: David Gibson <[email protected]>
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: #3552 Signed-off-by: David Gibson <[email protected]>
http://mesonbuild.com/Reference-manual.html#external-program-object states that path() returns an array:
but it seems to me that it return a string, as if I try to concatenate it with an array like this:
find_program('my program').path() + ['some', 'other', 'stuff']
I get this error:
[find_program('my program').path(), 'some', 'other', 'stuff']
works fine.
The text was updated successfully, but these errors were encountered: