162306a36Sopenharmony_ci#!/bin/sh 262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0+ 362306a36Sopenharmony_ci# 462306a36Sopenharmony_ci# Invokes checklitmus.sh on its arguments to run the specified litmus 562306a36Sopenharmony_ci# test and pass judgment on the results. 662306a36Sopenharmony_ci# 762306a36Sopenharmony_ci# Usage: 862306a36Sopenharmony_ci# checktheselitmus.sh -- [ file1.litmus [ file2.litmus ... ] ] 962306a36Sopenharmony_ci# 1062306a36Sopenharmony_ci# Run this in the directory containing the memory model, specifying the 1162306a36Sopenharmony_ci# pathname of the litmus test to check. The usual parseargs.sh arguments 1262306a36Sopenharmony_ci# can be specified prior to the "--". 1362306a36Sopenharmony_ci# 1462306a36Sopenharmony_ci# This script is intended for use with pathnames that start from the 1562306a36Sopenharmony_ci# tools/memory-model directory. If some of the pathnames instead start at 1662306a36Sopenharmony_ci# the root directory, they all must do so and the "--destdir /" parseargs.sh 1762306a36Sopenharmony_ci# argument must be specified prior to the "--". Alternatively, some other 1862306a36Sopenharmony_ci# "--destdir" argument can be supplied as long as the needed subdirectories 1962306a36Sopenharmony_ci# are populated. 2062306a36Sopenharmony_ci# 2162306a36Sopenharmony_ci# Copyright IBM Corporation, 2018 2262306a36Sopenharmony_ci# 2362306a36Sopenharmony_ci# Author: Paul E. McKenney <paulmck@linux.ibm.com> 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci. scripts/parseargs.sh 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ciret=0 2862306a36Sopenharmony_cifor i in "$@" 2962306a36Sopenharmony_cido 3062306a36Sopenharmony_ci if scripts/checklitmus.sh $i 3162306a36Sopenharmony_ci then 3262306a36Sopenharmony_ci : 3362306a36Sopenharmony_ci else 3462306a36Sopenharmony_ci ret=1 3562306a36Sopenharmony_ci fi 3662306a36Sopenharmony_cidone 3762306a36Sopenharmony_ciif test "$ret" -ne 0 3862306a36Sopenharmony_cithen 3962306a36Sopenharmony_ci echo " ^^^ VERIFICATION MISMATCHES" 1>&2 4062306a36Sopenharmony_cielse 4162306a36Sopenharmony_ci echo All litmus tests verified as was expected. 1>&2 4262306a36Sopenharmony_cifi 4362306a36Sopenharmony_ciexit $ret 44