Re: Regression tests, benchmark histories (Was: (reiserfs, ext2 resizing patches, etc.))

From: Hans Reiser (hans@reiser.to)
Date: Wed Jun 21 2000 - 06:53:23 EST


You can get many such FS tests from our website (they'll work for ext2 also...
), and we anticipate spending more resources gathering and developing those
tests better in the coming year. Contributions to the test suite will be
gleefully accepted.:)

Hans

Larry McVoy wrote:
>
> > Would it not be helpful to create some regression tests for core
> > subsystems like ext2? Then you could refactor it at will: as long as it
> > still runs the regression tests, you know the change didn't break
> > anything. (Of course, if the change does break something, the
> > regression tests need to be extended, not condemned.)
>
> We have this sort of thing for BitKeeper, we're 12009 lines of shell, and
> it is a huge win.
>
> The smart thing to do is to make it easy to add a test and to run the test.
> We have the infrastructure set up such that you can create tests easily,
> this is a self contained test:
>
> no_logging project
> echo $N Check ci -i -l ..............................................$NL
> echo HHHH > FILE
> bk ci $Q -i -l FILE
> writable FILE || { echo Failed; exit 1; }
> cat > X << EOF
> ======== FILE 1.1 ========
> 1.1
> EOF
> bk undos X > CMP1
> bk prs -d":I:" FILE > CMP2
> cmp -s CMP1 CMP2
> if [ $? -ne 0 ]; then echo Failed.; exit 1; fi
> echo OK
> echo $N Check ci -l .................................................$NL
> echo JJJ >>FILE
> bk ci $Q -y -l FILE
> cat > X << EOF
> ======== FILE 1.1..1.2 ========
> 1.2
> 1.1
> EOF
> bk undos X > CMP1
> writable FILE || { echo Failed; exit 1; }
> bk prs -r1.1.. -d":I:" FILE > CMP2
> cmp -s CMP1 CMP2
> if [ $? -ne 0 ]; then echo Failed.; exit 1; fi
> echo OK
>
> --
> ---
> Larry McVoy lm@bitmover.com http://www.bitmover.com/lm
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:20 EST