From 1188a704bab8df943b0b2faaa63d5e6bdcb8fcc0 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Sat, 25 Jan 2025 22:15:32 +0300 Subject: [PATCH] tarantool: update find pattern (#12859) Needed for https://github.com/tarantool/tarantool/pull/10911 --- projects/tarantool/build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/projects/tarantool/build.sh b/projects/tarantool/build.sh index 649e577ea034..509d98aeb41c 100755 --- a/projects/tarantool/build.sh +++ b/projects/tarantool/build.sh @@ -87,14 +87,18 @@ cmake "${cmake_args[@]}" -S . -B build cmake --build build --target fuzzers --parallel --verbose # Archive and copy to $OUT seed corpus if the build succeeded. -for f in $(find build/test/fuzz/ -name '*_fuzzer' -type f); +# Postfix `_fuzzer` is used in Tarantool, postfix `_test` is +# used in Lua C API tests [1]. +# +# 1. https://github.com/ligurio/lua-c-api-tests/ +for f in $(find build/test/fuzz/ \( -name '*_fuzzer' -o -name '*_test' \) -type f); do name=$(basename $f); - module=$(echo $name | sed 's/_fuzzer//') + module=$(echo $name | sed 's/_fuzzer//' | sed 's/_test//' ) corpus_dir="test/static/corpus/$module" echo "Copying for $module"; cp $f $OUT/ - dict_path="test/static/$name.dict" + dict_path="test/static/$module.dict" if [ -e "$dict_path" ]; then cp $dict_path $OUT/ fi