diff options
Diffstat (limited to 'nixos/tests/awscli.nix')
-rw-r--r-- | nixos/tests/awscli.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/tests/awscli.nix b/nixos/tests/awscli.nix new file mode 100644 index 00000000000..e6741fcf141 --- /dev/null +++ b/nixos/tests/awscli.nix @@ -0,0 +1,17 @@ +import ./make-test-python.nix ({ pkgs, ...} : { + name = "awscli"; + meta = with pkgs.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") + ''; +}) |