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

tools/memory-model: Make runlitmus.sh check for jingle errors

It turns out that the jingle7 tool is currently a bit picky about
the litmus tests it is willing to process. This commit therefore
ensures that jingle7 failures are reported.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+5
+5
tools/memory-model/scripts/runlitmus.sh
··· 69 69 # Generate the assembly code and run herd7 on it. 70 70 gen_theme7 -n 10 -map $mapfile -call Linux.call > $themefile 71 71 jingle7 -theme $themefile $litmus > $LKMM_DESTDIR/$hwlitmus 2> $T/$hwlitmusfile.jingle7.out 72 + if grep -q "Generated 0 tests" $T/$hwlitmusfile.jingle7.out 73 + then 74 + echo ' !!! ' jingle7 failed, no $hwlitmus generated 75 + exit 253 76 + fi 72 77 /usr/bin/time $LKMM_TIMEOUT_CMD herd7 $LKMM_DESTDIR/$hwlitmus > $LKMM_DESTDIR/$hwlitmus.out 2>&1 73 78 74 79 exit $?