Path: blob/master/tools/memory-model/scripts/checktheselitmus.sh
29266 views
#!/bin/sh1# SPDX-License-Identifier: GPL-2.0+2#3# Invokes checklitmus.sh on its arguments to run the specified litmus4# test and pass judgment on the results.5#6# Usage:7# checktheselitmus.sh -- [ file1.litmus [ file2.litmus ... ] ]8#9# Run this in the directory containing the memory model, specifying the10# pathname of the litmus test to check. The usual parseargs.sh arguments11# can be specified prior to the "--".12#13# This script is intended for use with pathnames that start from the14# tools/memory-model directory. If some of the pathnames instead start at15# the root directory, they all must do so and the "--destdir /" parseargs.sh16# argument must be specified prior to the "--". Alternatively, some other17# "--destdir" argument can be supplied as long as the needed subdirectories18# are populated.19#20# Copyright IBM Corporation, 201821#22# Author: Paul E. McKenney <[email protected]>2324. scripts/parseargs.sh2526ret=027for i in "$@"28do29if scripts/checklitmus.sh $i30then31:32else33ret=134fi35done36if test "$ret" -ne 037then38echo " ^^^ VERIFICATION MISMATCHES" 1>&239else40echo All litmus tests verified as was expected. 1>&241fi42exit $ret434445