thermal: use %d to print S32 parameters
[linux/fpc-iii.git] / tools / testing / selftests / futex / functional / run.sh
blobe87dbe2a0b0d2b4f09b73e37192ffff53ad3a5ae
1 #!/bin/sh
3 ###############################################################################
5 # Copyright © International Business Machines Corp., 2009
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.
12 # DESCRIPTION
13 # Run tests in the current directory.
15 # AUTHOR
16 # Darren Hart <dvhart@linux.intel.com>
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>
23 ###############################################################################
25 # Test for a color capable console
26 if [ -z "$USE_COLOR" ]; then
27 tput setf 7
28 if [ $? -eq 0 ]; then
29 USE_COLOR=1
30 tput sgr0
33 if [ "$USE_COLOR" -eq 1 ]; then
34 COLOR="-c"
38 echo
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
65 echo
66 ./futex_requeue_pi_mismatched_ops $COLOR
68 echo
69 ./futex_requeue_pi_signal_restart $COLOR
71 echo
72 ./futex_wait_timeout $COLOR
74 echo
75 ./futex_wait_wouldblock $COLOR
77 echo
78 ./futex_wait_uninitialized_heap $COLOR
79 ./futex_wait_private_mapped_file $COLOR