diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-11-13 22:59:54 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-11-16 18:19:54 +0100 |
commit | f9aefa2d5fb3f6aad25a907939ee872c828b33d0 (patch) | |
tree | 51c87ff2ca17cb4aabf456446a14c43446956219 /tests | |
parent | 94d92c7796a3dd50c27d532315f7d497ac99f08e (diff) | |
download | guix-f9aefa2d5fb3f6aad25a907939ee872c828b33d0.tar guix-f9aefa2d5fb3f6aad25a907939ee872c828b33d0.tar.gz |
daemon: Add 'built-in-builders' RPC.
* nix/libstore/builtins.cc (builtinBuilderNames): New function.
* nix/libstore/builtins.hh (builtinBuilderNames): New declaration.
* nix/libstore/worker-protocol.hh (PROTOCOL_VERSION): Bump to 0x160.
(WorkerOp)[wopBuiltinBuilders]: New value.
* nix/nix-daemon/nix-daemon.cc (performOp): Handle it.
* guix/store.scm (operation-id)[built-in-builders]: New value.
* guix/store.scm (read-arg): Add 'string-list'.
(built-in-builders): New procedure.
* tests/derivations.scm ("built-in-builders"): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/derivations.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/derivations.scm b/tests/derivations.scm index 449fb47832..2b5aa796d4 100644 --- a/tests/derivations.scm +++ b/tests/derivations.scm @@ -211,6 +211,10 @@ (= (stat:ino (lstat file1)) (stat:ino (lstat file2)))))))) +(test-equal "built-in-builders" + '("download") + (built-in-builders %store)) + (test-assert "unknown built-in builder" (let ((drv (derivation %store "ohoh" "builtin:does-not-exist" '()))) (guard (c ((nix-protocol-error? c) |