about summary refs log tree commit diff
path: root/users/zseri/store-ref-scanner/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/zseri/store-ref-scanner/tests.nix')
-rw-r--r--users/zseri/store-ref-scanner/tests.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/users/zseri/store-ref-scanner/tests.nix b/users/zseri/store-ref-scanner/tests.nix
deleted file mode 100644
index a4c82fe3a936..000000000000
--- a/users/zseri/store-ref-scanner/tests.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{ depot, lib, pkgs, ... }:
-
-let
-  parent = depot.users.zseri.store-ref-scanner;
-in
-pkgs.buildRustCrate {
-  pname = "store-ref-scanner-tests";
-  inherit (parent) crateName src version edition;
-  buildTests = true;
-  postInstall = ''
-    set -ex
-    export RUST_BACKTRACE=1
-    # recreate a file hierarchy as when running tests with cargo
-    # the source for test data
-    # build outputs
-    testRoot=target/debug
-    mkdir -p $testRoot
-    chmod +w -R .
-    # test harness executables are suffixed with a hash,
-    # like cargo does this allows to prevent name collision
-    # with the main executables of the crate
-    hash=$(basename $out)
-    ls -lasR $out
-    for file in $out/tests/*; do
-      f=$testRoot/$(basename $file)-$hash
-      cp $file $f
-      $f 2>&1 | tee -a $out/tests.log
-    done
-    rm -rf $out/tests
-    set +ex
-  '';
-}