From d2ae217d0d4eb8208b8868428f51045ab8e8b858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Fri, 26 Jan 2024 12:46:45 +0100 Subject: [PATCH] build(itest): single command integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- flake.nix | 2 +- justfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6018bcd..f088b73 100644 --- a/flake.nix +++ b/flake.nix @@ -123,7 +123,7 @@ # For `nix develop`: devShells.default = pkgs.mkShell { inherit (self.checks.${system}.pre-commit-check) shellHook; - nativeBuildInputs = with pkgs; [rustup toolchain just zip reuse pkg-config openssl vhs]; + nativeBuildInputs = with pkgs; [rustup toolchain just zip reuse pkg-config openssl vhs fish]; }; # For `nix flake check` diff --git a/justfile b/justfile index 9bc0c2c..27e5b30 100644 --- a/justfile +++ b/justfile @@ -310,3 +310,8 @@ itest-live: just run_test_pre "http://rime.cx/v1/flakehub/cafkafk/hello/s/*.tar.gz?version=%3e%3d0.0.1%2c%3c%3d0.0.2-pre.5" @echo "tests passsed :3" + +# Easy itest... idk I don't wanna type something long +etest: + #!/usr/bin/env fish + cargo build && cargo run &; sleep 2; just itest; pkill rime