annotate test/suite_aggrs/config.lua @ 462:653b65580cb4

suite_aggr: - added arrays (inside of structs/unions, only, as only way to pass/return them by value) - cleanups and pregen of source
author Tassilo Philipp
date Tue, 01 Feb 2022 21:44:18 +0100
parents 236015fdf7a8
children bd8f5da2c74b
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
462
653b65580cb4 suite_aggr:
Tassilo Philipp
parents: 461
diff changeset
4 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
5 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
6 maxaggrdepth = 3 -- max nesting depth of aggregates, 1 = no nesting
446
54c1dc2e6ea5 suite_aggrs: added knob to enable/disable generation of empty structs (some compilers like Plan9's pcc don't allow them)
Tassilo Philipp
parents: 434
diff changeset
7 emptyaggrs = true -- whether to allow empty aggregates or not
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
8 ncases = 400
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
9 types = "csijlpfd{}<>" -- {...} for structs, <...> for unions
434
3d2c5d156d78 - test/suite_aggrs: support for nested structs, now
Tassilo Philipp
parents: 432
diff changeset
10 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
11
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
12 -- 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
13
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
14 -- 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
15 --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
16
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
17 -- 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
18 --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
19
461
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
20 -- this heavily favors flat and short/empty aggregates:
236015fdf7a8 suite_aggrs:
Tassilo Philipp
parents: 453
diff changeset
21 --types = "csijlpfd{}}}}}}<>>>>>"