-
Notifications
You must be signed in to change notification settings - Fork 603
Unit and Integration Tests
Unit tests for the AVS Device SDK for C++ use the Google Test framework. Use this command to run all unit tests:
make all test
Make sure that all tests pass before you begin integration testing.
If the project was built with the Sensory wake word detector, the following files must be downloaded from GitHub and placed in <source dir>/KWD/inputs/SensoryModels
for the integration tests to run properly:
If the project was built with the KITT.ai wake word detector, the following files must be downloaded from GitHub and placed in <source dir>/KWD/inputs/KittAiModels
:
common.res
-
alexa.umdl
- It's important that you download thealexa.umdl
inresources/alexa/alexa-avs-sample-app
for the KITT.ai unit tests to run properly.
Integration tests ensure that your build can make a request and receive a response from AVS.
- All requests to AVS require auth credentials
- The integration tests for Alerts require your system to be in UTC
Important: Integration tests reference an AlexaClientSDKConfig.json
file, which you must create.
See the Create the AlexaClientSDKConfig.json file
section (above), if you have not already done this.
To run the integration tests use this command:
TZ=UTC make all integration
If your project is built on a GNU/Linux-based platform (Ubuntu, Debian, etc.), there is an optional integration test that tests the ACL for use on slow networks.
This cmake
option is required when you build the SDK:
cmake <absolute-path-to-source> -DNETWORK_INTEGRATION_TESTS=ON –DNETWORK_INTERFACE=eth0
Note: The name of the network interface can be located with this command ifconfig -a
.
IMPORTANT: This test requires root permissions.
If the project was built with the Sensory wake word detector, the following files must be downloaded from GitHub and placed in <source dir>/Integration/inputs/SensoryModels
for the integration tests to run properly:
If the project was built with the KITT.ai wake word detector, the following files must be downloaded from GitHub and placed in <source dir>/Integration/inputs/KittAiModels
for the integration tests to run properly:
common.res
-
alexa.umdl
- It's important that you download thealexa.umdl
inresources/alexa/alexa-avs-sample-app
for the KITT.ai integration tests to run properly.
API Reference
Quick-start Guides
- All Quick-start Guides
- For Android
- Cross-compile for iOS
- Generic Linux
- For macOS
- For Raspberry Pi
- For Ubuntu Linux
- For Windows 64-bit
Other Guides + Optimizations
- Authorizing AVS Device SDK Software with AVS
- Build libcurl with mbed TLS and nghttp2
- Build libcurl with nghttp2 for macOS
- Optimize libcurl for Size
- Runtime Configuration for CA Certificates
- Updating the SDK
Development Kits
Resources