SIGN IN SIGN UP
reasonml / reason UNCLAIMED

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

0 0 0 OCaml
Migrate tests to cram suite (#2694) * test(refmt) Add basic type-check tests to cram * test(refmt) Make ocamlc a valid windows script * test(refmt) Hide refmt_impl.exe under run-refmt.sh * test(refmt) Remove run-refmt * test(refmt) Fix path for run-ocamlc * test(refmt) Remove ocamlc check * refactor(refmt) Make run-ocamlc available to run everywhere * refactor(refmt) Remove failing dir * fix(refmt_test) cd work in windows * test(refmt) Check ocamlc instalation working * test(refmt) Remove ocamlc check * test(refmt) Remove set in run-ocamlc * test(refmt) Enable debug to see Windows command * test(refmt) Remove binary from refmt * test(refmt) Revert binary from refmt * test(refmt) Move to direct path * test(refmt) Try ./ and ocamlopt * test(refmt) export readlink * test(refmt) Assign variable based on the path * test(refmt) Try with bash * test(refmt) Add readlink to REFMT * test(refmt) Add batch and sh script for refmt * test(refmt) Setup refmt_impl as binary * test(refmt) Remove batch and sh wrappers * test(refmt) Remove --print-width and set REFMT_PRINT_WIDTH as env var * test(refmt) Trying single quote, wat * test(refmt) buildInSource and run refmt in cram * test(refmt) Revert buildInSource and run esy x * test(refmt) Remove refmt_impl for print w and debug PATH * test(refmt) Add -p reason * test(refmt) Update dune * test(refmt) Remove logging on PATH * Add idempotency test in basics * Add error test * Add testOprint case * Moved and renamed testOprint into refmt_test/ folder * Remove OCaml-versioned based cram tests * Add backportSyntax * Add rtopIntegration * Move back testOprint into src * Trim rtop output * Remove the begining of the error message for OCaml 4.03 * Try tests based on ocaml version * Fix test 4.03 * Fix test for ocaml_version * Ensure works with 4.03 * Move test to 4.07 * Build all packages needed for tests in release mode * Don't build testOprint * Move testOprint inside refmt_test and rename to typedtree_printer * Ensure works with 4.08 * Remove test.re from version test * Revert rename on reason-parser-test * Revert debugging on test.sh * Improve safety for rtop * Migrate all error cases * Migrate all oprint tests * Migrate all typecheck tests * Clean up tests * Enable 4.03 in CI * Move newast to 4.06 * Fix 4.10 tests * Move mlsyntax to 4.08 * Move type-trailing to 4.04 * Remove 4.03 * Fix 4.06 test * Fix 4.08 tests * Fix 4.10 tests * Fix 4.12 tests * Remove 4.04 since we have them on 4.06 * Update ocamlfind to 1.9.6 * Rollback ocamlfind to 1.9.5 * Disable tests on windows in 4.12 * Remove debugging * Change path and condition * Disable all tests in win * Install right OCaml in esy ci * Explain how to run different ocaml versions for testing * Remove empty space from pattern matching
2023-03-20 20:10:30 +01:00
(env
(_
(env-vars
(REFMT_PRINT_WIDTH 50))))
Migrate tests to cram suite (#2694) * test(refmt) Add basic type-check tests to cram * test(refmt) Make ocamlc a valid windows script * test(refmt) Hide refmt_impl.exe under run-refmt.sh * test(refmt) Remove run-refmt * test(refmt) Fix path for run-ocamlc * test(refmt) Remove ocamlc check * refactor(refmt) Make run-ocamlc available to run everywhere * refactor(refmt) Remove failing dir * fix(refmt_test) cd work in windows * test(refmt) Check ocamlc instalation working * test(refmt) Remove ocamlc check * test(refmt) Remove set in run-ocamlc * test(refmt) Enable debug to see Windows command * test(refmt) Remove binary from refmt * test(refmt) Revert binary from refmt * test(refmt) Move to direct path * test(refmt) Try ./ and ocamlopt * test(refmt) export readlink * test(refmt) Assign variable based on the path * test(refmt) Try with bash * test(refmt) Add readlink to REFMT * test(refmt) Add batch and sh script for refmt * test(refmt) Setup refmt_impl as binary * test(refmt) Remove batch and sh wrappers * test(refmt) Remove --print-width and set REFMT_PRINT_WIDTH as env var * test(refmt) Trying single quote, wat * test(refmt) buildInSource and run refmt in cram * test(refmt) Revert buildInSource and run esy x * test(refmt) Remove refmt_impl for print w and debug PATH * test(refmt) Add -p reason * test(refmt) Update dune * test(refmt) Remove logging on PATH * Add idempotency test in basics * Add error test * Add testOprint case * Moved and renamed testOprint into refmt_test/ folder * Remove OCaml-versioned based cram tests * Add backportSyntax * Add rtopIntegration * Move back testOprint into src * Trim rtop output * Remove the begining of the error message for OCaml 4.03 * Try tests based on ocaml version * Fix test 4.03 * Fix test for ocaml_version * Ensure works with 4.03 * Move test to 4.07 * Build all packages needed for tests in release mode * Don't build testOprint * Move testOprint inside refmt_test and rename to typedtree_printer * Ensure works with 4.08 * Remove test.re from version test * Revert rename on reason-parser-test * Revert debugging on test.sh * Improve safety for rtop * Migrate all error cases * Migrate all oprint tests * Migrate all typecheck tests * Clean up tests * Enable 4.03 in CI * Move newast to 4.06 * Fix 4.10 tests * Move mlsyntax to 4.08 * Move type-trailing to 4.04 * Remove 4.03 * Fix 4.06 test * Fix 4.08 tests * Fix 4.10 tests * Fix 4.12 tests * Remove 4.04 since we have them on 4.06 * Update ocamlfind to 1.9.6 * Rollback ocamlfind to 1.9.5 * Disable tests on windows in 4.12 * Remove debugging * Change path and condition * Disable all tests in win * Install right OCaml in esy ci * Explain how to run different ocaml versions for testing * Remove empty space from pattern matching
2023-03-20 20:10:30 +01:00
(cram
(applies_to * \ lib rtopIntegration)
(package reason)
(deps
%{bin:ocamlc}
%{bin:refmt}
./lib/outcometreePrinter.exe
./lib/fdLeak.exe))
; rtopIntegration on Windows requires lambda-term with the ConPTY segfault fix.
; See: https://github.com/ocaml-community/lambda-term/pull/125
; On Windows, only enabled for OCaml >= 5.0 (opam-ci pins the fixed lambda-term).
; esy-ci uses 4.14 so the test is naturally skipped there.
(cram
(applies_to rtopIntegration)
(package rtop)
(enabled_if
(or
(= %{os_type} Unix)
(and
(= %{os_type} Win32)
(>= %{ocaml_version} 5.0.0))))
(deps %{bin:ocamlc} %{bin:rtop}))