Skip to contentSkip to conversation

xfstests: remove comments about creator in new

PATCH In review Eryu Guan 2 participants 9 messages Apr 7, 2013 – Apr 10, 2013

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/3 xfstests: remove comments about creator in new

We have removed creator/owner info from each test case, remove the 'creator' comment in template too.

---
 new | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
new +1 -1
index 2bc1e8f..f712892 100755
@@ -104,7 +104,7 @@ cat <<End-of-File >$id
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #-----------------------------------------------------------------------
 #
-# creator
+
 seq=\`basename \$0\`
 seqres=\$RESULT_DIR/\$seq
 echo "QA output created by \$seq"
Signature · 6 lines
1.8.1.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
author
#1 lore raw

PATCH 2/3 xfstests: replace $seq.full with $seqres.full in ext4/305 and generic/308

We use $seqres.full to record verbose output now, replace $seq.full with $seqres.full in ext4/305 and generic/308.

---
 tests/ext4/305    | 6 +++---
 tests/generic/308 | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
tests/ext4/305 +3 -3
index bf9d9cd..eee461a 100644
@@ -46,12 +46,12 @@ _supported_os Linux
 
 _require_scratch
 
-rm -f $seq.full
+rm -f $seqres.full
 echo "Silence is golden"
 
 DEV_BASENAME=$(basename $(readlink -f $SCRATCH_DEV))
-echo "Start test on device $SCRATCH_DEV, basename $DEV_BASENAME" >$seq.full
-_scratch_mkfs >>$seq.full 2>&1
+echo "Start test on device $SCRATCH_DEV, basename $DEV_BASENAME" >$seqres.full
+_scratch_mkfs >>$seqres.full 2>&1
 
 while true;do
 	mount $SCRATCH_DEV $SCRATCH_MNT
tests/generic/308 +3 -3
index 0db093a..8037c08 100644
@@ -45,7 +45,7 @@ testfile=$TEST_DIR/testfile.$seq
 _supported_fs generic
 _supported_os Linux
 
-rm -f $seq.full
+rm -f $seqres.full
 echo "Silence is golden"
 
 block_size=`stat -f -c %s $TEST_DIR`
@@ -58,11 +58,11 @@ block_size=`stat -f -c %s $TEST_DIR`
 
 # Create a sparse file with an extent lays at one block before old s_maxbytes
 offset=$(((2**32 - 2) * $block_size))
-$XFS_IO_PROG -f -c "pwrite $offset $block_size" -c fsync $testfile >$seq.full 2>&1
+$XFS_IO_PROG -f -c "pwrite $offset $block_size" -c fsync $testfile >$seqres.full 2>&1
 
 # Write to the block after the extent just created
 offset=$(((2**32 - 1) * $block_size))
-$XFS_IO_PROG -f -c "pwrite $offset $block_size" -c fsync $testfile >>$seq.full 2>&1
+$XFS_IO_PROG -f -c "pwrite $offset $block_size" -c fsync $testfile >>$seqres.full 2>&1
 
 # Got here without hitting BUG_ON(), test passed
 status=0
Signature · 6 lines
1.8.1.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#3 lore raw

Re: [PATCH 2/3] xfstests: replace $seq.full with $seqres.full in ext4/305 and generic/308

In reply to Eryu Guan

Eryu,

Thanks for the patch, it has been committed.

--Rich

commit 2bfce6d36f9fb1cba6a0c677a82c08a6f305db62

Author: Eryu Guan <[email protected]>
Date:   Sun Apr 7 10:39:06 2013 +0000

xfstests: replace $seq.full with $seqres.full in ext4/305 and
generic/308

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

author
#4 lore raw

PATCH 3/3 xfstests generic 310: fix common file path and other cleanups

In reply to Eryu Guan

1. add one space between # and test description
2. remove creator/owner info
3. fix common/rc and common/filter path so they can be sourced correctly
4. no need to remove $seq.full cause it's not used(or if verbose output is needed, $seqres.full should be used)

---
 tests/generic/310 | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
tests/generic/310 +5 -7
index ef51422..35baa23 100644
@@ -1,8 +1,8 @@
 #! /bin/bash
 # FS QA Test No. 310
 #
-#Check if there are two threads,one keeps calling read() or lseek(), and
-#the other calling readdir(), both on the same directory fd.
+# Check if there are two threads,one keeps calling read() or lseek(), and
+# the other calling readdir(), both on the same directory fd.
 #
 # Based on a testcase from Li Zefan <[email protected]>.
 #
@@ -25,10 +25,9 @@
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #-----------------------------------------------------------------------
 #
-# creator
[email protected]
 
 seq=`basename $0`
+seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 status=1	# failure is the default!
@@ -40,8 +39,8 @@ _cleanup()
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
-. ./common.rc
-. ./common.filter
+. ./common/rc
+. ./common/filter
 
 # real QA test starts here
 _supported_fs generic
@@ -71,6 +70,5 @@ _test_lseek
 
 # success, all done
 echo "*** done"
-rm -f $seq.full
 status=0
 exit
Signature · 6 lines
1.8.1.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#5 lore raw

Re: [PATCH 3/3] xfstests generic 310: fix common file path and other cleanups

Hi Eryu,

Thanks for this cleanup patch. I was going to revert patch "bbaf78c0" which introduced test generic/310 but will wait and see if Zhao will provide more information which could be added to this patch.

Quoted 1 line · Eryu Guan

1. add one space between # and test description

The rest of the changes look good, sorry I missed them when I reviewed ;).

Quoted 15 lines

2. remove creator/owner info
3. fix common/rc and common/filter path so they can be sourced correctly
4. no need to remove $seq.full cause it's not used(or if verbose output is needed, $seqres.full should be used)

---
  tests/generic/310 | 12 +++++-------
  1 file changed, 5 insertions(+), 7 deletions(-)
tests/generic/310 +0 -0
index ef51422..35baa23 100644

tests/generic/310 line 6

Quoted 8 lines
tests/generic/310 +2 -2
@@ -1,8 +1,8 @@
  #! /bin/bash
  # FS QA Test No. 310
  #
-#Check if there are two threads,one keeps calling read() or lseek(), and
-#the other calling readdir(), both on the same directory fd.
+# Check if there are two threads,one keeps calling read() or lseek(), and
+# the other calling readdir(), both on the same directory fd.
  #

Hi Zhao,

I did see both threads running at the same time, but the more I look at this, the more I am a loss as to what this test is doing.

Will you expand this a little please. I should have asked for more justification the first time I reviewed this. Please provide what bug this is testing or what failure/weakness this test exposes. If there is a commit this is related to, please reference it.

Thanks
--Rich

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

author
#6 lore raw

Re: [PATCH 3/3] xfstests generic 310: fix common file path and other cleanups

Quoted 6 lines · Rich Johnston

Hi Eryu,

Thanks for this cleanup patch. I was going to revert patch "bbaf78c0" which introduced test generic/310 but will wait and see if Zhao will provide more information which could be added to this patch.

Make sense, thanks for the review.

Quoted 33 lines · Eryu Guan
Quoted 1 line

1. add one space between # and test description

The rest of the changes look good, sorry I missed them when I reviewed ;).

Quoted 15 lines

2. remove creator/owner info
3. fix common/rc and common/filter path so they can be sourced correctly
4. no need to remove $seq.full cause it's not used(or if verbose output is needed, $seqres.full should be used)

---
 tests/generic/310 | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
tests/generic/310 +0 -0
index ef51422..35baa23 100644

tests/generic/310 line 6

Quoted 8 lines
tests/generic/310 +2 -2
@@ -1,8 +1,8 @@
 #! /bin/bash
 # FS QA Test No. 310
 #
-#Check if there are two threads,one keeps calling read() or lseek(), and
-#the other calling readdir(), both on the same directory fd.
+# Check if there are two threads,one keeps calling read() or lseek(), and
+# the other calling readdir(), both on the same directory fd.
 #

Hi Zhao,

Quoted 8 lines

I did see both threads running at the same time, but the more I look at this, the more I am a loss as to what this test is doing.

Will you expand this a little please. I should have asked for more justification the first time I reviewed this. Please provide what bug
this is testing or what failure/weakness this test exposes. If there is a commit this is related to, please reference it.

I didn't look into the test deeply but I found the test seems to run for hours on my 3.9-rc4 test box, not sure what goes wrong here.

Thanks,
Eryu

Quoted 3 lines

Thanks
--Rich

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs