Mercurial > pub > dyncall > dyncall
annotate test/callback_suite/config-random.lua @ 410:7608e34098b0
- cleanups, simplifications, some api clarification, ...
- test cases consistency:
* return status code depending on test results (for actual conformance tests, not stuff that is not an example or hack to check something, ..)
* platform init helper added for some
author | Tassilo Philipp |
---|---|
date | Tue, 05 Oct 2021 21:53:04 +0200 |
parents | ca36937b4613 |
children | 45ac093ca822 |
rev | line source |
---|---|
0 | 1 -- section 'main' -------------------------------------------------------------- |
2 | |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
0
diff
changeset
|
3 nsigs = 800 -- number of test cases |
0 | 4 mode = "random" -- generatore mode: 'random' or 'ordered' type sequences |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
0
diff
changeset
|
5 minargs = 0 -- minimum num. of supported arguments (>= 0) |
0 | 6 maxargs = 67 -- maximum num. of supported arguments (>= minargs) |
7 | |
8 | |
9 -- section 'types' ------------------------------------------------------------- | |
10 | |
11 argtypes = "BcCsSiIjJlLpfd" -- supported argument types | |
12 rettypes = argtypes -- supported return types (currently no void support) | |
13 | |
14 | |
15 -- section 'ordered' ----------------------------------------------------------- | |
16 | |
17 offset = 0 -- permutation index offset (default = 0) | |
18 step = 1 -- permutation index increment (default = 1) | |
19 | |
20 | |
21 -- section 'random' ------------------------------------------------------------ | |
22 | |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
0
diff
changeset
|
23 seed = 40 -- random seed |
0 | 24 |
25 | |
26 -- section 'calling convention' (useful on Windows for now) -------------------- | |
27 | |
28 api = "" -- calling convention ("__stdcall" or "__fastcall") | |
29 -- for gcc use "__attribute__((__stdcall__))" or "__attribute__((__fastcall__))" | |
30 -- for ms ? | |
31 ccprefix = "" -- signature prefix ("_s" (stdcall), "_f" (gcc fastcall) or "_F" (microsoft fastcall)) |