Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions projects/tarantool/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading