File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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: |
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments