at master 465 B view raw
1{ 2 testers, 3 4 bork, 5 cacert, 6 git, 7 pytest, 8}: 9{ 10 # a.k.a. `tests.testers.runCommand.bork` 11 pytest-network = testers.runCommand { 12 name = "bork-pytest-network"; 13 nativeBuildInputs = [ 14 bork 15 cacert 16 git 17 pytest 18 ]; 19 script = '' 20 # Copy the source tree over, and make it writeable 21 cp -r ${bork.src} bork/ 22 find -type d -exec chmod 0755 '{}' '+' 23 24 pytest -v -m network bork/ 25 touch $out 26 ''; 27 }; 28}