Enable gtest for testing LED set operations
This patchset enables gtest to allow different combinations
of LED set operations to be verified at build time.
Change-Id: I9c2ddf82c2e23be911233b23037ee44e3ce301db
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/parse_led.py b/parse_led.py
index ea58876..35f67aa 100755
--- a/parse_led.py
+++ b/parse_led.py
@@ -11,9 +11,9 @@
ofile.write('/* !!! WARNING: This is a GENERATED Code..')
ofile.write('Please do NOT Edit !!! */\n\n')
- ofile.write('const std::map<std::string,')
- ofile.write(' std::set<phosphor::led::Manager::LedAction>>')
- ofile.write(' phosphor::led::Manager::ledMap = {\n\n')
+ ofile.write('static const std::map<std::string,')
+ ofile.write(' std::set<phosphor::led::Layout::LedAction>>')
+ ofile.write(' systemLedMap = {\n\n')
for group in ifile.iterkeys():
# Value of this group is a std::set<string, led structure>
ledset = ifile[group]
@@ -23,7 +23,7 @@
for name, value in list_dict.iteritems():
if group and led_dict and name and value:
ofile.write(' {\"' + led_dict + '\",')
- ofile.write(value + '},\n')
+ ofile.write('phosphor::led::Layout::' + value + '},\n')
ofile.write(' }},\n')
ofile.write('};\n')