Skip to content

Commit

Permalink
Fix path for analysis/tools binaries in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Nov 2, 2024
1 parent f62ea80 commit 51c59f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions analysis/tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
for file in src/*.{res,resi}; do
output="$(dirname $file)/expected/$(basename $file).txt"
../../rescript-editor-analysis.exe test $file &> $output
../../_build/install/default/bin/rescript-editor-analysis test $file &> $output
# CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
if [ "$RUNNER_OS" == "Windows" ]; then
perl -pi -e 's/\r\n/\n/g' -- $output
Expand All @@ -9,7 +9,7 @@ done

for file in not_compiled/*.{res,resi}; do
output="$(dirname $file)/expected/$(basename $file).txt"
../../rescript-editor-analysis.exe test $file &> $output
../../_build/install/default/bin/rescript-editor-analysis test $file &> $output
# CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
if [ "$RUNNER_OS" == "Windows" ]; then
perl -pi -e 's/\r\n/\n/g' -- $output
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
for file in src/*.{res,resi}; do
output="$(dirname $file)/expected/$(basename $file).json"
dune exec --no-print-directory -- rescript-tools doc $file > $output
../../_build/install/default/bin/rescript-tools doc $file > $output
# # CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
if [ "$RUNNER_OS" == "Windows" ]; then
perl -pi -e 's/\r\n/\n/g' -- $output
Expand Down

0 comments on commit 51c59f5

Please sign in to comment.