summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 23:01:08 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 23:01:08 (EDT)
commitce58a3016e2daae10ac529aa6397f59c0a6fa339 (patch)
treecebdbad6a5b262b7cfbf115ea5588a0e924ca69a /tests
parentae335af2a58b5ba04d130c65dee0b11649334ca7 (diff)
tests/parse_control.common.sh: Convert to TAP
Diffstat (limited to 'tests')
-rw-r--r--tests/local.mk3
-rw-r--r--tests/parse_control.common.sh4
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/local.mk b/tests/local.mk
index fd2115a..2920d12 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -10,7 +10,8 @@ TESTS = $(check_PROGRAMS)
tests_parse_control_basic_SOURCES = \
tests/parse_control.basic.sh \
tests/parse_control.common.sh \
- tests/common.sh \
+ tests/aux/common.sh \
+ tests/aux/tap-functions.sh \
src/output.sh \
src/control.sh
tests_parse_control_basic_LDADD = $(tests_parse_control_basic_SOURCES:.sh=.sho)
diff --git a/tests/parse_control.common.sh b/tests/parse_control.common.sh
index 9eee27b..c8a413c 100644
--- a/tests/parse_control.common.sh
+++ b/tests/parse_control.common.sh
@@ -38,13 +38,15 @@ para()
main()
{
+ plan_ 1
+
parse_control - field para "${req_fields}" <<-EOF
${packages}
EOF
printf 'Required fields: %s\n\n' "${req_fields}"
- test_diff "${results}" "${test_results}"
+ is_diff 'parse_control() paragraphs' "${results}" "${test_results}"
return 0
}