Hi,
Could someone please advise me how to run vpp tests?

I followed the instructions described in developer documentation 
https://s3-docs.fd.io/vpp/22.10/developer/build-run-debug/index.html
I also checked the following Jenkins job configuration:  
https://jenkins.fd.io/job/vpp-verify-master-ubuntu2004-x86_64/configure
Based on this I created a Dockerfile to build and test vpp on ubuntu 20.04:

cat extras/docker/build/Dockerfile.ubuntu-20-04
FROM ubuntu:20.04 as vppbuildandtest
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=US/Central apt-get install -y git make 
python3 sudo asciidoc
COPY . /vpp
WORKDIR /vpp
RUN curl -s 
https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh |  bash
RUN apt-get update
RUN apt-get -y --allow-downgrades --allow-remove-essential 
--allow-change-held-packages install vpp-ext-deps
RUN DEBIAN_FRONTEND=noninteractive TZ=US/Central UNATTENDED=y make install-dep
RUN make UNATTENDED=yes test-dep
RUN make UNATTENDED=yes pkg-verify
RUN src/tools/vppapigen/test_vppapigen.py
RUN make UNATTENDED=yes test

Until now I was able to run without errors, but the last several attempts 
failed with the failure:

 Running setup.py develop for vpp-papi
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; 
sys.argv[0] = '"'"'/vpp/src/vpp-api/python/setup.py'"'"'; 
__file__='"'"'/vpp/src/vpp-api/python/setup.py'"'"';f=getattr(tokenize, 
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop 
--no-deps
         cwd: /vpp/src/vpp-api/python/
    Complete output (17 lines):
    running develop
    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

        [Errno 2] No such file or directory: 
'/usr/lib/python3.8/site-packages/test-easy-install-112.write-test'

Tried to fix the error adding the required directory 
'/usr/lib/python3.8/site-packages/', but other python modules missing.
After installing 'psutil' and 'scapy' now facing another failure:

make -C test VPP_BUILD_DIR=/vpp/build-root/build-vpp-native/vpp 
VPP_BIN=/vpp/build-root/install-vpp-native/vpp/bin/vpp 
VPP_INSTALL_PATH=/vpp/build-root/install-vpp-native/ EXTENDED_TESTS= PYTHON= 
OS_ID=ubuntu RND_SEED= CACHE_OUTPUT= TAG=vpp test
make[1]: Entering directory '/vpp/test'
Traceback (most recent call last):
  File "/vpp/test/run_tests.py", line 17, in <module>
    from framework import (
  File "/vpp/test/framework.py", line 35, in <module>
    from vpp_papi_provider import VppPapiProvider
  File "/vpp/test/vpp_papi_provider.py", line 231, in <module>
    class VppPapiProvider(object):
  File "/vpp/test/vpp_papi_provider.py", line 983, in VppPapiProvider
    protocol=socket.IPPROTO_RAW,
NameError: name 'socket' is not defined


/Laszlo
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21916): https://lists.fd.io/g/vpp-dev/message/21916
Mute This Topic: https://lists.fd.io/mt/93872230/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to