Skip to content

Commit 7217302

Browse files
authoredOct 8, 2024··
Also move syntax_tests under tests (#7090)
* Remove ml syntax tests * compiler/syntax/tests -> tests/syntax_tests * Adapt scripts * Always run the syntax tests
1 parent 574d4ac commit 7217302

File tree

1,778 files changed

+215
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,778 files changed

+215
-239
lines changed
 

‎.github/workflows/ci.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ jobs:
130130
131131
- name: Checkout
132132
uses: actions/checkout@v4
133-
with:
134-
fetch-depth: 2 # to be able to check for changes in subfolder compiler/syntax later
135133

136134
- name: Use Node.js
137135
uses: actions/setup-node@v4
@@ -297,22 +295,12 @@ jobs:
297295
if: steps.ninja-build-cache.outputs.cache-hit != 'true'
298296
run: node ./scripts/copyExes.js -ninja
299297

300-
- name: "Check if syntax subfolder has changed"
301-
id: syntax-diff
302-
shell: bash
303-
run: |
304-
if git diff --name-only --exit-code HEAD^ HEAD -- compiler/syntax; then
305-
echo "syntax_status=unchanged" >> $GITHUB_ENV
306-
else
307-
echo "syntax_status=changed" >> $GITHUB_ENV
308-
fi
309-
310298
- name: "Syntax: Run roundtrip tests"
311-
if: ${{ env.syntax_status == 'changed' && runner.os != 'Windows' }}
299+
if: ${{ runner.os != 'Windows' }}
312300
run: opam exec -- make test-syntax-roundtrip
313301

314302
- name: "Syntax: Run tests (Windows)"
315-
if: ${{ env.syntax_status == 'changed' && runner.os == 'Windows' }}
303+
if: ${{ runner.os == 'Windows' }}
316304
run: opam exec -- make test-syntax
317305

318306
- name: Build runtime/stdlib

‎compiler/syntax/testrunner/res_test.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module IO = Res_io
22

3-
let data_dir = "compiler/syntax/tests"
3+
let data_dir = "tests/syntax_tests"
44

55
(* test printing of .res file*)
66
let () =

0 commit comments

Comments
 (0)