Match whole line for cmpver pattern
Add tests for parse_cmpver