Skip to content

WIP: ledger wallet tests

Seb Mondet requested to merge sm@ledger-wallet-tests into sm@split-out-flextesa-opam

The tests work with babylon and athens (master) just by pointing at the right executables and using the --protocol-kind and --protocol-hash options.

Here is how it looks for me:

protokind="Athens"
protohashopt=""
if [ "$br" = "zeronet" ] ; then
    protokind="Baby"
    protohashopt="--protocol-hash PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU"
fi
ldgr="ledger://lavish-barracuda-weary-fossa/ed25519/0h/0h"
rlwrap ./src/bin_sandbox/main.exe ledger-wallet "$ldgr" "$@" \
    --root "$root_path" \
    --protocol-kind "$protokind" \
    $protohashopt \
    --tezos-node-binary $tezos_node \
    --tezos-client-binary $tezos_client \
    --tezos-admin-client-binary $tezos_admin

There are also 2 new useful options to limit what the tests do:

--no-rejections
    Do not test ledger rejections.

--only-test=VAL (absent=everything)
    Limit to a family of tests (one of: `everything`, `voting`,
    `none`, `delegation`, `transactions`, `contracts`,
    `batch-transactions`).

There are also a couple more interactive commands:

    ["c0"]
      ->
       Run a tezos-client command on the "C-N000" client.
         Options:
          `(only <name1> <name2>)`:  Restrict the clients by name ,
          `(admin)`:  Use the admin-client instead


    ["rt"|"run-test"]
      ->

        Run a test
        (everything|voting|none|delegation|transactions|contracts|batch-transactions).


    ["bake"] ->  Bake a block with the default baker.
Edited by Seb Mondet

Merge request reports