fsxtest02 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. #
  3. # Copyright (c) 2001 Silicon Graphics, Inc. All Rights Reserved.
  4. # Copyright (c) International Business Machines Corp., 2001
  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. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  14. # the GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. #
  20. #
  21. #
  22. # Proper error checking and result reporting still needed
  23. #
  24. # usage: fsxtest02 $1
  25. # $1 number of operations to perform
  26. #Uncomment line below for debugging
  27. #set -x
  28. TCbin=${TCbin:-`pwd`}
  29. TCtmp=${TCtmp:-/tmp/fsxtest2.$$}
  30. mkdir -p $TCtmp 2>/dev/null
  31. touch $TCtmp/testfile
  32. $TCbin/fsx-linux -N $1 $TCtmp/testfile
  33. RESULT=$?
  34. # report the results
  35. if [ $RESULT -eq "0" ]; then
  36. echo "PASS: fsxtest02 $1 $2 $3"
  37. else
  38. echo "FAIL: fsxtest02 $1 $2 $3"
  39. fi
  40. rm -rf $TCtmp
  41. exit $RESULT