From 5d21c2c6eab632cc519eb23e529c2d985ac04921 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 21 Oct 2024 12:11:05 -0400 Subject: Change signature: * delivery_gather_tool_versions now returns non-zero if unable to determine a tool's version --- tests/test_conda.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/test_conda.c b/tests/test_conda.c index 2ed869a..c379216 100644 --- a/tests/test_conda.c +++ b/tests/test_conda.c @@ -126,6 +126,13 @@ void test_conda_index() { STASIS_ASSERT(conda_index("channel") == 0, "cannot index a simple conda channel"); } +void test_delivery_gather_tool_versions() { + int status = delivery_gather_tool_versions(&ctx); + STASIS_ASSERT(status == 0, "Failed to gather tool versions"); + STASIS_ASSERT(!isempty(ctx.conda.tool_version), "conda version is empty"); + STASIS_ASSERT(!isempty(ctx.conda.tool_build_version), "conda_build version is empty"); +} + int main(int argc, char *argv[]) { STASIS_TEST_BEGIN_MAIN(); STASIS_TEST_FUNC *tests[] = { -- cgit