CSIT-1327 Migrate from vpp-dkms-dpdk to vpp-ext-deps 44/15044/5
authorPeter Mikus <pmikus@cisco.com>
Fri, 28 Sep 2018 15:13:31 +0000 (15:13 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 1 Oct 2018 11:22:07 +0000 (11:22 +0000)
Change-Id: I6fad3303c5c331ad36d163ba735907e35931dea0
Signed-off-by: Peter Mikus <pmikus@cisco.com>
DPDK_STABLE_VER
resources/libraries/bash/function/artifacts.sh
resources/libraries/bash/function/per_patch.sh
tests/vpp/perf/__init__.robot

index f4d3fed..8f14636 100644 (file)
@@ -1 +1 @@
-18.08-vpp3
\ No newline at end of file
+18.10-5
\ No newline at end of file
index 945bdfe..07a04c4 100644 (file)
@@ -69,7 +69,7 @@ function download_ubuntu_artifacts () {
     else
         artifacts+=(${vpp[@]/%/=${VPP_VERSION-}})
     fi
-    dkms=(vpp-dpdk-dkms)
+    dkms=(vpp-ext-deps)
     if [ -z "${DKMS_VERSION-}" ]; then
         artifacts+=(${dkms[@]})
     else
index 15eaf02..4353a5e 100644 (file)
@@ -45,28 +45,29 @@ function build_vpp_ubuntu_amd64 () {
     # The per_patch script calls this function twice, first for the new commit,
     # then for its parent commit. On Jenkins, no dpdk is installed at first,
     # locally it might have been installed. New dpdk is installed second call.
-    # If make detects installed vpp-dpdk-dev with matching version,
-    # it skips building vpp-dpdk-dkms entirely, but we need that file.
+    # If make detects installed vpp-ext-deps with matching version,
+    # it skips building vpp-ext-deps entirely, but we need that file.
     # On the other hand, if parent uses different dpdk version,
-    # The new vpp-dpdk-dkms is built, but the old one is not removed
+    # The new vpp-ext-deps is built, but the old one is not removed
     # from the build directory if present. (Further functions move both,
     # and during test dpkg decides on its own which version gets installed.)
     # As per_patch is too dumb (yet) to detect any of that,
     # the only safe solution is to clean build directory and force rebuild.
     # TODO: Make this function smarter and skip DPDK rebuilds if possible.
-    cmd=("dpkg-query" "--showformat='$${Version}'" "--show" "vpp-dpdk-dev")
+    cmd=("dpkg-query" "--showformat='$${Version}'" "--show" "vpp-ext-deps")
     installed_deb_ver="$(sudo "${cmd[@]}" || true)"
     if [[ -n "${installed_deb_ver}" ]]; then
-        sudo dpkg --purge "vpp-dpdk-dev" || {
-            die "Dpdk package uninstalation failed."
+        sudo dpkg --purge "vpp-ext-deps" || {
+            die "DPDK package uninstalation failed."
         }
     fi
-    make UNATTENDED=yes dpdk-install-dev || {
-        die "Make dpdk-install-dev failed."
+    make UNATTENDED=yes install-ext-deps || {
+        die "Make install-ext-deps failed."
     }
     build-root/vagrant/"build.sh" || die "Vagrant VPP build script failed."
-    # CSIT also needs the DPDK artifacts, which is not in build-root.
-    mv -v "dpdk/vpp-dpdk-dkms"*".deb" "build-root"/ || {
+    # CSIT also needs the external dependency artifacts, which is not in
+    # build-root.
+    mv -v "build/external/vpp-ext-deps"*".deb" "build-root"/ || {
         die "*.deb move failed."
     }
 
index 0578839..182aaa4 100644 (file)
@@ -60,5 +60,5 @@
 | | @{vpp_rpm_pkgs}= | Create List | vpp | vpp-devel | vpp-lib | vpp-plugins
 | | Set Global Variable | ${vpp_rpm_pkgs}
 | | @{vpp_deb_pkgs}= | Create List | vpp | vpp-dbg | vpp-dev | vpp-lib
-| | ... | vpp-plugins | vpp-dpdk-dkms
+| | ... | vpp-plugins | vpp-ext-deps
 | | Set Global Variable | ${vpp_deb_pkgs}