Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Check in results of tests. #130

Merged
merged 7 commits into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Use expected folder.
  • Loading branch information
cristianoc committed Apr 16, 2021
commit 93b95c56c892b13e906678d610021ed522080abb
Empty file added test/src/expected/Hover.res.txt
Empty file.
15 changes: 13 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/bin/zsh

../_build/install/default/bin/rescript-editor-support.exe test src/Definition.res >src/Definition.exp
function exp {
echo "$(dirname $1)/expected/$(basename $1).txt"
}

../_build/install/default/bin/rescript-editor-support.exe test src/Complete.res >src/Complete.exp
taskCount=0
function maybeWait {
let taskCount+=1
# spawn in batch of 20 processes
[[ $((taskCount % 20)) = 0 ]] && wait
}

for file in src/**/*.res; do
../_build/install/default/bin/rescript-editor-support.exe test $file &> $(exp $file) & maybeWait
done