torture: Choose bzImage location based on architecture
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 6 Mar 2014 22:44:46 +0000 (14:44 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:46:04 +0000 (09:46 -0700)
commitf189cc8c9451aa88bc718c57aa0228d2a7555956
treeeb38382d7002d3ab43ee254b5c20efb11d99c216
parent06188731168bc73e9835f68f0490e5590947db0c
torture: Choose bzImage location based on architecture

Currently, the scripts hard-code arch/x86/boot/bzImage, which does not
work well for other architectures.  This commit therefore provides a
identify_boot_image function that selects the correct bzImage location
relative to the top of the Linux source tree.  This commit also adds a
--bootimage argument that allows selecting some other file, for example,
"vmlinux".

This change requires that the definition of the QEMU variable be
computed earlier in order to identify where to look for the boot image
when it comes time to copy it to the results directory.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
tools/testing/selftests/rcutorture/bin/functions.sh
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
tools/testing/selftests/rcutorture/bin/kvm.sh