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

Re: [patches] Running tests while cross-compiling



Mark Hatle <mark.hatle@xxxxxxxxxxxxx> writes:
> I see that a shared filesystem is required, but I do have one question.
>  Does the system use the system glibc to run the tests or the version in
> the build directory?

The version in the build directory.  All tests are run by invoking the
ld-linux.so.3 in the build tree explicitly, passing it a
--library-path option referring to the build tree, and then naming the
executable.  So the tests should be independent of the dynamic linker
and libraries installed on the test system's /lib and /usr/lib.

For example:

GCONV_PATH=$objdir/default/iconvdata LC_ALL=C NLSPATH="$objdir/default/catgets/%l/%N.cat" LANG=de $srcdir/scripts/cross-test-ssh.sh morphy $objdir/default/elf/ld-linux.so.3 --library-path $objdir/default:$objdir/default/math:$objdir/default/elf:$objdir/default/dlfcn:$objdir/default/nss:$objdir/default/nis:$objdir/default/rt:$objdir/default/resolv:$objdir/default/crypt:$objdir/default/nptl $objdir/default/catgets/tst-catgets  > $objdir/default/catgets/tst-catgets.out