4 # A directory in a device different from that where the tests are run
8 # Begin an individual test
11 COUNT=`expr $COUNT + 1`
17 NAME="$1 (cross device)"
19 rm -rf testdir $TMPDIR/testdir
20 mkdir -p testdir $TMPDIR/testdir
24 # End an individual test
35 rm -rf testdir $TMPDIR/testdir
38 # Make a file that can later be verified
45 # Verify that the file specified is correct
48 if [ -f $2 ] && echo "$1-$1" | diff -q - $2
56 # Make a fifo that can later be verified
62 # Verify that the file specified is correct
73 # Make a directory that can later be verified
80 # Verify that the directory specified is correct
91 # A part of a test succeeds
97 # A part of a test fails
103 # Run all tests locally and across devices
105 for FS in '' $TMPDIR/testdir/
113 begin 'Move files into directory'
122 begin 'Move file from directory to file'
129 begin 'Move file from directory to directory'
131 mkdir -p ${FS}db1/db2/db3
133 mv da1/da2/da3/fa ${FS}db1/db2/db3/fb
134 ckf fa ${FS}db1/db2/db3/fb
137 begin 'Rename directory'
143 begin 'Move directory to directory name'
145 mkdir -p ${FS}db1/db2/db3
146 mv da1/da2/da3/da ${FS}db1/db2/db3/db
147 ckd da ${FS}db1/db2/db3/db
150 begin 'Move directory to directory'
152 mkdir -p ${FS}db1/db2/db3
153 mv da1/da2/da3/da ${FS}db1/db2/db3
154 ckd da ${FS}db1/db2/db3/da
157 begin 'Move directory to existing directory'
159 mkdir -p ${FS}db1/db2/db3/da
160 mv da1/da2/da3/da ${FS}db1/db2/db3
161 ckd da ${FS}db1/db2/db3/da
170 begin 'Move fifos into directory'
179 begin 'Move fifo from directory to fifo'
186 begin 'Move fifo from directory to directory'
188 mkdir -p ${FS}db1/db2/db3
190 mv da1/da2/da3/fa ${FS}db1/db2/db3/fb
191 ckp fa ${FS}db1/db2/db3/fb