Test: Add an option to select/deselect IRQ test cases

Some topologies and platforms don't support IRQ in TF-M yet. The
IRQ test should be temporarily skipped during test on those
topologies or platforms.
Add TFM_ENABLE_IRQ_TEST to select/deselect IRQ test cases.
Update the auto-generated files.

Change-Id: I6ce90fd15a8bc51bfd91741acd548bd471e43089
Signed-off-by: David Hu <david.hu@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 01c637d..ee2faee 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -180,6 +180,20 @@
 	set(TFM_PARTITION_TEST_CORE ON)
 endif()
 
+if (TFM_PARTITION_TEST_CORE)
+	# If the platform or the topology doesn't specify whether IRQ test is
+	# supported, enable it by default.
+	if (NOT DEFINED TFM_ENABLE_IRQ_TEST)
+		set(TFM_ENABLE_IRQ_TEST ON)
+	endif()
+
+	if (TFM_ENABLE_IRQ_TEST)
+		add_definitions(-DTFM_ENABLE_IRQ_TEST)
+	endif()
+else()
+	set(TFM_ENABLE_IRQ_TEST OFF)
+endif()
+
 if (CORE_TEST_IPC)
 	add_definitions(-DCORE_TEST_IPC)
 	set(TEST_FRAMEWORK_NS ON)