1#!/bin/sh 2 3############################################################################### 4# 5# Copyright © International Business Machines Corp., 2009 6# 7# This program is free software; you can redistribute it and/or modify 8# it under the terms of the GNU General Public License as published by 9# the Free Software Foundation; either version 2 of the License, or 10# (at your option) any later version. 11# 12# DESCRIPTION 13# Run tests in the current directory. 14# 15# AUTHOR 16# Darren Hart <dvhart@linux.intel.com> 17# 18# HISTORY 19# 2009-Nov-9: Initial version by Darren Hart <dvhart@linux.intel.com> 20# 2010-Jan-6: Add futex_wait_uninitialized_heap and futex_wait_private_mapped_file 21# by KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 22# 23############################################################################### 24 25# Test for a color capable console 26if [ -z "$USE_COLOR" ]; then 27 tput setf 7 || tput setaf 7 28 if [ $? -eq 0 ]; then 29 USE_COLOR=1 30 tput sgr0 31 fi 32fi 33if [ "$USE_COLOR" -eq 1 ]; then 34 COLOR="-c" 35fi 36 37 38echo 39# requeue pi testing 40# without timeouts 41./futex_requeue_pi $COLOR 42./futex_requeue_pi $COLOR -b 43./futex_requeue_pi $COLOR -b -l 44./futex_requeue_pi $COLOR -b -o 45./futex_requeue_pi $COLOR -l 46./futex_requeue_pi $COLOR -o 47# with timeouts 48./futex_requeue_pi $COLOR -b -l -t 5000 49./futex_requeue_pi $COLOR -l -t 5000 50./futex_requeue_pi $COLOR -b -l -t 500000 51./futex_requeue_pi $COLOR -l -t 500000 52./futex_requeue_pi $COLOR -b -t 5000 53./futex_requeue_pi $COLOR -t 5000 54./futex_requeue_pi $COLOR -b -t 500000 55./futex_requeue_pi $COLOR -t 500000 56./futex_requeue_pi $COLOR -b -o -t 5000 57./futex_requeue_pi $COLOR -l -t 5000 58./futex_requeue_pi $COLOR -b -o -t 500000 59./futex_requeue_pi $COLOR -l -t 500000 60# with long timeout 61./futex_requeue_pi $COLOR -b -l -t 2000000000 62./futex_requeue_pi $COLOR -l -t 2000000000 63 64 65echo 66./futex_requeue_pi_mismatched_ops $COLOR 67 68echo 69./futex_requeue_pi_signal_restart $COLOR 70 71echo 72./futex_wait_timeout $COLOR 73 74echo 75./futex_wait_wouldblock $COLOR 76 77echo 78./futex_wait_uninitialized_heap $COLOR 79./futex_wait_private_mapped_file $COLOR 80