annotate test/suite_aggrs/config.lua @ 463:bd8f5da2c74b

suite_aggr: added configurable limits to number of struct fields (also simplified allowing (or not) empty ones)
author Tassilo Philipp
date Tue, 01 Feb 2022 22:35:08 +0100
parents 653b65580cb4
children 0f3b6898078d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
1 -- user config for rand-sig.lua:
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
2 minargs = 0
434
3d2c5d156d78 - test/suite_aggrs: support for nested structs, now
Tassilo Philipp
parents: 432
diff changeset
3 maxargs = 16
463
bd8f5da2c74b suite_aggr: added configurable limits to number of struct fields (also simplified allowing (or not) empty ones)
Tassilo Philipp
parents: 462
diff changeset
4 minaggrfields= 0 -- 0 allows for empty structs/unions
bd8f5da2c74b suite_aggr: added configurable limits to number of struct fields (also simplified allowing (or not) empty ones)
Tassilo Philipp
parents: 462
diff changeset
5 maxaggrfields= 12
462
653b65580cb4 suite_aggr:
Tassilo Philipp
parents: 461
diff changeset
6 maxarraylen = 16 -- note some callconvs pass structs via regs, so using big numbers here will reduce those cases
653b65580cb4 suite_aggr:
Tassilo Philipp
parents: 461
diff changeset
7 arraydice = 40 -- how often to turn a member into an array (1 out of arraydice-times)
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
8 maxaggrdepth = 3 -- max nesting depth of aggregates, 1 = no nesting
453
c497b87552f6 - reducing number of default pregenerated cases for suite_aggrs, as some compilers run out of memory otherwise
Tassilo Philipp
parents: 446
diff changeset
9 ncases = 400
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
10 types = "csijlpfd{}<>" -- {...} for structs, <...> for unions
434
3d2c5d156d78 - test/suite_aggrs: support for nested structs, now
Tassilo Philipp
parents: 432
diff changeset
11 seed = 2112
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
12
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
13 -- specify types more than once to increase relative occurance, e.g.:
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
14
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
15 -- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields):
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
16 --types = "ccssiiiiijjllpfd{}"
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
17
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
18 -- this heavily favors nested structs, while not having any union:
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
19 --types = "csijlpfd{{{{{{}"
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
20
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
21 -- this heavily favors flat and short/empty aggregates:
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
22 --types = "csijlpfd{}}}}}}<>>>>>"