• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
27#Uncomment line below for debugging
28#set -x
29
30TCbin=${TCbin:-`pwd`}
31TCtmp=${TCtmp:-/tmp/fsxtest2.$$}
32
33mkdir -p $TCtmp 2>/dev/null
34touch $TCtmp/testfile
35$TCbin/fsx-linux -N $1 $TCtmp/testfile
36RESULT=$?
37# report the results
38if [ $RESULT -eq "0" ]; then
39  echo "PASS: fsxtest02 $1 $2 $3"
40else
41  echo "FAIL: fsxtest02 $1 $2 $3"
42fi
43rm -rf $TCtmp
44exit $RESULT
45