From 80e58241b3fa9ff9de9945fb0eb36d836a2c41b0 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Fri, 30 Jun 2023 16:08:25 +0200 Subject: proxmox-backup-client: add passthru.tests.version Signed-off-by: Christoph Heiss --- .../backup/proxmox-backup-client/default.nix | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'pkgs/applications/backup/proxmox-backup-client') diff --git a/pkgs/applications/backup/proxmox-backup-client/default.nix b/pkgs/applications/backup/proxmox-backup-client/default.nix index 0b77fbf2eca76..3c737f8044b00 100644 --- a/pkgs/applications/backup/proxmox-backup-client/default.nix +++ b/pkgs/applications/backup/proxmox-backup-client/default.nix @@ -1,6 +1,19 @@ -{ - lib, fetchgit, rustPlatform, pkg-config, openssl, fuse3, libuuid, - acl, libxcrypt, git, installShellFiles, sphinx, stdenv, fetchpatch +{ lib, + fetchgit, + rustPlatform, + pkg-config, + openssl, + fuse3, + libuuid, + acl, + libxcrypt, + git, + installShellFiles, + sphinx, + stdenv, + fetchpatch, + testers, + proxmox-backup-client, }: rustPlatform.buildRustPackage rec { @@ -92,6 +105,11 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ git pkg-config rustPlatform.bindgenHook installShellFiles sphinx ]; buildInputs = [ openssl fuse3 libuuid acl libxcrypt ]; + passthru.tests.version = testers.testVersion { + package = proxmox-backup-client; + command = "${pname} version"; + }; + meta = with lib; { description = "The command line client for Proxmox Backup Server"; homepage = "https://pbs.proxmox.com/docs/backup-client.html"; -- cgit 1.4.1