Skip to content

Commit

Permalink
Merge pull request #78 from luxonis/gen2-tests-fix
Browse files Browse the repository at this point in the history
Gen2 tests fix
  • Loading branch information
SzabolcsGergely committed Mar 8, 2021
2 parents 9a04745 + 93cb158 commit fe8213c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ cmake --build . --parallel
cmake --build . --parallel --target install
```

## Running tests

To run the tests build the library with the following options
```
mkdir build_tests && cd build_tests
cmake .. -D DEPTHAI_TEST_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON -D DEPTHAI_BUILD_EXAMPLES=ON
cmake --build . --parallel
ctest
```

## Style check

The library uses clang format to enforce a certain style.
Expand Down
10 changes: 9 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,20 @@ hunter_private_data(
LOCATION tiny_yolo_v4_blob
)

# NeuralNetwork node, mobilenet example, 8 shaves
hunter_private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_8shave.blob"
SHA1 "3329bb8f3a9c881ef9756d232055f9d6f38aa07b"
FILE "mobilenet-ssd_openvino_2021.2_8shave.blob"
LOCATION mobilenet_8shaves_blob
)

dai_add_example(camera_mobilenet src/camera_mobilenet_example.cpp)
target_compile_definitions(camera_mobilenet PRIVATE BLOB_PATH="${mobilenet_blob}")

# NeuralNetwork node, webcam input (from host)
dai_add_example(webcam_mobilenet src/webcam_mobilenet_example.cpp)
target_compile_definitions(webcam_mobilenet PRIVATE BLOB_PATH="${mobilenet_blob}")
target_compile_definitions(webcam_mobilenet PRIVATE BLOB_PATH="${mobilenet_8shaves_blob}")

# MJPEG encoding
dai_add_example(mjpeg_encoding src/mjpeg_encoding_example.cpp)
Expand Down
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ endmacro()

# Mobilenet network
hunter_private_data(
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob"
SHA1 "f0e14978b3f77a4f93b9f969cd39e58bb7aef490"
FILE "mobilenet-ssd_openvino_2021.2_6shave.blob"
URL "https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_8shave.blob"
SHA1 "3329bb8f3a9c881ef9756d232055f9d6f38aa07b"
FILE "mobilenet-ssd_openvino_2021.2_8shave.blob"
LOCATION mobilenet_blob
)

Expand Down

0 comments on commit fe8213c

Please sign in to comment.