This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
Test running inline tests in bytecode mode
|
||||
|
||||
Reproduction case for #5515
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 2.9)
|
||||
> EOF
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (library
|
||||
> (name test)
|
||||
> (modules test)
|
||||
> (inline_tests (modes byte))
|
||||
> (preprocess (pps ppx_inline_test)))
|
||||
> EOF
|
||||
|
||||
$ cat >test.ml <<EOF
|
||||
> let be =
|
||||
> match Sys.backend_type with
|
||||
> | Native -> "native"
|
||||
> | Bytecode -> "byte"
|
||||
> | Other s -> s
|
||||
> let%test "test1" =
|
||||
> print_endline be;
|
||||
> true
|
||||
> EOF
|
||||
|
||||
$ dune test
|
||||
byte
|
||||
Loading…
Add table
Add a link
Reference in a new issue