tools/memory-model: Make judgelitmus.sh ransack .litmus.out files
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 20 Mar 2019 21:37:46 +0000 (14:37 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Feb 2022 01:33:28 +0000 (17:33 -0800)
commitc307464de3c7eb7f474c91c9a53d6c26a2d3105e
tree0c304c7289f8ada201a711d4d502d3cba9771048
parentfa473d89d006bd57aa79b64fb4f6084bb2d5da87
tools/memory-model: Make judgelitmus.sh ransack .litmus.out files

The judgelitmus.sh script currently relies solely on the "Result:"
comment in the .litmus file.  This is problematic when using the --hw
argument, because it is necessary to check the hardware model against
LKMM even in the absence of "Result:" comments.

This commit therefore modifies judgelitmus.sh to check the observation
in a .litmus.out file, in case one was generated by a previous LKMM run.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/scripts/judgelitmus.sh