File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -153,14 +153,17 @@ LUZER_TEST_DIR="build/luzer_tests"
153153# Copying luzer-based tests to a $LUZER_TEST_DIR.
154154cmake --build build --parallel --verbose --target copy_tests
155155# Generating test wrappers for luzer-based tests.
156- for test_file in $( find $LUZER_TEST_DIR -name " *.lua" -type f) ;
156+ for test_path in $( find $LUZER_TEST_DIR -name " *.lua" -type f) ;
157157do
158- test_name=$( basename $test_file ) ;
159- " $SRC /compile_lua_fuzzer" " $LUA_RUNTIME_NAME " $test_name
160- cp " $test_file " " $OUT /"
161- corpus_dir=" test/static/corpus/$test_name "
158+ test_file=$( basename $test_path ) ;
159+ test_name_we=" ${test_file% .* } " ;
160+ module_name=$( echo $test_name_we | sed ' s/_test//' )
161+ " $SRC /compile_lua_fuzzer" " $LUA_RUNTIME_NAME " $test_file
162+ cp " $test_path " " $OUT /"
163+ corpus_dir=" test/static/corpus/$module_name "
162164 if [ -e " $corpus_dir " ]; then
163- zip --quiet -j $OUT /" $test_name " _seed_corpus.zip $corpus_dir /*
165+ zip -j $OUT /" $test_name_we " _seed_corpus.zip $corpus_dir /*
166+ echo " Build corpus '$OUT /" $test_name_we " _seed_corpus.zip' for the test '$test_name_we '"
164167 fi
165168done
166169
You can’t perform that action at this time.
0 commit comments