Skip to content

Commit c18fdff

Browse files
committed
compiler/syntax/benchmarks -> tests/syntax_benchmarks
1 parent 4bfe542 commit c18fdff

File tree

11 files changed

+5
-5
lines changed

11 files changed

+5
-5
lines changed

compiler/syntax/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(dirs compiler-libs-406 src cli benchmarks testrunner)
1+
(dirs compiler-libs-406 src cli testrunner)
22

33
(env
44
(dev

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ shopt -s extglob
44

55
dune build @fmt --auto-promote
66

7-
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_tests/*" ! -path "tests/gentype_tests/typescript-react-example/node_modules/*")
7+
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*/*" ! -path "tests/gentype_tests/typescript-react-example/node_modules/*")
88
./cli/rescript format $files

scripts/format_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ case "$(uname -s)" in
1717
fi
1818

1919
echo "Checking ReScript code formatting..."
20-
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_tests/*" ! -path "tests/gentype_tests/typescript-react-example/node_modules/*")
20+
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*/*" ! -path "tests/gentype_tests/typescript-react-example/node_modules/*")
2121
if ./cli/rescript format -check $files; then
2222
printf "${successGreen}✅ ReScript code formatting ok.${reset}\n"
2323
else

tests/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(dirs ounit_tests)
1+
(dirs ounit_tests syntax_benchmarks)

compiler/syntax/benchmarks/Benchmark.ml renamed to tests/syntax_benchmarks/Benchmark.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ end = struct
226226
Benchmark.report b
227227

228228
let run () =
229-
let data_dir = "compiler/syntax/benchmarks/data" in
229+
let data_dir = "tests/syntax_benchmarks/data" in
230230
benchmark (Filename.concat data_dir "RedBlackTree.res") Rescript Parse;
231231
benchmark (Filename.concat data_dir "RedBlackTree.res") Rescript Print;
232232
benchmark
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)