Commit 72b5f102 authored by Paul E. McKenney's avatar Paul E. McKenney

tools/memory-model: Make judgelitmus.sh handle scripted Result: tag

The scripts that generate the litmus tests in the "auto" directory of
the https://github.com/paulmckrcu/litmus archive place the "Result:"
tag into a single-line ocaml comment, which judgelitmus.sh currently
does not recognize.  This commit therefore makes judgelitmus.sh
recognize both the multiline comment format that it currently does
and the automatically generated single-line format.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 68f7bcab
...@@ -57,10 +57,10 @@ if grep -q '^Flag data-race$' "$LKMM_DESTDIR/$litmusout" ...@@ -57,10 +57,10 @@ if grep -q '^Flag data-race$' "$LKMM_DESTDIR/$litmusout"
then then
datarace_modeled=1 datarace_modeled=1
fi fi
if grep -q '^ \* Result: ' $litmus if grep -q '^[( ]\* Result: ' $litmus
then then
outcome=`grep -m 1 '^ \* Result: ' $litmus | awk '{ print $3 }'` outcome=`grep -m 1 '^[( ]\* Result: ' $litmus | awk '{ print $3 }'`
if grep -m1 '^ \* Result: .* DATARACE' $litmus if grep -m1 '^[( ]\* Result: .* DATARACE' $litmus
then then
datarace_predicted=1 datarace_predicted=1
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment