Skip to content

Commit

Permalink
Adding test template to develop gentoo support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Apr 25, 2024
1 parent 304d24e commit 32cd210
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions neurodocker/cli/tests/test_build_images_with_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,23 @@ def test_json_roundtrip(cmd: str, inputs: str, tmp_path: Path):
stdout, _ = run_fn(img, args=["env"])
assert "CAT=FOO" in stdout
assert "DOG=BAR" in stdout

def test_gentoo_image(tmp_path: Path):
# also add singularity like in the test above

cmd = "neurodocker generate docker"

_TemplateRegistry._reset()
runner = CliRunner()
result = runner.invoke(
generate,
[
cmd,
"--pkg-manager apt",
"--base-image neurodebian:bullseye",
"--ants version=2.4.3",
"--user nonroot"
],
)
assert result.exit_code == 0, result.output
(tmp_path / "specs.json").write_text(result.output)

This comment has been minimized.

Copy link
@yarikoptic

yarikoptic Apr 25, 2024

Member

how valuable is to commit copy/paste of unrelated to gentoo content?

This comment has been minimized.

Copy link
@TheChymera

TheChymera Apr 25, 2024

Author Contributor

it's a work in progress, once this works I can see how it behaves upon editing the file and try to point it to the gentoo file.

0 comments on commit 32cd210

Please sign in to comment.