Skip to content

Commit 0ab39a5

Browse files
committed
Adding workflow to run openvx conformance tests in CI
1 parent 2c11341 commit 0ab39a5

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
- name: OpenVX Integration Test
4040
run: VX_CL_SOURCE_DIR=$GITHUB_WORKSPACE/kernels/opencl bazel run //tests:vx_test
4141

42+
# Run OpenVX Conformance tests
43+
- name: OpenVX Conformance Tests
44+
run: ./test_vx_conformance.sh
45+
4246
# Test the project
4347
# - name: Run Bazel tests
4448
# run: |

test_vx_conformance.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#! /bin/bash
2+
3+
mkdir -p cts/build
4+
5+
# Set the environment variables
6+
export OPENVX_DIR=$PWD
7+
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$OPENVX_DIR/bazel-bin:$OPENVX_DIR/bazel-bin/vxu:$OPENVX_DIR/bazel-bin/targets/c_model:$OPENVX_DIR/bazel-bin/targets/extras:$OPENVX_DIR/bazel-bin/targets/debug:$OPENVX_DIR/bazel-bin/targets/opencl:$OPENVX_DIR/cts/build/lib/
8+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPENVX_DIR/bazel-bin:$OPENVX_DIR/bazel-bin/vxu:$OPENVX_DIR/bazel-bin/targets/c_model:$OPENVX_DIR/bazel-bin/targets/extras:$OPENVX_DIR/bazel-bin/targets/debug:$OPENVX_DIR/bazel-bin/targets/opencl:$OPENVX_DIR/cts/build/lib/
9+
export VX_TEST_DATA_PATH=$HOME/Projects/OpenVX-sample-impl/cts/test_data/
10+
export VX_CL_SOURCE_DIR=$OPENVX_DIR/kernels/opencl/
11+
12+
# Build the conformance test suite
13+
cd cts/build
14+
cmake \
15+
-DCMAKE_BUILD_TYPE=Debug \
16+
-DOPENVX_INCLUDES=$OPENVX_DIR/include \
17+
-DOPENVX_LIBRARIES=$OPENVX_DIR/bazel-bin/libopenvx.dylib\;$OPENVX_DIR/bazel-bin/vxu/libvxu.dylib\;pthread\;dl\;m \
18+
-DOPENVX_USE_USER_DATA_OBJECT=ON \
19+
-DOPENVX_USE_IX=ON \
20+
-DOPENVX_USE_U1=ON \
21+
-DOPENVX_USE_NN=ON \
22+
-DOPENVX_CONFORMANCE_NNEF_IMPORT=ON \
23+
-DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON \
24+
..
25+
26+
# -DOPENVX_USE_NN_16=ON \
27+
# -DOPENVX_CONFORMANCE_VISION=ON \
28+
# -DOPENVX_USE_ENHANCED_VISION=ON \
29+
# -DOPENVX_USE_PIPELINING=ON \
30+
# -DOPENVX_USE_STREAMING=ON \
31+
32+
cmake --build .
33+
34+
# Run the conformance test suite
35+
./bin/vx_test_conformance
36+
37+
# Clean up
38+
cd ../../
39+
rm -rf cts/build

0 commit comments

Comments
 (0)