Unverified Commit 80e58241 authored by Christoph Heiss's avatar Christoph Heiss
Browse files

proxmox-backup-client: add passthru.tests.version

parent 5d511d1a
Loading
Loading
Loading
Loading
+21 −3
Original line number Diff line number Diff line
{
  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";