Build-Depends: ninja-build, meson (>=0.50), debhelper (>=9),
gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5, libgtest-dev, python,
libdrm-dev, libiniparser-dev, pkg-config, cmake, linux-fvp-headers,
- npu-engine-emul, npu-engine-testdata
+ npu-engine-emul
Standards-Version: 3.8.2
Homepage: https://research.samsung.com
ROOT_DIR:=$(shell pwd)
export NPU_TRINITY_INSTALL_PREFIX=/opt/trinity
-export NPU_TESTDATA_PATH=${NPU_TRINITY_INSTALL_PREFIX}/share/npu-engine/testdata
-export PATH=$(shell printenv PATH):${NPU_TRINITY_INSTALL_PREFIX}/bin
export LC_ALL=C.UTF-8
%:
./build/tests/apptests/apptest_dmabuf_model
./build/tests/apptests/apptest_dmabuf_buffers
./build/tests/apptests/apptest_async_callbacks
- # Test the models
- ./build/tests/apptests/apptest_example_visa $(NPU_TESTDATA_PATH)/npubinfmt_v1 > /dev/null
- ./build/tests/apptests/apptest_example_visa $(NPU_TESTDATA_PATH)/npubinfmt_v2 > /dev/null
override_dh_auto_install:
DESTDIR=$(CURDIR)/debian/tmp ninja -C build install
%define enable_npu_emul true
BuildRequires: npu-engine-emul
-%ifarch x86_64
-%define testdatadir %{_datadir}/npu-engine/testdata
-BuildRequires: npu-engine-testdata
-%endif
-
# valgrind requires the same arch with host (x86_64)
%if 0%{?use_valgrind}
%ifarch x86_64
./${unittest_exec} --gtest_output="xml:${unittest_exec}.xml"
%endif
done
+
# Run apptests
find apptests -maxdepth 1 -type f -perm 0755 -print0 | while IFS= read -r -d $'\0' apptest_exec; do
%if 0%{?use_valgrind}
%endif
done
- # Run apptests using actual model files.
- %ifarch x86_64
- ./apptests/apptest_example_visa /%{testdatadir}/npubinfmt_v1 > /dev/null
- ./apptests/apptest_example_visa /%{testdatadir}/npubinfmt_v2 > /dev/null
- %endif
-
popd
%endif