staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / futex / functional / run.sh
blob1acb6ace1680e8f3d6b3ee2dc528c19ddfdb018e
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
4 ###############################################################################
6 # Copyright © International Business Machines Corp., 2009
8 # DESCRIPTION
9 # Run tests in the current directory.
11 # AUTHOR
12 # Darren Hart <dvhart@linux.intel.com>
14 # HISTORY
15 # 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_file
17 # by KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
19 ###############################################################################
21 # Test for a color capable console
22 if [ -z "$USE_COLOR" ]; then
23 tput setf 7 || tput setaf 7
24 if [ $? -eq 0 ]; then
25 USE_COLOR=1
26 tput sgr0
29 if [ "$USE_COLOR" -eq 1 ]; then
30 COLOR="-c"
34 echo
35 # requeue pi testing
36 # without timeouts
37 ./futex_requeue_pi $COLOR
38 ./futex_requeue_pi $COLOR -b
39 ./futex_requeue_pi $COLOR -b -l
40 ./futex_requeue_pi $COLOR -b -o
41 ./futex_requeue_pi $COLOR -l
42 ./futex_requeue_pi $COLOR -o
43 # with timeouts
44 ./futex_requeue_pi $COLOR -b -l -t 5000
45 ./futex_requeue_pi $COLOR -l -t 5000
46 ./futex_requeue_pi $COLOR -b -l -t 500000
47 ./futex_requeue_pi $COLOR -l -t 500000
48 ./futex_requeue_pi $COLOR -b -t 5000
49 ./futex_requeue_pi $COLOR -t 5000
50 ./futex_requeue_pi $COLOR -b -t 500000
51 ./futex_requeue_pi $COLOR -t 500000
52 ./futex_requeue_pi $COLOR -b -o -t 5000
53 ./futex_requeue_pi $COLOR -l -t 5000
54 ./futex_requeue_pi $COLOR -b -o -t 500000
55 ./futex_requeue_pi $COLOR -l -t 500000
56 # with long timeout
57 ./futex_requeue_pi $COLOR -b -l -t 2000000000
58 ./futex_requeue_pi $COLOR -l -t 2000000000
61 echo
62 ./futex_requeue_pi_mismatched_ops $COLOR
64 echo
65 ./futex_requeue_pi_signal_restart $COLOR
67 echo
68 ./futex_wait_timeout $COLOR
70 echo
71 ./futex_wait_wouldblock $COLOR
73 echo
74 ./futex_wait_uninitialized_heap $COLOR
75 ./futex_wait_private_mapped_file $COLOR