On Mon, 18 Jul 2016, Martin Liška wrote: > Well, I can imaging a guard which will test whether > "$objdir/../../params.options" file exits, and if so, then the tests are > executed? Is it acceptable approach?
The correct way to test for build-tree testing is [info exists TESTING_IN_BUILD_TREE]. When testing outside the build tree, you should not assume anything about directories outside of the test and source directories, meaning you should not test for existence of paths in $objdir/../ in that case. (The preferable approach is to factor out the code generating this file so it can be run from the testsuite. Then you don't need to distinguish build-tree and other testing at all.) -- Joseph S. Myers jos...@codesourcery.com