about summary refs log tree commit diff
path: root/users/zseri/store-ref-scanner/tests.nix
diff options
context:
space:
mode:
authorzseri <zseri.devel@ytrizja.de>2022-04-11T07·43+0200
committerzseri <zseri.devel@ytrizja.de>2022-04-11T07·59+0000
commitf6e12d9e78158c666a87b037824dc876b4b4316b (patch)
tree86b61b1c2b694a88b895dcd691a72cbf2432bf69 /users/zseri/store-ref-scanner/tests.nix
parent2c54c8cfaa7ef1b7c6c9fd13b26b5ab1e85db947 (diff)
chore(zseri/s-r-sc): prepare for publishing on crates.io r/3940
Change-Id: Iaa9aab04a14dc2a62c5427e796d3df49bd31f9c3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5442
Tested-by: BuildkiteCI
Reviewed-by: zseri <zseri.devel@ytrizja.de>
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
-  '';
-}