]> git.notmuchmail.org Git - notmuch/commit - test/random-corpus.c
test: add generator for random "stub" messages
authorDavid Bremner <bremner@debian.org>
Sun, 5 Aug 2012 18:13:12 +0000 (15:13 -0300)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Dec 2012 19:51:32 +0000 (15:51 -0400)
commit76fa93e2a2002940335c941e76e94d69abd71fe9
treeb7887f136d608312a4fd3fd92bc0f0c871ae4dea
parent990e3988ce0f8ad1993e91635a46904c3c75fff5
test: add generator for random "stub" messages

Initial use case is testing dump and restore, so we only have
message-ids and tags.

The message ID's are nothing like RFC compliant, but it doesn't seem
any harder to roundtrip random UTF-8 strings than RFC-compliant ones.

Tags are UTF-8, even though notmuch is in principle more generous than
that.

updated for id:m2wr04ocro.fsf@guru.guru-group.fi

- talk about Unicode value rather some specific encoding
- call talloc_realloc less times
test/.gitignore
test/Makefile.local
test/basic
test/random-corpus.c [new file with mode: 0644]