Skip to content

Commit e31ccc1

Browse files
committed
torture: Make kvm-find-errors.sh notice missing vmlinux file
Currently, an obtuse compiler diagnostic can fool kvm-find-errors.sh into believing that the build was successful. This commit therefore adds a check for a missing vmlinux file. Note that in the case of repeated torture-test scenarios ("--configs '2*TREE01'"), the vmlinux file will only be present in the first directory, that is, in TREE01 but not TREE01.2. Link: https://lore.kernel.org/lkml/36bd91e4-8eda-5677-7fde-40295932a640@molgen.mpg.de/ Reported-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent b376005 commit e31ccc1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ editor=${EDITOR-vi}
3030
files=
3131
for i in ${rundir}/*/Make.out
3232
do
33+
scenariodir="`dirname $i`"
34+
scenariobasedir="`echo ${scenariodir} | sed -e 's/\.[0-9]*$//'`"
3335
if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i
3436
then
3537
egrep "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags
3638
files="$files $i.diags $i"
39+
elif ! test -f ${scenariobasedir}/vmlinux
40+
then
41+
echo No ${scenariobasedir}/vmlinux file > $i.diags
42+
files="$files $i.diags $i"
3743
fi
3844
done
3945
if test -n "$files"

0 commit comments

Comments
 (0)