awscli: Add test
This commit is contained in:
parent
360a14dcf0
commit
4196aa9660
|
@ -28,6 +28,7 @@ in
|
||||||
atd = handleTest ./atd.nix {};
|
atd = handleTest ./atd.nix {};
|
||||||
avahi = handleTest ./avahi.nix {};
|
avahi = handleTest ./avahi.nix {};
|
||||||
avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
|
avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
|
||||||
|
awscli = handleTest ./awscli.nix { };
|
||||||
babeld = handleTest ./babeld.nix {};
|
babeld = handleTest ./babeld.nix {};
|
||||||
bazarr = handleTest ./bazarr.nix {};
|
bazarr = handleTest ./bazarr.nix {};
|
||||||
bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
|
bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
|
name = "awscli";
|
||||||
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
|
maintainers = [ nequissimus ];
|
||||||
|
};
|
||||||
|
|
||||||
|
machine = { pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = [ pkgs.awscli ];
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript =
|
||||||
|
''
|
||||||
|
assert "${pkgs.python3Packages.botocore.version}" in machine.succeed("aws --version")
|
||||||
|
assert "${pkgs.awscli.version}" in machine.succeed("aws --version")
|
||||||
|
'';
|
||||||
|
})
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, nixosTests
|
||||||
, python3
|
, python3
|
||||||
, groff
|
, groff
|
||||||
, less
|
, less
|
||||||
|
@ -64,7 +65,11 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
rm $out/bin/aws.cmd
|
rm $out/bin/aws.cmd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.python = py; # for aws_shell
|
passthru = {
|
||||||
|
python = py; # for aws_shell
|
||||||
|
|
||||||
|
tests = { inherit (nixosTests) awscli; };
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://aws.amazon.com/cli/";
|
homepage = "https://aws.amazon.com/cli/";
|
||||||
|
|
Loading…
Reference in New Issue