run.sh 990 B

123456789101112131415161718192021222324252627282930313233
  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 all tests under the functional, performance, and stress directories.
  13. # Format and summarize the results.
  14. #
  15. # AUTHOR
  16. # Darren Hart <dvhart@linux.intel.com>
  17. #
  18. # HISTORY
  19. # 2009-Nov-9: Initial version by Darren Hart <dvhart@linux.intel.com>
  20. #
  21. ###############################################################################
  22. # Test for a color capable shell and pass the result to the subdir scripts
  23. USE_COLOR=0
  24. tput setf 7 || tput setaf 7
  25. if [ $? -eq 0 ]; then
  26. USE_COLOR=1
  27. tput sgr0
  28. fi
  29. export USE_COLOR
  30. (cd functional; ./run.sh)