Merge pull request #1 from JanCybulski/addgen

Change program generating test data
Changing filenames

Changing two filenames:
- tests/gen.c    becomes tests/generator.c
- tests/makefile becomes tests/Makefile

That is obviously better to have the main file of the program
`generator` named `generator.c`.

The default naming of makefiles is Makefile with a capital
letter. Conforming to that rule is better.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Renaming 'r' to 'alea'

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Correcting exit codes

The valid exit code are form 0 to 255. Then using -1 means that the
effective exit code will be 0377==255. It isn't accurate. The exit code
of 1 is merely very often used for failure status.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Adding some comments

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Adding a usage function.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Improved formating of code

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
tests:Produce sorted policy with unique rules only

There is no need for tests of sorted policies with non unique rules.
If someone prepares sorted policy, redundancy of rules should also
be removed during sorting.