1. Put all the test data files into their own rpm, built from their own
src.rpm separate from any installed programs of any kind. It's not so
hard to completely disable all post-processing for the whole .spec, e.g.:
%define __spec_install_post %{nil}
The rpm containing the test suite can Require: the test-data rpm.
2. Fake out rpm by unpacking in %post and using %ghost.
That is, include in the rpm a /usr/lib/frysk/test-data.tar.bz2 file.
Use e.g.:
tar cf - files... | bzip2 -9 > test-data.tar.bz2
tar tjf test-data.tar.bz2 | sed 's/^/%ghost /' > datalist
%files -f datalist
/usr/lib/frysk/test-data.tar.bz2
/usr/lib/frysk/test-data
%post
tar -jf /usr/lib/frysk/test-data.tar.bz2 -x -C /usr/lib/frysk/test-data
3. Avoid the problem entirely. Just include test-data.tar.bz2 in the rpm.
Make the test procedure (top driving shell script or whatever) do:
mkdir temp-place-for-test-run
tar -C temp-place-for-test-run -xf /usr/lib/frysk/test-data.tar.bz2
run-tests --sysroot=temp-place-for-test-run
rm -rf temp-place-for-test-run
I would tend towards #3 I think.
Thanks,
Roland