commit
3ac8480383
|
@ -182,7 +182,6 @@ in
|
||||||
jenkins = handleTest ./jenkins.nix {};
|
jenkins = handleTest ./jenkins.nix {};
|
||||||
jirafeau = handleTest ./jirafeau.nix {};
|
jirafeau = handleTest ./jirafeau.nix {};
|
||||||
jitsi-meet = handleTest ./jitsi-meet.nix {};
|
jitsi-meet = handleTest ./jitsi-meet.nix {};
|
||||||
jq = handleTest ./jq.nix {};
|
|
||||||
k3s = handleTest ./k3s.nix {};
|
k3s = handleTest ./k3s.nix {};
|
||||||
kafka = handleTest ./kafka.nix {};
|
kafka = handleTest ./kafka.nix {};
|
||||||
keepalived = handleTest ./keepalived.nix {};
|
keepalived = handleTest ./keepalived.nix {};
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
||||||
name = "jq";
|
|
||||||
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
|
|
||||||
|
|
||||||
nodes.jq = { pkgs, ... }: { environment.systemPackages = [ pkgs.jq ]; };
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
assert "world" in jq.succeed('echo \'{"values":["hello","world"]}\'| jq \'.values[1]\''')
|
|
||||||
'';
|
|
||||||
})
|
|
|
@ -28,10 +28,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
postInstallCheck = ''
|
postInstallCheck = ''
|
||||||
$bin/bin/jq --help >/dev/null
|
$bin/bin/jq --help >/dev/null
|
||||||
|
$bin/bin/jq -r '.values[1]' <<< '{"values":["hello","world"]}' | grep '^world$' > /dev/null
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) jq; };
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A lightweight and flexible command-line JSON processor";
|
description = "A lightweight and flexible command-line JSON processor";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in New Issue