File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 371
371
(alias runtest)
372
372
(action (diff ocaml-errors-ellipsis/test-case .md ocaml-errors-ellipsis.actual)))
373
373
374
+ (rule
375
+ (target os_type.actual)
376
+ (deps (package mdx) (source_tree os_type))
377
+ (action
378
+ (with -stdout-to %{ target}
379
+ (chdir os_type
380
+ (run ocaml-mdx test -- output - test-case.md)))))
381
+
382
+ (rule
383
+ (alias runtest)
384
+ (action (diff os_type/test-case .md os_type.actual)))
385
+
374
386
(rule
375
387
(target padding.actual)
376
388
(deps (package mdx) (source_tree padding))
Original file line number Diff line number Diff line change
1
+ Mdx can skip blocks based on ` os_type ` :
2
+
3
+ ``` ocaml os_type<>Win32
4
+ # #require "unix"
5
+ # Unix.nice 0
6
+ - : int = 0
7
+ ```
8
+
9
+ ``` ocaml os_type=Win32
10
+ # #require "unix"
11
+ # Unix.nice 0
12
+ Exception: Invalid_argument "Unix.nice not implemented".
13
+ ```
You can’t perform that action at this time.
0 commit comments