Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix lookup of DCMTK binaries in multi-config build tree #1169

Merged
merged 8 commits into from
Jan 13, 2024

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Jan 13, 2024

ctkDICOMTester

In commit 2583a4e ("Remove empty build command and set install command empty.", 2014-11-04), the systematic installation of DCMTK during CTK superbuild was disabled. To support looking up binaries in the build tree, commit 0f5da46 ("ENH: Update ctkDICOMTester to lookup DCMTK executables in build tree", 2024-01-12), the directory for searching DCMTK binaries was changed from an install tree to a build tree. While this change was effective for single config builds, it failed in the case of multi-config builds where the exectuables are generated in sub-directories like "Release", "RelWithDebInfo", "MinSizeRel", or "Debug".

Following commit c1d55a1 ("ENH: Streamline test execution setting launch environment (#1168)," 2024-01-13), tests began executing with an updated PATH environment variable. To address the issue, we now expect DCMTK binaries to be automatically located in the PATH.

ctkDICOMApplicationTest1

Follow-up on commit 2583a4e ("Remove empty build command and set install command empty.", 2014-11-04) which disabled the systematic installation of DCMTK during the CTK superbuild.

This addresses the binary lookup issue for ctkDICOMApplicationTest1 on Windows by ensuring that all configuration sub-directories are considered during the lookup and by setting the launch environment using the variable CTK_TEST_LAUNCH_BUILD_ENVIRONMENT_MODIFICATION.

It also fixex ctkDICOMApplicationTest1 on Windows configuring hostname in dcmqrscp.cfg. This addresses the following error reported by the server ():

  I: Association Received (HOSTNAME:CTK_AE -> CTK_AE)
  I: Refusing Association (BadAEService)

where HOSTNAME corresponds to the actual hostname.

ctkDICOMRetrieve

Resolve invocation error in ctkDICOMApplicationTest1 for ctkDICOMRetrieve

Fixes the reporting of argument conversion errors in "ctkDICOMRetrieve" and ensures
correct arguments are passed when calling it from "ctkDICOMApplicationTest1."

Initially, the test reported the error:
Could not convert 11112 to an integer for the calledPoint.

After addressing the reporting of argument conversion errors, a subsequent error was
reported, which helped identify the proper fix:
Could not convert localhost to an integer for the calledPoint.

Related

jcfr added 2 commits January 13, 2024 05:57
…build tree

In commit 2583a4e ("Remove empty build command and set install command
empty.", 2014-11-04), the systematic installation of DCMTK during CTK
superbuild was disabled. To support looking up binaries in the build tree,
commit 0f5da46 ("ENH: Update ctkDICOMTester to lookup DCMTK executables in
build tree", 2024-01-12), the directory for searching DCMTK binaries was
changed from an install tree to a build tree. While this change was effective
for single config builds, it failed in the case of multi-config builds where
the exectuables are generated in sub-directories like "Release", "RelWithDebInfo",
"MinSizeRel", or "Debug".

Following commit c1d55a1 ("ENH: Streamline test execution setting launch
environment (commontk#1168)," 2024-01-13), tests began executing with an updated
PATH environment variable. To address the issue, we now expect DCMTK binaries
to be automatically located in the PATH.
…ndows

Follow-up on commit 2583a4e ("Remove empty build command and set install
command empty.", 2014-11-04) which disabled the systematic installation of
DCMTK during the CTK superbuild.

This commit addresses the binary lookup issue for ctkDICOMApplicationTest1 on
Windows by ensuring that all configuration sub-directories are considered during
the lookup.
@jcfr jcfr force-pushed the fix-lookup-of-dcmtk-binaries-windows branch from d35264d to a43da9b Compare January 13, 2024 10:59
@jcfr jcfr force-pushed the fix-lookup-of-dcmtk-binaries-windows branch from 8d96400 to 9de390e Compare January 13, 2024 11:14
@jcfr jcfr enabled auto-merge (rebase) January 13, 2024 11:16
@jcfr jcfr disabled auto-merge January 13, 2024 11:17
jcfr added 5 commits January 13, 2024 06:25
…MRetrieve

Fixes the reporting of argument conversion errors in "ctkDICOMRetrieve" and ensures
correct arguments are passed when calling it from "ctkDICOMApplicationTest1."

Initially, the test reported the error:
"Could not convert 11112 to an integer for the calledPoint."

After addressing the reporting of argument conversion errors, a subsequent error was
reported, which helped identify the proper fix:
"Could not convert localhost to an integer for the calledPoint."
Check for process exit code and introduce `run_process` and `wait_for_finished`
convenience functions.
…dcmqrscp.cfg

This addresses the following error reported by the server ():

  I: Association Received (HOSTNAME:CTK_AE -> CTK_AE)
  I: Refusing Association (BadAEService)

where HOSTNAME corresponds to the actual hostname.
@jcfr jcfr force-pushed the fix-lookup-of-dcmtk-binaries-windows branch from ced3c3c to 502be12 Compare January 13, 2024 15:55
@jcfr jcfr merged commit 6f7d7dc into commontk:master Jan 13, 2024
3 checks passed
@jcfr jcfr deleted the fix-lookup-of-dcmtk-binaries-windows branch January 13, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant