159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
28 lines
465 B
Nix
28 lines
465 B
Nix
{
|
|
testers,
|
|
|
|
bork,
|
|
cacert,
|
|
git,
|
|
pytest,
|
|
}:
|
|
{
|
|
# a.k.a. `tests.testers.runCommand.bork`
|
|
pytest-network = testers.runCommand {
|
|
name = "bork-pytest-network";
|
|
nativeBuildInputs = [
|
|
bork
|
|
cacert
|
|
git
|
|
pytest
|
|
];
|
|
script = ''
|
|
# Copy the source tree over, and make it writeable
|
|
cp -r ${bork.src} bork/
|
|
find -type d -exec chmod 0755 '{}' '+'
|
|
|
|
pytest -v -m network bork/
|
|
touch $out
|
|
'';
|
|
};
|
|
}
|