LU-16502 lutf: add headers to lutf C code Add SPDX text and documentation to lutf C code. This will make it easier for developers to find where different functionality lives. Test-Parameters: @lnet Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I67d8acc6b5968e76667130f38018ddcf0fcfd3b0 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53480 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Frank Sehr <fsehr@whamcloud.com> Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-14093 lutf: fix build with gcc10 The new LUTF code has build issues with gcc10. I see the following build errors. ld: lutf-lutf_listener.o:lutf.h:88: multiple definition of `g_lutf_cfg' ld: lutf-lutf_listener.o:lutf.h:22: multiple definition of `debugtimestr' ld: lutf-lutf_listener.o:lutf.h:21: multiple definition of `di' ld: lutf-lutf_listener.o:lutf.h:20: multiple definition of `debugnow' In function ‘snprintf’, inlined from ‘python_run_interactive_shell’ at lutf_python.c:45:2: stdio2.h:71:10: error: ‘%s’ directive argument is null [-Werror=format-truncation=] 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ This patch resolves these warnings. Without this patch LUTF will not build on Ubuntu 20 LTS. Test-Parameters: trivial Change-Id: Ie3c99f8c6cf2f5de583dc95a0dc63fcde1aa6ffd Signed-off-by: James Simmons <jsimmons@infradead.org> Reviewed-on: https://review.whamcloud.com/44484 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com> Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com> Reviewed-by: Amir Shehata <ashehata@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-10973 lnet: LUTF infrastructure updates Fix Agent management Handle python failures properly. Change default location for temporary files to be in /tmp/lutf Test-Parameters: trivial Signed-off-by: Amir Shehata <ashehata@whamcloud.com> Change-Id: I4e37b6226dfa12de4b7a1f5bfd87f84e91ee1dda Reviewed-on: https://review.whamcloud.com/44177 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-10973 lnet: initial LUTF C infrastructure LNet Unit test Framework is a utility that functionally tests LNet via python scripts. It operates in a master/slave configuration. Slaves run on multiple test nodes, while the master is responsible for managing the slaves to perform specific tests. The LUTF exercises the different LNet features via configuring LNet through the lnetconfig interface or lnetctl, running traffic and monitoring statistics and other logging to ensure that tests have passed. Test-Parameters: trivial Signed-off-by: Amir Shehata <ashehata@whamcloud.com> Change-Id: Iefcc4d48d5f144a2abe1fdc0865331e9a9d27318 Reviewed-on: https://review.whamcloud.com/38086 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>