-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test template to develop gentoo support
- Loading branch information
1 parent
304d24e
commit 32cd210
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
TheChymera
Author
Contributor
|
how valuable is to commit copy/paste of unrelated to gentoo content?