Skip to content

Commit

Permalink
Supply runtime config to command line test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeee committed Aug 23, 2024
1 parent 836e7a9 commit 9e925c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nix/ocaml.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ let
granularBase =
dune-nix.outputs' commonOverrides ./.. allDeps info packageHasSrcApp;
vmOverlays = let
commit = inputs.self.sourceInfo.rev or "<dirty>";
commitShort = builtins.substring 0 8 commit;
cmdLineTest = ''
mina --version
mv _build/default/src/test/command_line_tests/command_line_tests.exe tests.exe
Expand All @@ -145,6 +147,9 @@ let
mkdir -p $TMPDIR
export MINA_LIBP2P_PASS="naughty blue worm"
export MINA_PRIVKEY_PASS="naughty blue worm"
export MINA_KEYS_PATH=genesis_ledgers
mkdir -p $MINA_KEYS_PATH
echo '{"ledger":{"accounts":[]}}' > $MINA_KEYS_PATH/config_${commitShort}.json
./tests.exe --mina-path mina
'';
in [
Expand Down

0 comments on commit 9e925c5

Please sign in to comment.