]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Some fixups when testing on IRIX.
authorTim Shimmin <tes@sgi.com>
Mon, 21 Jun 2004 08:20:53 +0000 (08:20 +0000)
committerTim Shimmin <tes@sgi.com>
Mon, 21 Jun 2004 08:20:53 +0000 (08:20 +0000)
The xfs_db push command semantics seem to have changed on Linux
since the port. On IRIX after a push, the state - such as the type -
which is pushed on the stack, no longer seems to be kept current.

003
010
010.out
010.out.irix [deleted file]
010.out.linux [deleted file]

diff --git a/003 b/003
index 45d14f8674a8883b9211fecb4c4f64349334982d..6e91168c75e0131c2a8d03c5706a0c16b930580a 100755 (executable)
--- a/003
+++ b/003
@@ -89,9 +89,14 @@ test_done
 echo "=== TEST 5 ==="
 xfs_db -r -c 'inode 128' -c 'push' -c 'type' $TEST_DEV >$tmp.out 2>&1
 test_done
-if ! grep -q "current type is \"inode\"" $tmp.out
-then
-       cat $tmp.out
+# On IRIX we lose state after a "push" operation and don't
+# know the type is still inode
+# Probably not worth changing xfs_db on IRIX for this.
+if [ "$HOSTOS" != "IRIX" ]; then
+    if ! grep -q "current type is \"inode\"" $tmp.out
+    then
+           cat $tmp.out
+    fi
 fi
 
 echo "=== TEST 6 ==="
diff --git a/010 b/010
index 8b646f982da68297d68a5939f1801fe31b0d1eb1..0c6ca58a5138ee0c94929703051a804fea4a2d69 100755 (executable)
--- a/010
+++ b/010
@@ -67,9 +67,6 @@ _filter_dbtest()
 . ./common.rc
 . ./common.filter
 
-# link correct .out file
-_link_out_file $seq.out
-
 [ -x $here/src/dbtest ] || _notrun "dbtest was not built for this platform"
 
 # real QA test starts here
@@ -82,7 +79,7 @@ rm -f $seq.full
 
 cd $testdir
 
-$here/src/dbtest -l 5 -n 3000 2>&1 | tee -a $here/$seq.full | _filter_dbtest
+$here/src/dbtest -l 5 -n 1000 2>&1 | tee -a $here/$seq.full | _filter_dbtest
 
 # success, all done
 exit
diff --git a/010.out b/010.out
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..56a3ccb9e8a68957fe9216b721796523164d9789 100644 (file)
--- a/010.out
+++ b/010.out
@@ -0,0 +1,58 @@
+QA output created by 010
+dbtest v1.0
+
+Creating database containing 1000 records...
+       performing lookups for 5 iterations...
+       using BLEEP as seed for srandom()...
+
+       
+There were BLEEP duplicate checksums generated
+
+Performing lookups on database...
+
+       Sequential lookups...
+
+
+       Random lookups...
+
+Lookups succeeded...
+
+Performing lookups on database...
+
+       Sequential lookups...
+
+
+       Random lookups...
+
+Lookups succeeded...
+
+Performing lookups on database...
+
+       Sequential lookups...
+
+
+       Random lookups...
+
+Lookups succeeded...
+
+Performing lookups on database...
+
+       Sequential lookups...
+
+
+       Random lookups...
+
+Lookups succeeded...
+
+Performing lookups on database...
+
+       Sequential lookups...
+
+
+       Random lookups...
+
+Lookups succeeded...
+
+Cleaning up database...
+       
+There were BLEEP duplicate checksums generated
diff --git a/010.out.irix b/010.out.irix
deleted file mode 100644 (file)
index f38fe1e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-QA output created by 010
-dbtest v1.0
-
-Creating database containing 500 records...
-       performing lookups for 5 iterations...
-       using BLEEP as seed for srandom()...
-
-       
-There were BLEEP duplicate checksums generated
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Cleaning up database...
-       
-There were BLEEP duplicate checksums generated
diff --git a/010.out.linux b/010.out.linux
deleted file mode 100644 (file)
index 6472a5d..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-QA output created by 010
-dbtest v1.0
-
-Creating database containing 3000 records...
-       performing lookups for 5 iterations...
-       using BLEEP as seed for srandom()...
-
-       
-There were BLEEP duplicate checksums generated
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Performing lookups on database...
-
-       Sequential lookups...
-
-
-       Random lookups...
-
-Lookups succeeded...
-
-Cleaning up database...
-       
-There were BLEEP duplicate checksums generated