From be463c7789f2baafa3fb0fd232d7c3b42b5d5266 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 24 Jun 2022 12:23:13 -0700 Subject: [PATCH] Update test script with flags for new randomized test options --- script/test | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/test b/script/test index df7f643b..619c190f 100755 --- a/script/test +++ b/script/test @@ -14,11 +14,9 @@ OPTIONS -a Compile C code with the Clang static analyzer - -l Run only the corpus tests for the given language - -e Run only the corpus tests whose name contain the given string - -t Run only the given trial number of randomized test + -i Run the given number of iterations of randomized tests (default 10) -s Set the seed used to control random behavior @@ -36,7 +34,7 @@ export RUST_BACKTRACE=full mode=normal test_flags="" -while getopts "adDghl:e:s:t:" option; do +while getopts "adDghl:e:s:i:" option; do case ${option} in h) usage @@ -62,6 +60,9 @@ while getopts "adDghl:e:s:t:" option; do s) export TREE_SITTER_SEED=${OPTARG} ;; + i) + export TREE_SITTER_ITERATIONS=${OPTARG} + ;; d) export TREE_SITTER_LOG=1 ;;