Generate random input for testing Nyctergatis Markup Engine.
- Author:
- Yves Piguet.
- Copyright:
- 2011-2013, Yves Piguet.
nmerandom Usage
This program filters standard input and writes the result to sandard output. It can be called as follows to convert file readme.nme to HTML file readme.html:
Here is the list of options it supports:
--ascii
ASCII output (default: random bytes)
--cr
CR (0x0D) for end-of-line (default: random)
--crlf
CRLF (0x0D 0x0A) for end-of-line (default: random)
--help
help message
--lf
LF (0x0A) for end-of-line (default: random)
--maxlinelength
max number of characters per line, or 0 for no limit
--seed
seed of the pseudorandom generator (default: 1)
--size
approximate size of output in bytes
To test nme in bash (Bourne Again Shell):
do
./nmerandom --lf --ascii --size 10000 --seed $s | (./nme --test || echo $s)
./nmerandom --lf --ascii --size 10000 --seed $s | (./nme --checkhooks || echo $s)
done
Definition in file NMERandomGen.c.