Created an automated test for the /lib/bytes_by_prefix.c

Created a test for the bytes_by_prefix.c file in order to make sure that
everything works well and make it easy to test if some change breaks
something. The UNIT_TEST main method from lib/bytes_by_prefix.c has been
removed as it isn't needed anymore nor compiled by default. Necessary
changes in the makefiles have been done.

Signed-off-by: Marios Makris <marios.makris@gmail.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
4 files changed