tests: drivers: build_all: Add test for display drivers

Add a blank test to cover building drivers that are in drivers/display/

Signed-off-by: Mohamed ElShahawi <ExtremeGTX@hotmail.com>
diff --git a/tests/drivers/build_all/display/CMakeLists.txt b/tests/drivers/build_all/display/CMakeLists.txt
new file mode 100644
index 0000000..518596a
--- /dev/null
+++ b/tests/drivers/build_all/display/CMakeLists.txt
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: Apache-2.0
+
+cmake_minimum_required(VERSION 3.20.0)
+find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
+project(build_all)
+
+FILE(GLOB app_sources src/*.c)
+target_sources(app PRIVATE ${app_sources})
diff --git a/tests/drivers/build_all/display/app.overlay b/tests/drivers/build_all/display/app.overlay
new file mode 100644
index 0000000..d8628f4
--- /dev/null
+++ b/tests/drivers/build_all/display/app.overlay
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2022, Kumar Gala <galak@kernel.org>
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Application overlay for testing driver builds
+ *
+ * Names in this file should be chosen in a way that won't conflict
+ * with real-world devicetree nodes, to allow these tests to run on
+ * (and be extended to test) real hardware.
+ */
+
+/ {
+	test {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		test_gpio: gpio@deadbeef {
+			compatible = "vnd,gpio";
+			gpio-controller;
+			reg = <0xdeadbeef 0x1000>;
+			#gpio-cells = <0x2>;
+			status = "okay";
+		};
+
+		test_spi: spi@33334444 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "vnd,spi";
+			reg = <0x33334444 0x1000>;
+			status = "okay";
+			clock-frequency = <2000000>;
+
+			/* one entry for every devices at spi.dtsi */
+			cs-gpios = <&test_gpio 0 0>;
+
+			test_spi_ili9342c: ili9342c@0 {
+				compatible = "ilitek,ili9342c";
+				reg = <0>;
+				spi-max-frequency = <25000000>;
+				cmd-data-gpios = <&test_gpio 0 0>;
+				pixel-format = <0>;
+				rotation = <270>;
+				width = <320>;
+				height = <240>;
+			};
+		};
+	};
+};
diff --git a/tests/drivers/build_all/display/display_ili9342c.conf b/tests/drivers/build_all/display/display_ili9342c.conf
new file mode 100644
index 0000000..c22843f
--- /dev/null
+++ b/tests/drivers/build_all/display/display_ili9342c.conf
@@ -0,0 +1 @@
+CONFIG_ILI9342C=y
diff --git a/tests/drivers/build_all/display/prj.conf b/tests/drivers/build_all/display/prj.conf
new file mode 100644
index 0000000..27dba08
--- /dev/null
+++ b/tests/drivers/build_all/display/prj.conf
@@ -0,0 +1,3 @@
+CONFIG_TEST=y
+CONFIG_SPI=y
+CONFIG_DISPLAY=y
diff --git a/tests/drivers/build_all/display/src/main.c b/tests/drivers/build_all/display/src/main.c
new file mode 100644
index 0000000..3a6688b
--- /dev/null
+++ b/tests/drivers/build_all/display/src/main.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (c) 2022, Kumar Gala <galak@kernel.org>
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+void main(void)
+{
+}
diff --git a/tests/drivers/build_all/display/testcase.yaml b/tests/drivers/build_all/display/testcase.yaml
new file mode 100644
index 0000000..06798ad
--- /dev/null
+++ b/tests/drivers/build_all/display/testcase.yaml
@@ -0,0 +1,7 @@
+common:
+  build_only: true
+  min_ram: 32
+  tags: drivers display
+tests:
+  drivers.display.ili9342c.build:
+    extra_args: CONF_FILE=display_ili9342c.conf