diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-25 22:14:54 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-19 16:26:47 -0400 |
commit | b97bfff73e44e53571f8a00b80ec947496930d7b (patch) | |
tree | 3170f4472c9a651e563344aac6addc31d4ac7b2b /src/test/templates | |
parent | 4041d720cf6387aa198c620cc9c6eaa86ac18cba (diff) | |
download | phosphor-dbus-monitor-b97bfff73e44e53571f8a00b80ec947496930d7b.tar.gz phosphor-dbus-monitor-b97bfff73e44e53571f8a00b80ec947496930d7b.zip |
Add testcase for conditions
Change-Id: I94059c0be78d5b97e7e0e11c78d4a164a98a483e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/test/templates')
-rw-r--r-- | src/test/templates/conditiongentest.mako.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/templates/conditiongentest.mako.hpp b/src/test/templates/conditiongentest.mako.hpp new file mode 100644 index 0000000..d3267bb --- /dev/null +++ b/src/test/templates/conditiongentest.mako.hpp @@ -0,0 +1,12 @@ +const std::array<std::vector<size_t>, ${len(callbackgroups)}> groups = {{ +% for g in callbackgroups: + {${', '.join([str(x) for x in g.members])}}, +% endfor +}}; + +<% graphs = [ x for x in callbacks if hasattr(x, 'graph')] %>\ +const std::array<size_t, ${len(graphs)}> callbacks = { +% for g in graphs: + ${g.graph}, +% endfor +}; |