diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-21 12:11:05 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-21 12:11:05 -0400 |
commit | 5d21c2c6eab632cc519eb23e529c2d985ac04921 (patch) | |
tree | 1d6675040d6ff6ade3457e6133b38a36694eba47 /tests | |
parent | f954efd16b99520720d05abde5ec8ff741faa2dd (diff) | |
download | stasis-5d21c2c6eab632cc519eb23e529c2d985ac04921.tar.gz |
Change signature:
* delivery_gather_tool_versions now returns non-zero if unable to determine a tool's version
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_conda.c | 7 |
1 files changed, 7 insertions, 0 deletions
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[] = { |