diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parse_control.common.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/parse_control.common.sh b/tests/parse_control.common.sh index b989af3..9eee27b 100644 --- a/tests/parse_control.common.sh +++ b/tests/parse_control.common.sh @@ -36,10 +36,15 @@ para() test_results="${test_results}ΒΆ${LF}" } -parse_control - field para "${req_fields}" <<-EOF - ${packages} - EOF +main() +{ + parse_control - field para "${req_fields}" <<-EOF + ${packages} + EOF + + printf 'Required fields: %s\n\n' "${req_fields}" -printf 'Required fields: %s\n\n' "${req_fields}" + test_diff "${results}" "${test_results}" -test_diff "${results}" "${test_results}" + return 0 +} |