Add uefi variable store tests

Component tests for the uefi variable store are added and
bugs fixed such that all added tests pass. Tests are added
to the component-test deployment.

Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: Idde768a9fac1f18b370069d104f823fac6456ae5
diff --git a/components/service/smm_variable/backend/test/component.cmake b/components/service/smm_variable/backend/test/component.cmake
new file mode 100644
index 0000000..8464e6e
--- /dev/null
+++ b/components/service/smm_variable/backend/test/component.cmake
@@ -0,0 +1,14 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+	message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+	"${CMAKE_CURRENT_LIST_DIR}/variable_index_tests.cpp"
+	"${CMAKE_CURRENT_LIST_DIR}/variable_store_tests.cpp"
+	)