diff options
Diffstat (limited to 'nixos/tests/jq.nix')
-rw-r--r-- | nixos/tests/jq.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/tests/jq.nix b/nixos/tests/jq.nix new file mode 100644 index 000000000000..20b67522ee6e --- /dev/null +++ b/nixos/tests/jq.nix @@ -0,0 +1,10 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "jq"; + meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ nequissimus ]; }; + + nodes.jq = { pkgs, ... }: { environment.systemPackages = [ pkgs.jq ]; }; + + testScript = '' + assert "world" in jq.succeed('echo \'{"values":["hello","world"]}\'| jq \'.values[1]\''') + ''; +}) |