On Sat Oct 26, 2024 at 1:15 PM IST, Maarten L. Hekkelman wrote:
> For one of my projects (density-fitness) I'd like to have a better 
> autopkgtest that does not require a full installation of libcifpp along 
> with the 750MB of data in components.cif (CCD). So I rewrote the script 
> to run the executable in order to use a small subset of that CCD file. 
> But the autopkgtest cannot find the file which means the script is not 
> run from within the directory where the test files are located.
>
> What is the best approach to fix this? Use the path of the script 
> querying $0? Use some undocumented variable to find the location of the 
> scripts? Include the data into the script and write that out first 
> before running the actual test?

You would need to copy the files to AUTOPKGTEST_TMP dir for them to be
found. The idea is to do the tests in a tmpdir.
I have fixed a patch to salsa, LMK if that makes sense.

BTW the cross-builds are failing due to running mrc from build
architecure. Is this really needed/good to have?
(adding -DUSE_RSRC=OFF makes cross builds pass)

If it does add value, it is fine to have it as is and let cross-builds
fail.

> -maarten

Thanks
Nilesh

Reply via email to