Hi Ole/Klement,
I changed the command to make test-debug TEST=ip4. But still the same
issue. Under install-vpp_debug-native/vpp/bin *vpp* is not getting
built for some reason. I can see all the shared libs getting built though.
supervisor@rajith_upstream>srv3.nbg1.rtbrick.net:~/libvpp $ make
test-debug TEST=ip4 V=1
make -C /home/supervisor/libvpp/build-root PLATFORM=vpp TAG=vpp_debug
vpp-install
make[1]: Entering directory '/home/supervisor/libvpp/build-root'
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for external @@@@
@@@@ Makefile fragment found in
/home/supervisor/libvpp/build-data/packages/external.mk
<http://external.mk> @@@@
@@@@ Source found in /home/supervisor/libvpp/build @@@@
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for vpp @@@@
@@@@ Makefile fragment found in
/home/supervisor/libvpp/build-data/packages/vpp.mk <http://vpp.mk> @@@@
@@@@ Source found in /home/supervisor/libvpp/src @@@@
find: ‘/home/supervisor/libvpp/build-root/config.site’: No such file
or directory
@@@@ Configuring external: nothing to do @@@@
@@@@ Building external: nothing to do @@@@
@@@@ Installing external: nothing to do @@@@
find: ‘/home/supervisor/libvpp/build-root/config.site’: No such file
or directory
@@@@ Configuring vpp: nothing to do @@@@
@@@@ Building vpp in
/home/supervisor/libvpp/build-root/build-vpp_debug-native/vpp @@@@
ninja: no work to do.
@@@@ Installing vpp: nothing to do @@@@
make[1]: Leaving directory '/home/supervisor/libvpp/build-root'
make -C test
VPP_BUILD_DIR=/home/supervisor/libvpp/build-root/build-vpp_debug-native
VPP_BIN=/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp
VPP_PLUGIN_PATH=/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins
VPP_TEST_PLUGIN_PATH=/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_api_test_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_api_test_plugins
VPP_INSTALL_PATH=/home/supervisor/libvpp/build-root/install-vpp_debug-native/
LD_LIBRARY_PATH=/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/
EXTENDED_TESTS= PYTHON= OS_ID=ubuntu RND_SEED=1643988103.7971287
CACHE_OUTPUT= test
make[1]: Entering directory '/home/supervisor/libvpp/test'
15:21:46,418 Temporary dir is
/tmp/vpp-unittest-SanityTestCase-x4melzcc, api socket is
/tmp/vpp-unittest-SanityTestCase-x4melzcc/api.sock
15:21:46,418 vpp_cmdline args:
['/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp',
'unix', '{', 'nodaemon', '', 'full-coredump', 'coredump-size
unlimited', 'runtime-dir',
'/tmp/vpp-unittest-SanityTestCase-x4melzcc', '}', 'api-trace', '{',
'on', '}', 'api-segment', '{', 'prefix',
'vpp-unittest-SanityTestCase-x4melzcc', '}', 'cpu', '{', 'main-core',
'0', '}', 'physmem', '{', 'max-size', '32m', '}', 'statseg', '{',
'socket-name', '/tmp/vpp-unittest-SanityTestCase-x4melzcc/stats.sock',
'', '}', 'socksvr', '{', 'socket-name',
'/tmp/vpp-unittest-SanityTestCase-x4melzcc/api.sock', '}', 'node { ',
'', '}', 'api-fuzz {', 'off', '}', 'plugins', '{', 'plugin',
'dpdk_plugin.so', '{', 'disable', '}', 'plugin', 'rdma_plugin.so',
'{', 'disable', '}', 'plugin', 'lisp_unittest_plugin.so', '{',
'enable', '}', 'plugin', 'unittest_plugin.so', '{', 'enable', '}',
'}', 'plugin_path',
'/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins',
'test_plugin_path',
'/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_api_test_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_api_test_plugins']
15:21:46,418 vpp_cmdline:
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp
unix { nodaemon full-coredump coredump-size unlimited runtime-dir
/tmp/vpp-unittest-SanityTestCase-x4melzcc } api-trace { on }
api-segment { prefix vpp-unittest-SanityTestCase-x4melzcc } cpu {
main-core 0 } physmem { max-size 32m } statseg { socket-name
/tmp/vpp-unittest-SanityTestCase-x4melzcc/stats.sock } socksvr {
socket-name /tmp/vpp-unittest-SanityTestCase-x4melzcc/api.sock } node
{ } api-fuzz { off } plugins { plugin dpdk_plugin.so { disable }
plugin rdma_plugin.so { disable } plugin lisp_unittest_plugin.so {
enable } plugin unittest_plugin.so { enable } } plugin_path
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins
test_plugin_path
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib/vpp_api_test_plugins:/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_api_test_plugins
15:21:46,421 Subprocess returned with OS error: (2) No such file or
directory:
'/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp'
Traceback (most recent call last):
File "sanity_run_vpp.py", line 34, in <module>
tc.setUpClass()
File "/home/supervisor/libvpp/test/framework.py", line 688, in
setUpClass
raise e
File "/home/supervisor/libvpp/test/framework.py", line 636, in
setUpClass
cls.run_vpp()
File "/home/supervisor/libvpp/test/framework.py", line 536, in run_vpp
stderr=subprocess.PIPE)
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory:
'/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp':
'/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp'
*******************************************************************
* Sanity check failed, cannot run vpp
*******************************************************************
Makefile:178: recipe for target 'sanity' failed
make[1]: *** [sanity] Error 1
make[1]: Leaving directory '/home/supervisor/libvpp/test'
Makefile:413: recipe for target 'test-debug' failed
make: *** [test-debug] Error 2
Thanks,
Rajith
On Fri, Feb 4, 2022 at 6:14 PM Klement Sekera <klem...@graphiant.com>
wrote:
Also, running under root is a bad idea and not supported.
Cheers,
Klement
On 4 Feb 2022, at 13:27, Ole Troan via lists.fd.io
<http://lists.fd.io> <otroan=employees....@lists.fd.io> wrote:
Rajith,
Have you tried:
make test-debug TEST=ip4
Cheers,
Ole
> On 4 Feb 2022, at 13:18, Rajith PR vialists.fd.io
<http://lists.fd.io/><rajith=rtbrick....@lists.fd.io> wrote:
>
> Hi All,
>
> We are trying to understand the VPP test framework. To get
started we ran an example suite (ip4 test) but it seems that the
dependent executable(vpp) is missing.
> Please find the logs below.
>
> sudo make test TEST=test_ip4 vpp-install
> make -C /home/supervisor/libvpp/build-root PLATFORM=vpp TAG=vpp
vpp-install
> make[1]: Entering directory '/home/supervisor/libvpp/build-root'
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for external @@@@
> @@@@ Makefile fragment found in
/home/supervisor/libvpp/build-data/packages/external.mk
<http://external.mk> @@@@
> @@@@ Source found in /home/supervisor/libvpp/build @@@@
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for vpp @@@@
> @@@@ Makefile fragment found in
/home/supervisor/libvpp/build-data/packages/vpp.mk
<http://vpp.mk> @@@@
> @@@@ Source found in /home/supervisor/libvpp/src @@@@
> find: ‘/home/supervisor/libvpp/build-root/config.site
<http://config.site>’: No such file or directory
> @@@@ Configuring external: nothing to do @@@@
> @@@@ Building external: nothing to do @@@@
> @@@@ Installing external: nothing to do @@@@
> find: ‘/home/supervisor/libvpp/build-root/config.site
<http://config.site>’: No such file or directory
> @@@@ Configuring vpp: nothing to do @@@@
> @@@@ Building vpp: nothing to do @@@@
> @@@@ Installing vpp: nothing to do @@@@
> make[1]: Leaving directory '/home/supervisor/libvpp/build-root'
> make -C test
VPP_BUILD_DIR=/home/supervisor/libvpp/build-root/build-vpp-native
VPP_BIN=/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp
VPP_PLUGIN_PATH=/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib/vpp_plugins:/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins
VPP_TEST_PLUGIN_PATH=/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib/vpp_api_test_plugins:/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib64/vpp_api_test_plugins
VPP_INSTALL_PATH=/home/supervisor/libvpp/build-root/install-vpp-native/
LD_LIBRARY_PATH=/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib/:/home/supervisor/libvpp/build-root/install-vpp-native/vpp/lib64/
EXTENDED_TESTS= PYTHON= OS_ID=ubuntu RND_SEED=1643973244.1148973
CACHE_OUTPUT= test
> make[1]: Entering directory '/home/supervisor/libvpp/test'
> 11:14:05,997 Subprocess returned with OS error: (2) No such
file or directory:
'/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp'
> Traceback (most recent call last):
> File "sanity_run_vpp.py", line 34, in <module>
> tc.setUpClass()
> File "/home/supervisor/libvpp/test/framework.py", line 688,
in setUpClass
> raise e
> File "/home/supervisor/libvpp/test/framework.py", line 636,
in setUpClass
> cls.run_vpp()
> File "/home/supervisor/libvpp/test/framework.py", line 536,
in run_vpp
> stderr=subprocess.PIPE)
> File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
> restore_signals, start_new_session)
> File "/usr/lib/python3.6/subprocess.py", line 1364, in
_execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> FileNotFoundError: [Errno 2] No such file or directory:
'/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp':
'/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp'
> *******************************************************************
> * Sanity check failed, cannot run vpp
> *******************************************************************
> Makefile:178: recipe for target 'sanity' failed
> make[1]: *** [sanity] Error 1
> make[1]: Leaving directory '/home/supervisor/libvpp/test'
> Makefile:409: recipe for target 'test' failed
> make: *** [test] Error 2
>
> supervisor@rajith_fs6104>srv3.nbg1.rtbrick.net
<http://srv3.nbg1.rtbrick.net>:~/libvpp/build-root/install-vpp-native/vpp/bin
$ ll
> total 5784
> drwxr-xr-x 2 root root 4096 Feb 4 11:28 ./
> drwxr-xr-x 7 root root 4096 Feb 4 11:28 ../
> -rwxr-xr-x 1 root root 66992 Feb 4 10:48 svmdbtool*
> -rwxr-xr-x 1 root root 108224 Feb 4 10:48 svmtool*
> -rwxr-xr-x 1 root root 29688 Feb 4 10:41 vapi_c_gen.py*
> -rwxr-xr-x 1 root root 8682 Feb 4 10:41 vapi_cpp_gen.py*
> -rwxr-xr-x 1 root root 3145776 Feb 4 10:50 vapi_cpp_test*
> -rwxr-xr-x 1 root root 539176 Feb 4 10:50 vapi_c_test*
> -rwxr-xr-x 1 root root 19351 Feb 4 10:41 vapi_json_parser.py*
> -rwxr-xr-x 1 root root 136400 Feb 4 10:50 vat2*
> -rwxr-xr-x 1 root root 38530 Feb 4 10:41 vppapigen*
> -rwxr-xr-x 1 root root 1174696 Feb 4 10:50 vpp_api_test*
> -rwxr-xr-x 1 root root 39680 Feb 4 10:49 vppctl*
> -rwxr-xr-x 1 root root 458096 Feb 4 10:50 vpp_echo*
> -rwxr-xr-x 1 root root 26024 Feb 4 10:49 vpp_get_metrics*
> -rwxr-xr-x 1 root root 28968 Feb 4 10:50 vpp_get_stats*
> -rwxr-xr-x 1 root root 32912 Feb 4 10:50 vpp_prometheus_export*
> -rwxr-xr-x 1 root root 23256 Feb 4 10:49 vpp_restart*
>
> We use the sudo make build-release command for building. Can
you let us know what to see for the missing vpp executable?
>
> Thanks,
> Rajith
>
> NOTICE TO RECIPIENT This e-mail message and any attachments are
confidential and may be privileged. If you received this e-mail
in error, any review, use, dissemination, distribution, or
copying of this e-mail is strictly prohibited. Please notify us
immediately of the error by return e-mail and please delete this
message from your system. For more information about Rtbrick,
please visit us atwww.rtbrick.com <http://www.rtbrick.com/>
>
>
>
NOTICE TO RECIPIENT This e-mail message and any attachments are
confidential and may be privileged. If you received this e-mail in
error, any review, use, dissemination, distribution, or copying of
this e-mail is strictly prohibited. Please notify us immediately of
the error by return e-mail and please delete this message from your
system. For more information about Rtbrick, please visit us at
www.rtbrick.com <http://www.rtbrick.com>