From 813382276dd9e463efaa7c36d46bd7577a9bd11e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Dec 2015 10:56:17 -0500 Subject: tests/parse_control.common.sh: Define main() --- (limited to 'tests') 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 +} -- cgit v0.9.1