Mercurial > pub > dyncall > dyncall
comparison test/callback_suite_aggrs/config.lua @ 523:cd46e111bc4c
- new test/callback_suite_aggrs (currently ahead of checked-in dyncall code and won't compile, though, as with call_suite_aggrs; dc code will be checked in, soon)
author | Tassilo Philipp |
---|---|
date | Wed, 13 Apr 2022 14:59:57 +0200 |
parents | |
children | 5e1002095afa |
comparison
equal
deleted
inserted
replaced
522:f7fec6699e21 | 523:cd46e111bc4c |
---|---|
1 -- user config for rand-sig.lua: | |
2 minargs = 0 | |
3 maxargs = 16 | |
4 minaggrfields= 0 -- 0 allows for empty structs/unions | |
5 maxaggrfields= 12 | |
6 maxarraylen = 16 -- see *) | |
7 arraydice = 40 -- how often to turn a member into an array (1 out of arraydice-times) | |
8 maxaggrdepth = 3 -- max nesting depth of aggregates, 1 = no nesting | |
9 reqaggrinsig = true -- require that every generated signature has at least one aggregate | |
10 ncases = 400 | |
11 types = "BcsijlCSIJLpfd{}<>" -- types to use; use '{','}' for structs, '<','>' for unions | |
12 rtypes = nil -- supported return types (set to nil to use "v"..types) | |
13 seed = 1996 | |
14 | |
15 -- *) note some callconvs pass structs via regs, so using big numbers here will | |
16 -- reduce those cases; however special alignment rules are specified in some | |
17 -- ABIs for bigger arrays, which is also worth testing | |
18 | |
19 | |
20 | |
21 -- Notes: specify types more than once to increase relative occurance, e.g.: | |
22 | |
23 -- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields): | |
24 --types = "Bccssiiiiijjllpfd{}" | |
25 | |
26 -- this heavily favors nested structs, while not having any union: | |
27 --types = "Bcsijlpfd{{{{{{}" | |
28 | |
29 -- this heavily favors flat and short/empty aggregates: | |
30 --types = "Bcsijlpfd{}}}}}}<>>>>>" | |
31 | |
32 | |
33 | |
34 -- user config for mk-cases.lua | |
35 | |
36 -- force aggregate packing, 0=off, pos values set fixed packing, neg values | |
37 -- set a random power-of-2 packing per aggregate, within [1,abs(aggrpacking)] | |
38 aggrpacking = 0 | |
39 aggrpackingseed = seed | |
40 |