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

tools/memory-model: Add -v flag to jingle7 runs

Adding the -v flag to jingle7 invocations gives much useful information
on why jingle7 didn't like a given litmus test. This commit therefore
adds this flag and saves off any such information into a .err file.

Suggested-by: Luc Maranget <luc.maranget@inria.fr>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

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