Skip to content

Commit 1a3da2e

Browse files
authored
Merge pull request #380 from talex5/labels-doc
Document the possible labels
2 parents 889069a + 96bcbae commit 1a3da2e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ OCaml documentation comments:
136136
]}
137137
*)
138138

139+
The possible labels are:
140+
141+
- `skip` -- ignore this block
142+
- `ocaml`, `cram`, `toplevel`, `include` -- set the block type
143+
- `version=VERSION` -- set OCaml version
144+
- `non-deterministic[=output|command]` -- see "Non-deterministic tests" section
145+
- `dir=PATH` -- set the directory where the tests should be run
146+
- `source-tree=PATH` -- does nothing?
147+
- `file=PATH` -- see the "File sync" section
148+
- `part=PART` -- see the "File sync" section
149+
- `env=ENV` -- see the "Named execution environments" section
150+
- `set-VAR=VALUE` -- set an environment variable
151+
- `unset-VAR` -- unset an environment variable
139152

140153
#### Shell Scripts
141154

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$ sudo rm -rf /
1+
$ sudo chmod a-x /usr

test/bin/mdx-test/expect/shell-file-inc/test-case.md.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Mdx can include text from any file:
22

33

44
```sh file=script.sh
5-
$ sudo rm -rf /
5+
$ sudo chmod a-x /usr
66
```

0 commit comments

Comments
 (0)