summary refs log tree commit diff
path: root/pkgs/tools/networking/p2p
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-03-26 20:23:23 +0000
committerJan Malakhovski <oxij@oxij.org>2018-03-30 06:27:25 +0000
commitd0849b6fdde45bd078d980030f5c074d3f55a7d1 (patch)
treeaeb3c7479469c575a3c91206c430afc3412d7d91 /pkgs/tools/networking/p2p
parent23a814e1ad0874313849afea67e1f9357f4c381f (diff)
downloadnixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar.gz
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar.bz2
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar.lz
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar.xz
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.tar.zst
nixlib-d0849b6fdde45bd078d980030f5c074d3f55a7d1.zip
tahoe-lafs: run tests
Diffstat (limited to 'pkgs/tools/networking/p2p')
-rw-r--r--pkgs/tools/networking/p2p/tahoe-lafs/default.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix
index cc5229bcd448..8c0c4a6c5664 100644
--- a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix
+++ b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix
@@ -17,7 +17,7 @@ pythonPackages.buildPythonApplication rec {
 
   outputs = [ "out" "doc" "info" ];
 
-  patchPhase = ''
+  postPatch = ''
     sed -i "src/allmydata/util/iputil.py" \
         -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
 
@@ -32,6 +32,22 @@ pythonPackages.buildPythonApplication rec {
     sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
   '';
 
+  # Remove broken and expensive tests.
+  preConfigure = ''
+    (
+      cd src/allmydata/test
+
+      # Buggy?
+      rm cli/test_create.py test_backupdb.py
+
+      # These require Tor and I2P.
+      rm test_connections.py test_iputil.py test_hung_server.py test_i2p_provider.py test_tor_provider.py
+
+      # Expensive
+      rm test_system.py
+    )
+  '';
+
   nativeBuildInputs = with pythonPackages; [ sphinx texinfo ];
 
   buildInputs = with pythonPackages; [ unzip numpy mock ];
@@ -59,8 +75,7 @@ pythonPackages.buildPythonApplication rec {
   '';
 
   checkPhase = ''
-    # Still broken. ~ C.
-    #   trial allmydata
+    trial --rterrors allmydata
   '';
 
   meta = {