Persistence the led group asserted value by default

Currently, only IBM's P10 machine will persist the Asserted attribute
value of ledGroup by default. But for other systems, most do not need
to perform persistence actions.

The intent behind this commit is to add a switch to control the
persistence function, and it is enabled by default in CI and disabled
by default in Yocto.

Tested: Regardless of whether `persistent-led-asserted` is enabled or
disabled, the ledmanager process works fine.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I75b59a12dde417a9ccadaf25b2af07fc33186a01
diff --git a/test/meson.build b/test/meson.build
index 18c1192..29d4b95 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -21,15 +21,21 @@
 
 test_sources = [
   '../manager/manager.cpp',
-  '../manager/serialize.cpp',
   '../utils.cpp'
 ]
 
 tests = [
   'utest.cpp',
-  'utest-serialize.cpp',
   'utest-led-json.cpp',
 ]
+if get_option('persistent-led-asserted').enabled()
+  test_sources += [
+    '../manager/serialize.cpp',
+  ]
+  tests += [
+    'utest-serialize.cpp',
+  ]
+endif
 
 foreach t : tests
   test(t, executable(t.underscorify(), t,