Commit da21ad73 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Update README for new test organization

Now that the tests can be run using `cargo test`, update the
instructions to reflect this.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 577f48a4
Loading
Loading
Loading
Loading
+13 −11
Changes for sim/README.rst: 13 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -26,21 +26,17 @@ submodules within git. To fetch these dependencies the first time::

will clone and check out these trees in the appropriate place.

Building
========
Testing
=======

Once Rust is installed, build cargo by::
The tests are written as unit tests in Rust, and can be built and run
automatically::

  $ cargo build --release
  $ cargo test

this should download and compile the necessary dependencies, compile
the relevant modules from mcuboot, and build the simulator.  The
resulting executable will be placed in ``./target/release/bootsim``
and can be run directly::

  $ ./target/release/bootsim run --device k64f

Calling with ``--help`` will give a more thorough usage.
the relevant modules from mcuboot, build the simulator, and run the
tests.

Debugging
=========
@@ -50,3 +46,9 @@ logging by setting ``RUST_LOG=warn`` or ``RUST_LOG=error`` in the
environment::

  $ RUST_LOG=warn ./target/release/bootsim run ...

It is also possible to run specific tests, for example::

  $ cargo test -- basic_revert

which will run only the `basic_revert` test.