summaryrefslogtreecommitdiffstats
path: root/tests/parse_control.common.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 12:07:15 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 12:07:15 (EST)
commit34a77f7822126263fed5c72aedaa65b58fee94ac (patch)
treea3404e611672f64126298e2f0f6d3398b014851e /tests/parse_control.common.sh
parent84f3cccfb57fc8270b2ae14f0adf2c2ff24cc69b (diff)
parent41f638c961d5c7832e2b18a9f2e45a09b54dc53e (diff)
Merge branch 'feature/use-shld'
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
+}