1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-23 17:31:11 +01:00

tests/radicle: stub radicle-node

Failing build is blocking CI, test only verifies generated config.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-12-22 01:08:47 -06:00
parent 33cfb19226
commit dad1b85a03
No known key found for this signature in database

View file

@ -1,9 +1,19 @@
{ config, pkgs, ... }:
{
config = {
programs.radicle.enable = true;
test.stubs.radicle-node = {
buildScript = ''
mkdir -p "$out/bin"
cat > "$out/bin/rad" << 'EOF'
#!/bin/sh
# Stub rad command that does nothing
exit 0
EOF
chmod +x "$out/bin/rad"
'';
};
nmt.script = ''
assertFileContent \
home-files/.radicle/config.json \