run.sh 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. ###############################################################################
  4. #
  5. # Copyright © International Business Machines Corp., 2009
  6. #
  7. # DESCRIPTION
  8. # Run tests in the current directory.
  9. #
  10. # AUTHOR
  11. # Darren Hart <[email protected]>
  12. #
  13. # HISTORY
  14. # 2009-Nov-9: Initial version by Darren Hart <[email protected]>
  15. # 2010-Jan-6: Add futex_wait_uninitialized_heap and futex_wait_private_mapped_file
  16. # by KOSAKI Motohiro <[email protected]>
  17. #
  18. ###############################################################################
  19. # Test for a color capable console
  20. if [ -z "$USE_COLOR" ]; then
  21. tput setf 7 || tput setaf 7
  22. if [ $? -eq 0 ]; then
  23. USE_COLOR=1
  24. tput sgr0
  25. fi
  26. fi
  27. if [ "$USE_COLOR" -eq 1 ]; then
  28. COLOR="-c"
  29. fi
  30. echo
  31. # requeue pi testing
  32. # without timeouts
  33. ./futex_requeue_pi $COLOR
  34. ./futex_requeue_pi $COLOR -b
  35. ./futex_requeue_pi $COLOR -b -l
  36. ./futex_requeue_pi $COLOR -b -o
  37. ./futex_requeue_pi $COLOR -l
  38. ./futex_requeue_pi $COLOR -o
  39. # with timeouts
  40. ./futex_requeue_pi $COLOR -b -l -t 5000
  41. ./futex_requeue_pi $COLOR -l -t 5000
  42. ./futex_requeue_pi $COLOR -b -l -t 500000
  43. ./futex_requeue_pi $COLOR -l -t 500000
  44. ./futex_requeue_pi $COLOR -b -t 5000
  45. ./futex_requeue_pi $COLOR -t 5000
  46. ./futex_requeue_pi $COLOR -b -t 500000
  47. ./futex_requeue_pi $COLOR -t 500000
  48. ./futex_requeue_pi $COLOR -b -o -t 5000
  49. ./futex_requeue_pi $COLOR -l -t 5000
  50. ./futex_requeue_pi $COLOR -b -o -t 500000
  51. ./futex_requeue_pi $COLOR -l -t 500000
  52. # with long timeout
  53. ./futex_requeue_pi $COLOR -b -l -t 2000000000
  54. ./futex_requeue_pi $COLOR -l -t 2000000000
  55. echo
  56. ./futex_requeue_pi_mismatched_ops $COLOR
  57. echo
  58. ./futex_requeue_pi_signal_restart $COLOR
  59. echo
  60. ./futex_wait_timeout $COLOR
  61. echo
  62. ./futex_wait_wouldblock $COLOR
  63. echo
  64. ./futex_wait_uninitialized_heap $COLOR
  65. ./futex_wait_private_mapped_file $COLOR
  66. echo
  67. ./futex_wait $COLOR
  68. echo
  69. ./futex_requeue $COLOR
  70. echo
  71. ./futex_waitv $COLOR