diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-07 23:14:57 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-04 22:40:30 -0400 |
commit | b604480a43a25d0645b944fb16c1268d36782d36 (patch) | |
tree | 8732d567daf41e7adb6c32ae71c3fe15c89a914e /src/test/templates | |
parent | 0e7df1317a055fd0a3e15fb46b1e78b6887ee2c8 (diff) | |
download | phosphor-dbus-monitor-b604480a43a25d0645b944fb16c1268d36782d36.tar.gz phosphor-dbus-monitor-b604480a43a25d0645b944fb16c1268d36782d36.zip |
Add testcases for path and path group support
Change-Id: I296de0e0cb30e0e25f6677a06bd04fe15c2fd015
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/test/templates')
-rw-r--r-- | src/test/templates/pathgentest.mako.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/templates/pathgentest.mako.hpp b/src/test/templates/pathgentest.mako.hpp new file mode 100644 index 0000000..b217c56 --- /dev/null +++ b/src/test/templates/pathgentest.mako.hpp @@ -0,0 +1,28 @@ +const std::array<std::string, ${len(meta)}> meta = { +% for m in meta: + "${m.name}"s, +% endfor +}; + +const std::array<std::string, ${len(paths)}> paths = { +% for p in paths: + "${p.name}"s, +% endfor +}; + +const std::array<PathMeta, ${len(pathmeta)}> pathMeta = {{ +% for p in pathmeta: + PathMeta{ paths[${p.path}], meta[${p.meta}] }, +% endfor +}}; + +const std::array<RefVector<const std::string>, ${len(pathgroups)}> groups = {{ +% for g in pathgroups: + // ${g.name} + { + % for p in g.members: + paths[${p[0]}], + % endfor + }, +% endfor +}}; |