diff test/suite_aggrs/config.lua @ 461:236015fdf7a8

suite_aggrs: - added support to gen unions in addition to structs - regenerated struct/union-mixed and nested cases - made rand-sig.lua ignore closing struct/union chars if not opened, effectively reducing number of empty aggregates as it now generated way too much
author Tassilo Philipp
date Mon, 31 Jan 2022 14:41:11 +0100
parents c497b87552f6
children 653b65580cb4
line wrap: on
line diff
--- a/test/suite_aggrs/config.lua	Sun Jan 30 17:12:47 2022 +0100
+++ b/test/suite_aggrs/config.lua	Mon Jan 31 14:41:11 2022 +0100
@@ -4,16 +4,16 @@
 maxaggrdepth = 3    -- max nesting depth of aggregates, 1 = no nesting
 emptyaggrs   = true -- whether to allow empty aggregates or not
 ncases       = 400
-types        = "csijlpfd{}"
+types        = "csijlpfd{}<>"  -- {...} for structs, <...> for unions
 seed         = 2112
 
 -- specify types more than once to increase relative occurance, e.g.:
 
--- this favors non-struct args, especially ints (and also increases avg num of struct fields):
+-- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields):
 --types       = "ccssiiiiijjllpfd{}"
 
--- this heavily favors nested structs:
+-- this heavily favors nested structs, while not having any union:
 --types       = "csijlpfd{{{{{{}"
 
--- this heavily favors flat and short/empty structs:
---types       = "csijlpfd{}}}}}}"
+-- this heavily favors flat and short/empty aggregates:
+--types       = "csijlpfd{}}}}}}<>>>>>"