# # patch "ChangeLog" # from [e9dcb97d9497577f3dc765d311e07434e5fb5ab7] # to [c7d3af92f2815478f1d5871f8b7f4a5a309dc36c] # # patch "tests/t_netsync_largish_file.at" # from [832ace2e71cec590ff7a998066d50f3a097a78c4] # to [8755303c05b12e8425240a7e2afdab6aac8c1c09] # ======================================================================== --- ChangeLog e9dcb97d9497577f3dc765d311e07434e5fb5ab7 +++ ChangeLog c7d3af92f2815478f1d5871f8b7f4a5a309dc36c @@ -1,5 +1,8 @@ 2005-10-10 Matthew Gregan + * tests/t_netsync_largish_file.at: Tweak the random file + generation so that it's a bit faster on platforms with slow awk + implementations. * netsync.cc: Remove comment stating that our official IANA port should be renamed from 'netsync' to 'monotone'; Tomas sorted this out a while ago. ======================================================================== --- tests/t_netsync_largish_file.at 832ace2e71cec590ff7a998066d50f3a097a78c4 +++ tests/t_netsync_largish_file.at 8755303c05b12e8425240a7e2afdab6aac8c1c09 @@ -7,7 +7,9 @@ # compressed in the monotone database and on the wire. m4_define([LARGISH_FILE_CREATE], [ -awk -- 'BEGIN{srand(5253);for(a=0;a<32*1024*1024;a+=20)printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256);}' > largish +awk -- 'BEGIN{srand(5253);for(a=0;a<1024*1024;a+=20)printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256,rand()*256);}' > largish.tmp +cat largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp largish.tmp > largish +rm -f largish.tmp ])