[darcs-users] can we get rid of perl requirement in our test suite?
Erik Schnetter
schnetter at cct.lsu.edu
Thu May 14 18:44:55 UTC 2009
On May 14, 2009, at 13:38:42, Salvatore Insalaco wrote:
> On Thu, May 14, 2009 at 6:53 PM, Eric Kow <kowey at darcs.net> wrote:
>> It'd be nice if we could make just one last push to get rid of these.
>> Ideas?
>
> I tried to substitute the 1mb file generation with something like
> that:
>
> while true; do echo -n "a"; done | head -c 1048000
>
> but it is really really slow :).
# Create a file with 1 byte
echo -n a > file
# Quadruple the file size 10 times
for i in 1 2 3 4 5 6 7 8 9 10; do
cat file file file file > file2
mv file2 file
done
# The Unix classic for creating a file with all zeros
dd if=/dev/zero of=file bs=1k count=1024
-erik
--
Erik Schnetter <schnetter at cct.lsu.edu> http://www.cct.lsu.edu/~eschnett/
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from <http://pgp.mit.edu>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090514/9d919e53/attachment.pgp>
More information about the darcs-users
mailing list