On Mon, May 31, 2010 at 06:45:13PM -0400, Martin Owens wrote: > On Mon, 2010-05-31 at 18:36 -0400, Chris Frey wrote: > > > I thought it might be as simple as having some data that btool could read, > > and then do a btool -s... -f... and btool -d... -f... and compare > > the output. > > Sounds like a script, easy to write and easy to make into a standard > test. > > :-)
I'm not sure of this will help, but I added a new -I option to btool, which sorts the database output before dumping to stdout. With this, it may be possible to script some load/save/delete/compare scripts. Also keep in mind the 'brecsum' command if you want to do a very strict data comparison. That is more for backup restore testing though. Let me know if this helps your test scripts. You should be able to create a set of test data, then save it with: btool -d Calendar -f calendar.dat Restore it with: btool -s Calendar -f calendar.dat and the results *should* be the same. :-) - Chris ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel