Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

torture: Make torture.sh --allmodconfig testing fail on warnings

Currently, the torture.sh --allmodconfig testing looks solely at the
exit code from the kernel build, and thus fails to flag many compiler
warnings. This commit therefore checks the kernel-build output for
compiler diagnostics.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>

authored by

Paul E. McKenney and committed by
Neeraj Upadhyay (AMD)
748d7923 17f4698a

+4
+4
tools/testing/selftests/rcutorture/bin/torture.sh
··· 438 438 make -j$MAKE_ALLOTED_CPUS >> "$amcdir/Make.out" 2>&1 439 439 retcode="$?" 440 440 echo $retcode > "$amcdir/Make.exitcode" 441 + if grep -E -q "Stop|ERROR|Error|error:|warning:" < "$amcdir/Make.out" 442 + then 443 + retcode=99 444 + fi 441 445 buildphase='"make"' 442 446 fi 443 447 if test "$retcode" -eq 0