/brlcad/tags/rel-7-14-0/bench/try.sh

https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git · Shell · 74 lines · 28 code · 1 blank · 45 comment · 1 complexity · 525e8c0a01953da41c2afa1067ed2950 MD5 · raw file

  1. #!/bin/sh
  2. # T R Y . S H
  3. # BRL-CAD
  4. #
  5. # Copyright (c) 2004-2008 United States Government as represented by
  6. # the U.S. Army Research Laboratory.
  7. #
  8. # Redistribution and use in source and binary forms, with or without
  9. # modification, are permitted provided that the following conditions
  10. # are met:
  11. #
  12. # 1. Redistributions of source code must retain the above copyright
  13. # notice, this list of conditions and the following disclaimer.
  14. #
  15. # 2. Redistributions in binary form must reproduce the above
  16. # copyright notice, this list of conditions and the following
  17. # disclaimer in the documentation and/or other materials provided
  18. # with the distribution.
  19. #
  20. # 3. The name of the author may not be used to endorse or promote
  21. # products derived from this software without specific prior written
  22. # permission.
  23. #
  24. # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
  25. # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  26. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  28. # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  30. # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  31. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  32. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  33. # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  34. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. #
  36. ###
  37. # A Shell script to run the BRL-CAD Benchmark, with output going to
  38. # a framebuffer rather than to a file.
  39. #
  40. # Authors -
  41. # Mike Muuss
  42. # Christopher Sean Morrison
  43. #
  44. # @(#)$Header$ (BRL)
  45. # Ensure /bin/sh
  46. export PATH || (echo "This isn't sh."; sh $0 $*; kill $$)
  47. path_to_this=`dirname $0`
  48. # force locale setting to C so things like date output as expected
  49. LC_ALL=C
  50. TIMEFRAME=1 ; export TIMEFRAME
  51. MAXTIME=1 ; export MAXTIME
  52. ARGS="-F/dev/Xl $*"
  53. if test -f "$path_to_this/run.sh" ; then
  54. $path_to_this/run.sh $ARGS
  55. elif test -f "$path_to_this/benchmark" ; then
  56. $path_to_this/benchmark $ARGS
  57. elif test -f "/usr/brlcad/bin/benchmark" ; then
  58. /usr/brlcad/bin/benchmark $ARGS
  59. fi
  60. # Local Variables:
  61. # mode: sh
  62. # tab-width: 8
  63. # sh-indentation: 4
  64. # sh-basic-offset: 4
  65. # indent-tabs-mode: t
  66. # End:
  67. # ex: shiftwidth=4 tabstop=8