mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 23:02:38 +03:00
test: add option extraTestScript
This allows extending tests.py.
This commit is contained in:
parent
2cf12d8765
commit
e61c743644
@ -42,6 +42,7 @@ name: testConfig:
|
|||||||
builtins.concatStringsSep "\n\n" [
|
builtins.concatStringsSep "\n\n" [
|
||||||
initData
|
initData
|
||||||
(builtins.readFile ./../tests.py)
|
(builtins.readFile ./../tests.py)
|
||||||
|
cfg.test.extraTestScript
|
||||||
# Don't run tests in interactive mode.
|
# Don't run tests in interactive mode.
|
||||||
# is_interactive is set in ../run-tests.sh
|
# is_interactive is set in ../run-tests.sh
|
||||||
''
|
''
|
||||||
|
@ -19,7 +19,11 @@ with lib;
|
|||||||
dictionary variable 'test_data'. The data is exported via JSON.
|
dictionary variable 'test_data'. The data is exported via JSON.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
extraTestScript = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
description = "Extra lines added to the Python test script.";
|
||||||
|
};
|
||||||
container = {
|
container = {
|
||||||
# Forwarded to extra-container. For descriptions, see
|
# Forwarded to extra-container. For descriptions, see
|
||||||
# https://github.com/erikarvstedt/extra-container/blob/master/eval-config.nix
|
# https://github.com/erikarvstedt/extra-container/blob/master/eval-config.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user