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, 1 Dec 2021 01:48:14 +0000 (17:48 -0800)
commit11860b4d3df405e8ac0302935cf0d9bc2500d885
tree97084be490425a4627d300622b92729a79beb2ad
parent1edc47907cdfb2c7fd634f9f268849822a245004
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