-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdrom.toml
175 lines (140 loc) · 4.33 KB
/
drom.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[project]
drom-version = "0.1"
share-repo = "https://github.com/OCamlPro/drom-share"
share-version = "0.9.1"
[project]
authors = ["Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com>"]
ci-systems = ["ubuntu-latest", "macos-latest", "windows-latest"]
copyright = "OCamlPro SAS"
edition = "4.13.0"
github-organization = "ocamlpro"
license = "GPL3"
min-edition = "4.10.0"
name = "autofonce"
skeleton = "program"
synopsis = "A modern runner for GNU Autoconf Testsuites"
version = "1.0"
# keys that you could also define:
# odoc-target = "...odoc-target..."
# sphinx-target = "...sphinx-target..."
# archive = "...archive..."
# dev-repo = "...dev-repo..."
# bug-reports = "...bug-reports..."
# doc-api = "...doc-api..."
# doc-gen = "...doc-gen..."
# homepage = "...homepage..."
[project]
description = """
autofonce is a modern runner for GNU Autoconf Testsuites:
autofonce has a limited understanding of m4 macros that appear in testsuites
written for the GNU Autoconf testsuites, and can run such tests in a modern
way.
"""
[project]
skip = ["@test", "tests", "CHANGES.md", ".github/workflows/workflow.yml", "sphinx/install.rst", "sphinx/index.rst", "sphinx/about.rst"]
# project-wide library dependencies (not for package-specific deps)
[dependencies]
# project-wide tools dependencies (not for package-specific deps)
[tools.ocamlformat]
for-test = true
[tools.odoc]
for-doc = true
[tools.ppx_expect]
for-test = true
[tools.ppx_inline_test]
for-test = true
[project]
# dirs to skip while scanning for dune files
skip-dirs = []
# dirs to scan for share/ folders (with package names)
share-dirs = ["share"]
# build profile to use by default
# build-profile = ...
# Profile options for this project
# [profile]
# dev = { ocaml-flags = "-w +a-4-40-41-42-44" }
# release = { ocaml-flags = "-w -a" }
[profile]
# ...
# project-wide fields (depends on project skeleton)
# examples:
# docker-alpine-image = "ocamlpro/ocaml:4.13"
# dune-lang = "2.1"
# readme-trailer = "..."
# dot-gitignore-trailer = "..."
[fields]
docker-alpine-image = "ocamlpro/ocaml:4.12"
dot-gitignore-trailer = """
/autofonce-*.bin
/gh-pages
*.exe
"""
readme-trailer = """
## Main Features
* automatic run from any directory in the project
* short display focusing on failed tests
* automatic parallel execution
* promotion of tests results to fix tests
## Example of Autofonce Test
Here is a simple example of test understood by `autofonce`:
```
# Start of a test, and the name that will be displayed
AT_SETUP([Example test])
# can be used to select tests to run:
AT_KEYWORDS([example test autofonce])
# create a file `file` with its content
AT_DATA([file], [
content of file
on multiple lines
])
# call some command, check its exit code, stdout, stderr
AT_CHECK([cat file], [0], [stdout of my command], [stderr of my command])
# you can do more, ignore some results, run more tests in case of failure, etc.
# end of the test
AT_CLEANUP
```
Now, copy this test in a file `test.at`, and run `autofonce`:
```
$ autofonce init
$ autofonce run -T test.at
Project description loaded from $PWD/autofonce.toml
Loading tests from file "$PWD/test.at"
Creating testing directory $PWD/_autofonce
0001 Example test FAIL (test.at:14:0 stdout stderr)
Results:
* 1 checks performed
* 0 / 1 tests executed successfully
* 1 tests failed: 0001
File "$PWD/_autofonce/results.log" created with failure results
zsh: exit 1 autofonce run -T test.at
```
"""
static-clibs = "ANSITerminal_stubs"
[[package]]
dir = "src/autofonce"
# edit 'src/autofonce/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_core"
# edit 'src/autofonce_core/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_lib"
# edit 'src/autofonce_lib/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_m4"
# edit 'src/autofonce_m4/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_share"
# edit 'src/autofonce_share/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_patch"
# edit 'src/autofonce_patch/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_config"
# edit 'src/autofonce_config/package.toml' for package-specific options
[[package]]
dir = "src/autofonce_misc"
# edit 'src/autofonce_misc/package.toml' for package-specific options
[[package]]
dir = "src/ez_win32"
[[package]]
dir = "src/ez_call"