summaryrefslogtreecommitdiffstats
path: root/tests/parse_control.common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parse_control.common.sh')
-rw-r--r--tests/parse_control.common.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/parse_control.common.sh b/tests/parse_control.common.sh
index 1549ae0..9eee27b 100644
--- a/tests/parse_control.common.sh
+++ b/tests/parse_control.common.sh
@@ -18,11 +18,6 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
-. "${srcdir}/tests/common.sh"
-
-use output
-use control
-
load_locale
HT=' '
@@ -41,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
+}