brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 5ccd599 Raw
85 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.0-or-later3 4###############################################################################5#6#   Copyright © International Business Machines  Corp., 20097#8# DESCRIPTION9#      Run tests in the current directory.10#11# AUTHOR12#      Darren Hart <dvhart@linux.intel.com>13#14# HISTORY15#      2009-Nov-9: Initial version by Darren Hart <dvhart@linux.intel.com>16#      2010-Jan-6: Add futex_wait_uninitialized_heap and futex_wait_private_mapped_file17#                  by KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>18#19###############################################################################20 21# Test for a color capable console22if [ -z "$USE_COLOR" ]; then23    tput setf 7 || tput setaf 724    if [ $? -eq 0 ]; then25        USE_COLOR=126        tput sgr027    fi28fi29if [ "$USE_COLOR" -eq 1 ]; then30    COLOR="-c"31fi32 33 34echo35# requeue pi testing36# without timeouts37./futex_requeue_pi $COLOR38./futex_requeue_pi $COLOR -b39./futex_requeue_pi $COLOR -b -l40./futex_requeue_pi $COLOR -b -o41./futex_requeue_pi $COLOR -l42./futex_requeue_pi $COLOR -o43# with timeouts44./futex_requeue_pi $COLOR -b -l -t 500045./futex_requeue_pi $COLOR -l -t 500046./futex_requeue_pi $COLOR -b -l -t 50000047./futex_requeue_pi $COLOR -l -t 50000048./futex_requeue_pi $COLOR -b -t 500049./futex_requeue_pi $COLOR -t 500050./futex_requeue_pi $COLOR -b -t 50000051./futex_requeue_pi $COLOR -t 50000052./futex_requeue_pi $COLOR -b -o -t 500053./futex_requeue_pi $COLOR -l -t 500054./futex_requeue_pi $COLOR -b -o -t 50000055./futex_requeue_pi $COLOR -l -t 50000056# with long timeout57./futex_requeue_pi $COLOR -b -l -t 200000000058./futex_requeue_pi $COLOR -l -t 200000000059 60 61echo62./futex_requeue_pi_mismatched_ops $COLOR63 64echo65./futex_requeue_pi_signal_restart $COLOR66 67echo68./futex_wait_timeout $COLOR69 70echo71./futex_wait_wouldblock $COLOR72 73echo74./futex_wait_uninitialized_heap $COLOR75./futex_wait_private_mapped_file $COLOR76 77echo78./futex_wait $COLOR79 80echo81./futex_requeue $COLOR82 83echo84./futex_waitv $COLOR85