Re: How to deal with test data in ouf of source tree builds?

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

 



Hi Paul,


On 6/15/2017 10:06 PM, Paul Menzel wrote:
Dear Autoconf folks,


When doing an out of source build of Unbound, the test suite fails with the error below.

```
test signature verify functions
testpkts error: could not open file testdata/test_signatures.1: No such file or directory
Makefile:304: recipe for target 'test' failed
make: *** [test] Error 1
```

In the source directory there is a directory `testdata`, and that gets referenced incorrectly in `testcode/unitverify.c`.


One solution I've used is to export ${abs_top_srcdir} to config.h and then use that value as prefix in filenames.

Another solution is to create a link to directory testdata when $srcdir != $builddir. There is a macro AC_CONFIG_LNKS that might be useful.

Cheers,
Peter

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux