include the autotest suite in dpdk-dev 69/3369/1
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 12 Oct 2016 11:19:52 +0000 (13:19 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 12 Oct 2016 11:19:52 +0000 (13:19 +0200)
The autotest suite is ready to use after build and built by default.
It can be useful to developers and tools to have access to the test
toolchains built together with the packaged content.

Change-Id: I5d5fe58b4ccc6960edde92bbec2577526d0c9916
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
debian/rules

index f21cf76..b652adc 100755 (executable)
@@ -190,6 +190,10 @@ override_dh_auto_install-arch:
        cp $(DPDK_SHARED_DIR)/.config debian/dpdk-dev/usr/share/dpdk/config
        sed -e 's/SDK_TARGET/$(RTE_TARGET)/' debian/dpdk-sdk-env.sh.in > \
                debian/dpdk-dev/usr/share/dpdk/dpdk-sdk-env.sh
+       # include the bundled autotest suite to be usable from the dpdk-dev package
+       mkdir -p debian/dpdk-dev/usr/share/dpdk/test
+       cp -a app/test/autotest* debian/dpdk-dev/usr/share/dpdk/test
+       cp $(DPDK_SHARED_DIR)/app/test debian/dpdk-dev/usr/share/dpdk/test/
        # Package: libdpdk-dev (bare headers, static devel libs and linker
        # script)
        mkdir -p debian/libdpdk-dev/$(LIBDIR)