summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 21:42:18 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 21:42:18 (EDT)
commit6df864ceeb706832d95ad98c54e7f1a7c9db6af1 (patch)
tree694f24f4a06c1eac272c896ce4fca8521e883339 /tests
parentce5af6ac1c69602d0d7135b307dcca0c753d32f1 (diff)
tests/resolve_deps.basic.sh: Convert to TAP
Diffstat (limited to 'tests')
-rw-r--r--tests/local.mk3
-rwxr-xr-xtests/resolve_deps.basic.sh7
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/local.mk b/tests/local.mk
index ecb5847..fd2115a 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -18,7 +18,8 @@ CLEANFILES += $(tests_parse_control_basic_LDADD)
tests_resolve_deps_basic_SOURCES = \
tests/resolve_deps.basic.sh \
- tests/common.sh \
+ tests/aux/common.sh \
+ tests/aux/tap-functions.sh \
src/deps.sh
tests_resolve_deps_basic_LDADD = $(tests_resolve_deps_basic_SOURCES:.sh=.sho)
CLEANFILES += $(tests_resolve_deps_basic_LDADD)
diff --git a/tests/resolve_deps.basic.sh b/tests/resolve_deps.basic.sh
index 3edad56..324eeae 100755
--- a/tests/resolve_deps.basic.sh
+++ b/tests/resolve_deps.basic.sh
@@ -30,14 +30,17 @@ main()
local results=
local test_results=
+ plan_ 2
+
results='foo bar baz qux quux'
test_results="$(resolve_deps "${pkgs}" "${deps}")"
- test_diff "${results}" "${test_results}"
+ is_diff 'resolve_deps' "${results}" "${test_results}"
results="$(printf '%s\n' ${results} | sort)"
test_results="$(printf '%s\n' $(resolve_deps "${pkgs}" "${deps}") | \
sort)"
- test_diff "${results}" "${test_results}"
+ is_diff 'resolve_deps (split into multiple lines)' \
+ "${results}" "${test_results}"
return 0
}