Run fuzzer unit tests in Kokoro

This CL adjusts the scripts to be able to run AST and regex
fuzzer unit tests in Kokoro. Only clang is supported for now.

Change-Id: Ibc9ebb9cf0dc40f47317abf88875aa738811919d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61642
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Vasyl Teliman <vasniktel@gmail.com>
This commit is contained in:
Vasyl Teliman
2021-08-11 14:10:05 +00:00
committed by Tint LUCI CQ
parent 9e3e54b932
commit 4ebede411e
4 changed files with 20 additions and 6 deletions

View File

@@ -13,6 +13,7 @@
# limitations under the License.
set(LIBTINT_REGEX_FUZZER_SOURCES
util.h
wgsl_mutator.cc
wgsl_mutator.h)

View File

@@ -94,8 +94,8 @@ void ReplaceRegion(size_t idx1,
size_t id2_len,
std::string& wgsl_code);
/// Replaces an interval of length interval1_len starting at start_index
/// with the interval interval2.
/// Replaces an interval of length `length` starting at start_index
/// with the `replacement_text`.
/// @param start_index - starting position of the interval to be replaced.
/// @param length - length of the interval to be replaced.
/// @param replacement_text - the interval that will be used as a replacement.