18c2ecf20Sopenharmony_ci#!/bin/sh 28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci############################################################################### 58c2ecf20Sopenharmony_ci# 68c2ecf20Sopenharmony_ci# Copyright © International Business Machines Corp., 2009 78c2ecf20Sopenharmony_ci# 88c2ecf20Sopenharmony_ci# DESCRIPTION 98c2ecf20Sopenharmony_ci# Run tests in the current directory. 108c2ecf20Sopenharmony_ci# 118c2ecf20Sopenharmony_ci# AUTHOR 128c2ecf20Sopenharmony_ci# Darren Hart <dvhart@linux.intel.com> 138c2ecf20Sopenharmony_ci# 148c2ecf20Sopenharmony_ci# HISTORY 158c2ecf20Sopenharmony_ci# 2009-Nov-9: Initial version by Darren Hart <dvhart@linux.intel.com> 168c2ecf20Sopenharmony_ci# 2010-Jan-6: Add futex_wait_uninitialized_heap and futex_wait_private_mapped_file 178c2ecf20Sopenharmony_ci# by KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 188c2ecf20Sopenharmony_ci# 198c2ecf20Sopenharmony_ci############################################################################### 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci# Test for a color capable console 228c2ecf20Sopenharmony_ciif [ -z "$USE_COLOR" ]; then 238c2ecf20Sopenharmony_ci tput setf 7 || tput setaf 7 248c2ecf20Sopenharmony_ci if [ $? -eq 0 ]; then 258c2ecf20Sopenharmony_ci USE_COLOR=1 268c2ecf20Sopenharmony_ci tput sgr0 278c2ecf20Sopenharmony_ci fi 288c2ecf20Sopenharmony_cifi 298c2ecf20Sopenharmony_ciif [ "$USE_COLOR" -eq 1 ]; then 308c2ecf20Sopenharmony_ci COLOR="-c" 318c2ecf20Sopenharmony_cifi 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciecho 358c2ecf20Sopenharmony_ci# requeue pi testing 368c2ecf20Sopenharmony_ci# without timeouts 378c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR 388c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b 398c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -l 408c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -o 418c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l 428c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -o 438c2ecf20Sopenharmony_ci# with timeouts 448c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -l -t 5000 458c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l -t 5000 468c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -l -t 500000 478c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l -t 500000 488c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -t 5000 498c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -t 5000 508c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -t 500000 518c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -t 500000 528c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -o -t 5000 538c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l -t 5000 548c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -o -t 500000 558c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l -t 500000 568c2ecf20Sopenharmony_ci# with long timeout 578c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -b -l -t 2000000000 588c2ecf20Sopenharmony_ci./futex_requeue_pi $COLOR -l -t 2000000000 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ciecho 628c2ecf20Sopenharmony_ci./futex_requeue_pi_mismatched_ops $COLOR 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciecho 658c2ecf20Sopenharmony_ci./futex_requeue_pi_signal_restart $COLOR 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ciecho 688c2ecf20Sopenharmony_ci./futex_wait_timeout $COLOR 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciecho 718c2ecf20Sopenharmony_ci./futex_wait_wouldblock $COLOR 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ciecho 748c2ecf20Sopenharmony_ci./futex_wait_uninitialized_heap $COLOR 758c2ecf20Sopenharmony_ci./futex_wait_private_mapped_file $COLOR 76