Skip to content

Commit

Permalink
tarantool: update find pattern (google#12859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio authored Jan 25, 2025
1 parent 19b5026 commit 1188a70
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions projects/tarantool/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1188a70

Please sign in to comment.