Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LG-73 CDD API tests using gtest #134

Open
wants to merge 8 commits into
base: feature/LG-73-cdd_api_part1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: make proto example
run: make
working-directory: example/linux/proto-api
- name: install libpaho-mqtt
run: sudo apt install libpaho-mqtt-dev
- name: install needed packages libpaho-mqtt
run: sudo apt-get update && sudo apt-get install -y libpaho-mqtt-dev libgtest-dev
- name: make gateway example
run: make
working-directory: example/linux/gw-example
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@ An example on how to use and extend the library is available from:
To run the tests you will to connect a device running WM's dual mcu api on
your host machine.

Tests require Google Test. On Debian and Ununtu, you can install the package
libgtest-dev.

Build the tests with

```shell
cd test
make
```

Execute the test suite with
When executing the tests, environment variables WPC_SERIAL_PORT and
WPC_WPC_BAUD_RATE should be set. For example:

```shell
./build/meshAPItest
WPC_SERIAL_PORT=/dev/ttyACM0 WPC_BAUD_RATE=125000 ./build/meshAPItest
```

## Contributing
Expand Down
Loading