run.sh 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #!/bin/sh
  2. ###############################################################################
  3. #
  4. # Copyright © International Business Machines Corp., 2009
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # DESCRIPTION
  12. # Run tests in the current directory.
  13. #
  14. # AUTHOR
  15. # Darren Hart <dvhart@linux.intel.com>
  16. #
  17. # HISTORY
  18. # 2009-Nov-9: Initial version by Darren Hart <dvhart@linux.intel.com>
  19. # 2010-Jan-6: Add futex_wait_uninitialized_heap and futex_wait_private_mapped_file
  20. # by KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
  21. #
  22. ###############################################################################
  23. # Test for a color capable console
  24. if [ -z "$USE_COLOR" ]; then
  25. tput setf 7 || tput setaf 7
  26. if [ $? -eq 0 ]; then
  27. USE_COLOR=1
  28. tput sgr0
  29. fi
  30. fi
  31. if [ "$USE_COLOR" -eq 1 ]; then
  32. COLOR="-c"
  33. fi
  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
  59. echo
  60. ./futex_requeue_pi_mismatched_ops $COLOR
  61. echo
  62. ./futex_requeue_pi_signal_restart $COLOR
  63. echo
  64. ./futex_wait_timeout $COLOR
  65. echo
  66. ./futex_wait_wouldblock $COLOR
  67. echo
  68. ./futex_wait_uninitialized_heap $COLOR
  69. ./futex_wait_private_mapped_file $COLOR