Spdk/test/common
Kamil Godzwon d117053679 test/autobuild: Update llvm_precompile function to handle newer CLANG versions
The llvm_precompile function checks for the CLANG version available on the machine
using bash regex and searches for fuzzer libraries in a path based on the full CLANG
version number. (e.g. /usr/lib64/clang/15.0.3/...)

However, on the newest Fedora distribution, the path has changed and fuzzer libraries
couldn't be found. Currently, CLANG libraries path contains only major version number
(/usr/lib64/clang/16)

To address this issue, the function has been updated to search only for the major
CLANG version number instead of the full version number. Instead of using clang_version,
the function now uses clang_num because in every Fedora distribution there is directory
or symlink that points to the right CLANG version.

e.g. symlinks
/usr/lib64/clang/13 -> /usr/lib64/clang/13.0.1
/usr/lib64/clang/15 -> /usr/lib64/clang/15.0.3

or directory:
/usr/lib64/clang/16

Fixes #3000

Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: Iaf0dedc2bb3956cf06796e2eb60a5fa6f492b780
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17907
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-05-09 17:58:11 +08:00
..
config pkgdep/git: Bump QEMU to latest 8.0.0 release 2023-05-09 17:58:11 +08:00
lib test: Add test_iobuf.c to mock the iobuf library 2023-05-09 17:58:11 +08:00
applications.sh test/nvme_perf: fix bdevperf location 2023-01-19 11:26:22 +00:00
autobuild_common.sh test/autobuild: Update llvm_precompile function to handle newer CLANG versions 2023-05-09 17:58:11 +08:00
autotest_common.sh test/nvme: add test application to verify fdp functionality 2023-05-09 17:58:11 +08:00
skipped_build_files.txt test: Add test_iobuf.c to mock the iobuf library 2023-05-09 17:58:11 +08:00
skipped_tests.txt test/nvme: add test application to verify fdp functionality 2023-05-09 17:58:11 +08:00