Mercurial > pub > dyncall > dyncall
annotate test/callback_suite/config.lua @ 509:f3d44195dbdf
callback_suite:
- further, big refactoring to make the test data setup be a lot more in line with call_suite and call_suite_aggrs
- added support to test void return values (was missing in prev version)
author | Tassilo Philipp |
---|---|
date | Sat, 09 Apr 2022 23:00:24 +0200 |
parents | 049e04af13c8 |
children | 1a813b706de4 |
rev | line source |
---|---|
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
44
diff
changeset
|
1 -- auto-generated file from template config-random.lua (created by GNUmake) |
0 | 2 -- section 'main' -------------------------------------------------------------- |
3 | |
495
45ac093ca822
- test/callback_suite: make it use shared random sig generator from call_suite and call_suite_aggrs
Tassilo Philipp
parents:
105
diff
changeset
|
4 ncases = 800 -- number of test cases (note: inf loop if higher than max arg permutation) |
0 | 5 mode = "random" -- generatore mode: 'random' or 'ordered' type sequences |
6 minargs = 0 -- minimum num. of supported arguments (>= 0) | |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
44
diff
changeset
|
7 maxargs = 67 -- maximum num. of supported arguments (>= minargs) |
0 | 8 |
9 | |
10 -- section 'types' ------------------------------------------------------------- | |
11 | |
505 | 12 types = "BcCsSiIjJlLpfd" -- supported argument types |
509 | 13 rtypes = nil -- supported return types (set to nil to use "v"..types) |
0 | 14 |
15 | |
16 -- section 'ordered' ----------------------------------------------------------- | |
17 | |
18 offset = 0 -- permutation index offset (default = 0) | |
19 step = 1 -- permutation index increment (default = 1) | |
20 | |
21 | |
22 -- section 'random' ------------------------------------------------------------ | |
23 | |
505 | 24 seed = 40 -- random seed |
0 | 25 |
26 | |
27 -- section 'calling convention' (useful on Windows for now) -------------------- | |
28 | |
29 api = "" -- calling convention ("__stdcall" or "__fastcall") | |
505 | 30 -- for gcc use "__attribute__((__stdcall__))" or "__attribute__((__fastcall__))" |
31 -- for ms ? | |
0 | 32 ccprefix = "" -- signature prefix ("_s" (stdcall), "_f" (gcc fastcall) or "_F" (microsoft fastcall)) |