Merge pull request #240 from eed3si9n/wip/smoke

Fix smoke test
text_sliders
eugene yokota 2023-05-25 19:32:54 +07:00 committed by GitHub
commit 361f45bd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

4
.gitignore vendored

@ -11,6 +11,6 @@ Cargo.lock
*.out *.out
.direnv .direnv
.metals .metals
report-*
./scala ./scala
./dotty ./dotty

@ -2,7 +2,7 @@
# This is an integration test to generally check the quality of parsing. # This is an integration test to generally check the quality of parsing.
SCALA_SCALA_LIBRARY_EXPECTED=100 SCALA_SCALA_LIBRARY_EXPECTED=92
SCALA_SCALA_COMPILER_EXPECTED=84 SCALA_SCALA_COMPILER_EXPECTED=84
DOTTY_COMPILER_EXPECTED=78 DOTTY_COMPILER_EXPECTED=78
SYNTAX_COMPLEXITY_CEILING=2300 SYNTAX_COMPLEXITY_CEILING=2300
@ -23,7 +23,8 @@ run_tree_sitter () {
local source_dir=$1 local source_dir=$1
local expected=$2 local expected=$2
local name=$3 local name=$3
cmd="npm exec -c 'tree-sitter parse $source_dir/**/*.scala --quiet --stat' | sort | sed 's%$source_dir%%g'" local files=$(find "$source_dir" -name '*.scala' -type f | tr '\n' ' ')
cmd="npm exec -c 'tree-sitter parse $files --quiet --stat' | sort | sed 's%$source_dir%%g'"
echo echo
echo "Parse $source_dir: $cmd" echo "Parse $source_dir: $cmd"
out=$( (eval "$cmd") || true) out=$( (eval "$cmd") || true)