summaryrefslogtreecommitdiffstats
path: root/tests/resolve_deps.basic.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/resolve_deps.basic.sh
parent84f3cccfb57fc8270b2ae14f0adf2c2ff24cc69b (diff)
parent41f638c961d5c7832e2b18a9f2e45a09b54dc53e (diff)
Merge branch 'feature/use-shld'
Diffstat (limited to 'tests/resolve_deps.basic.sh')
-rwxr-xr-xtests/resolve_deps.basic.sh23
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/resolve_deps.basic.sh b/tests/resolve_deps.basic.sh
index b0c506c..b0b938e 100755
--- a/tests/resolve_deps.basic.sh
+++ b/tests/resolve_deps.basic.sh
@@ -20,23 +20,26 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
-. "${srcdir}/tests/common.sh"
-
-use pkg
-
pkgs='foo bar'
deps="\
foo: baz
bar: qux
baz: quux
"
-results='foo bar baz qux quux'
-test_results="$(resolve_deps "${pkgs}" "${deps}")"
+main()
+{
+ local results=
+ local test_results=
-test_diff "${results}" "${test_results}"
+ results='foo bar baz qux quux'
+ test_results="$(resolve_deps "${pkgs}" "${deps}")"
+ test_diff "${results}" "${test_results}"
-results="$(printf '%s\n' ${results} | sort)"
-test_results="$(printf '%s\n' $(resolve_deps "${pkgs}" "${deps}") | sort)"
+ results="$(printf '%s\n' ${results} | sort)"
+ test_results="$(printf '%s\n' $(resolve_deps "${pkgs}" "${deps}") | \
+ sort)"
+ test_diff "${results}" "${test_results}"
-test_diff "${results}" "${test_results}"
+ return 0
+}