Skip to content

Commit

Permalink
feat(test): add getting-started test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipTamb committed Oct 19, 2023
1 parent 0a16a71 commit a2f8716
Showing 3 changed files with 179 additions and 118 deletions.
8 changes: 5 additions & 3 deletions manual-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Automated Test
## What the script does
In this folder there is a python script to automatically test the launch of a zenoh-flow configuration.
In this folder there is a python script to automatically test that zenoh-flow works.

At first the script starts to find the zenoh and zenoh-flow executables and the configuration file paths, this is necessary to build the command to be able to run Zenoh with Zenoh-Flow as plugin.
Furthermore the test makes sure that the zenoh configuration is able to run zenoh-flow as a plugin.
@@ -13,11 +13,13 @@ The script test verifies:
- The example runs correctly.
- That the number of active Zenoh-Flow nodes is equal to the number of nodes declared into the yaml file.

It's possible to test other Zenoh-Flow configurations by inserting in the first lines of the script the path or the name of the zenoh-flow configuration that you want to run.

## How to run
To do this you need to run :
```bash
pip install -r requirements.txt
python3 automated-test.py
```

```bash
usage: automated-test.py -h/--help: to show the script options.
```
Loading

0 comments on commit a2f8716

Please sign in to comment.