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

dcm2niix: add DICOM validation tests #170299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbreslow
Copy link
Contributor

@rbreslow rbreslow commented Apr 25, 2022

Description of changes

Add the DICOM validation tests suggested by @neurolabusc that the upstream runs as part of their Travis CI build.

Resolves d3b-center/image-deid-etl#19

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@rbreslow rbreslow self-assigned this Apr 25, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Apr 25, 2022
@@ -55,6 +56,42 @@ stdenv.mkDerivation rec {
"-DZLIB_IMPLEMENTATION=Cloudflare"
];

passthru.tests = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth surfacing that the upstream project fetches the latest version of these repositories every CI run:

https://github.com/rordenlab/dcm2niix/blob/002ebcdb9b2a87de7b883e9ddada3963a1cc2327/.travis.yml#L23-L25

Comment on lines +30 to +29
installPhase = ''
touch "$out"
'';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required for Nix to think the tests are successful. Let me know if there is a more idiomatic way of writing a test case.

@ofborg ofborg bot added the ofborg-internal-error Ofborg encountered an error label Apr 25, 2022
@rbreslow
Copy link
Contributor Author

@ofborg eval

@Mindavi Mindavi removed the ofborg-internal-error Ofborg encountered an error label Apr 25, 2022
@rbreslow rbreslow force-pushed the dcm2niix-tests branch 2 times, most recently from 9e17e86 to ba8fd02 Compare April 25, 2022 23:10
@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 30, 2022
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contribute upstream NixOS package tests
3 participants