diff --git a/projects/tarantool/build.sh b/projects/tarantool/build.sh index 8cb5db727a8e..a63825d210f3 100755 --- a/projects/tarantool/build.sh +++ b/projects/tarantool/build.sh @@ -153,14 +153,17 @@ LUZER_TEST_DIR="build/luzer_tests" # Copying luzer-based tests to a $LUZER_TEST_DIR. cmake --build build --parallel --verbose --target copy_tests # Generating test wrappers for luzer-based tests. -for test_file in $(find $LUZER_TEST_DIR -name "*.lua" -type f); +for test_path in $(find $LUZER_TEST_DIR -name "*.lua" -type f); do - test_name=$(basename $test_file); - "$SRC/compile_lua_fuzzer" "$LUA_RUNTIME_NAME" $test_name - cp "$test_file" "$OUT/" - corpus_dir="test/static/corpus/$test_name" + test_file=$(basename $test_path); + test_name_we="${test_file%.*}"; + module_name=$(echo $test_name_we | sed 's/_test//' ) + "$SRC/compile_lua_fuzzer" "$LUA_RUNTIME_NAME" $test_file + cp "$test_path" "$OUT/" + corpus_dir="test/static/corpus/$module_name" if [ -e "$corpus_dir" ]; then - zip --quiet -j $OUT/"$test_name"_seed_corpus.zip $corpus_dir/* + zip -j $OUT/"$test_name_we"_seed_corpus.zip $corpus_dir/* + echo "Build corpus '$OUT/"$test_name_we"_seed_corpus.zip' for the test '$test_name_we'" fi done