annotate test/callback_suite/config-random.lua @ 528:e56241bba0f5

- test/callback_suite: reduce number of args, as it uses macros in generated cases.h and some platforms' preprocessor cannot handle that many args
author Tassilo Philipp
date Thu, 14 Apr 2022 14:44:40 +0200
parents f3d44195dbdf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 -- section 'main' --------------------------------------------------------------
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
505
049e04af13c8 test/callback_suite:
Tassilo Philipp
parents: 495
diff changeset
3 ncases = 800 -- number of test cases (note: inf loop if higher than max arg permutation)
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 mode = "random" -- generatore mode: 'random' or 'ordered' type sequences
105
ca36937b4613 - more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents: 0
diff changeset
5 minargs = 0 -- minimum num. of supported arguments (>= 0)
528
e56241bba0f5 - test/callback_suite: reduce number of args, as it uses macros in generated cases.h and some platforms' preprocessor cannot handle that many args
Tassilo Philipp
parents: 509
diff changeset
6 maxargs = 60 -- maximum num. of supported arguments (>= minargs)
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 -- section 'types' -------------------------------------------------------------
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10
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
11 types = "BcCsSiIjJlLpfd" -- supported argument types
509
f3d44195dbdf callback_suite:
Tassilo Philipp
parents: 505
diff changeset
12 rtypes = nil -- supported return types (set to nil to use "v"..types)
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 -- section 'ordered' -----------------------------------------------------------
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 offset = 0 -- permutation index offset (default = 0)
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 step = 1 -- permutation index increment (default = 1)
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 -- section 'random' ------------------------------------------------------------
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22
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
23 seed = 40 -- random seed
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 -- section 'calling convention' (useful on Windows for now) --------------------
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 api = "" -- calling convention ("__stdcall" or "__fastcall")
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
29 -- for gcc use "__attribute__((__stdcall__))" or "__attribute__((__fastcall__))"
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 ccprefix = "" -- signature prefix ("_s" (stdcall), "_f" (gcc fastcall) or "_F" (microsoft fastcall))