autoconf
[Top][All Lists]
Advanced

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

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


From: Peter Johansson
Subject: Re: How to deal with test data in ouf of source tree builds?
Date: Wed, 21 Jun 2017 10:35:33 +1000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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



reply via email to

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