Skip to content

Commit

Permalink
Merge pull request #5986 from oasisprotocol/martin/fix/localnet/docs
Browse files Browse the repository at this point in the history
docs/: Fix outdated localnet docs
  • Loading branch information
martintomazic authored Jan 7, 2025
2 parents 23c38d2 + 72abf37 commit 4aa7157
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
Empty file added .changelog/5986.trivial.md
Empty file.
17 changes: 0 additions & 17 deletions docs/development-setup/oasis-net-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,6 @@ and supports reading, writing, and fetching string values associated with the
given key. To learn how to create your own runtime, see the sources of the
[simple-keyvalue example] and [Building a runtime] chapter in the Oasis SDK.

Finally, to test Oasis node, we will run a test client written specifically
for the `simple-keyvalue` runtime. The client sends a few keys with associated
values and fetches them back over RPC defined in the runtime's API. Execute the
client as follows (substituting the socket path from your log output) in a
different terminal:

```
./target/default/release/simple-keyvalue-client \
--runtime-id 8000000000000000000000000000000000000000000000000000000000000000 \
--node-address unix:/tmp/oasis-net-runner530668299/net-runner/network/client-0/internal.sock
```

By default, Oasis node is configured with a 30-second epoch, so you may
initially need to wait for the first epoch to pass before the test client will
make any progress. For more information on writing your own client, see the
[Oasis SDK](https://github.com/oasisprotocol/oasis-sdk).

<!-- markdownlint-disable line-length -->
[the default network fixture]: https://github.com/oasisprotocol/oasis-core/tree/master/go/oasis-net-runner/fixtures/default.go
[simple-keyvalue example]: https://github.com/oasisprotocol/oasis-core/tree/master/tests/runtimes/simple-keyvalue
Expand Down
16 changes: 14 additions & 2 deletions go/oasis-test-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@ oasis-test-runner list
If no flags are provided, all scenarios are executed.

To run a specific scenario, e.g `e2e/runtime/runtime-dynamic`, pass the
`--scenario` flag (or its short version, `-s`) followed by scenario's name:
`--scenario` flag (or its short version, `-s`) followed by scenario's name,
together with the relevant parameters:

```bash
oasis-test-runner --scenario e2e/runtime/runtime-dynamic
oasis-test-runner \
--e2e.node.binary go/oasis-node/oasis-node \
--e2e/runtime.runtime.binary_dir.default ./target/default/release \
--log.level debug \
--scenario e2e/runtime/runtime-dynamic
```

To avoid manually setting parameters, you may run the CI script from the root
instead:

```bash
.buildkite/scripts/test_e2e.sh --scenario=e2e.runtime.runtime-dynamic
```

## Benchmarking
Expand Down

0 comments on commit 4aa7157

Please sign in to comment.