aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Engestrom2018-02-01 05:12:05 -0600
committerEric Engestrom2018-03-20 13:19:26 -0500
commit0926f0af54d654b1a95826066edcae30b8052581 (patch)
tree546efdeadf79644a90ca0c0418dbdea848b81ef4 /tests
parent431f1a147e33b3fae7ea78a47d40a6014b682ebd (diff)
downloadexternal-libgbm-0926f0af54d654b1a95826066edcae30b8052581.tar.gz
external-libgbm-0926f0af54d654b1a95826066edcae30b8052581.tar.xz
external-libgbm-0926f0af54d654b1a95826066edcae30b8052581.zip
meson,configure: include config.h automatically
This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/amdgpu_test.c4
-rw-r--r--tests/amdgpu/basic_tests.c4
-rw-r--r--tests/amdgpu/bo_tests.c4
-rw-r--r--tests/amdgpu/cs_tests.c4
-rw-r--r--tests/amdgpu/deadlock_tests.c4
-rw-r--r--tests/amdgpu/uvd_enc_tests.c4
-rw-r--r--tests/amdgpu/vce_tests.c4
-rw-r--r--tests/amdgpu/vcn_tests.c4
-rw-r--r--tests/amdgpu/vm_tests.c4
-rw-r--r--tests/etnaviv/etnaviv_2d_test.c4
-rw-r--r--tests/etnaviv/etnaviv_bo_cache_test.c4
-rw-r--r--tests/exynos/exynos_fimg2d_test.c4
-rw-r--r--tests/kms/kms-steal-crtc.c4
-rw-r--r--tests/kms/kms-universal-planes.c4
-rw-r--r--tests/kms/libkms-test-crtc.c4
-rw-r--r--tests/kms/libkms-test-device.c4
-rw-r--r--tests/kms/libkms-test-framebuffer.c4
-rw-r--r--tests/kms/libkms-test-plane.c4
-rw-r--r--tests/kms/libkms-test-screen.c4
-rw-r--r--tests/modetest/buffers.c4
-rw-r--r--tests/modetest/cursor.c4
-rw-r--r--tests/modetest/modetest.c4
-rw-r--r--tests/nouveau/threaded.c4
-rw-r--r--tests/tegra/openclose.c4
-rw-r--r--tests/util/format.c4
-rw-r--r--tests/util/kms.c4
-rw-r--r--tests/util/pattern.c4
-rw-r--r--tests/vbltest/vbltest.c4
28 files changed, 0 insertions, 112 deletions
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c
index e49f4a6c..96fcd687 100644
--- a/tests/amdgpu/amdgpu_test.c
+++ b/tests/amdgpu/amdgpu_test.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <string.h> 24#include <string.h>
29#include <stdio.h> 25#include <stdio.h>
30#include <stdlib.h> 26#include <stdlib.h>
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index 0ea010a8..1adbddd9 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
index 24698bcb..9d4da4af 100644
--- a/tests/amdgpu/bo_tests.c
+++ b/tests/amdgpu/bo_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29 25
30#include "CUnit/Basic.h" 26#include "CUnit/Basic.h"
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
index a5361cd5..7ad0f0dc 100644
--- a/tests/amdgpu/cs_tests.c
+++ b/tests/amdgpu/cs_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29 25
30#include "CUnit/Basic.h" 26#include "CUnit/Basic.h"
diff --git a/tests/amdgpu/deadlock_tests.c b/tests/amdgpu/deadlock_tests.c
index 96c99c96..1eb5761a 100644
--- a/tests/amdgpu/deadlock_tests.c
+++ b/tests/amdgpu/deadlock_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/amdgpu/uvd_enc_tests.c b/tests/amdgpu/uvd_enc_tests.c
index 0377c1a5..b4251bcf 100644
--- a/tests/amdgpu/uvd_enc_tests.c
+++ b/tests/amdgpu/uvd_enc_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
index 75821bbb..25c0b1fb 100644
--- a/tests/amdgpu/vce_tests.c
+++ b/tests/amdgpu/vce_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c
index 2eb8c434..d9f05af8 100644
--- a/tests/amdgpu/vcn_tests.c
+++ b/tests/amdgpu/vcn_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c
index 502a9405..7b6dc5d6 100644
--- a/tests/amdgpu/vm_tests.c
+++ b/tests/amdgpu/vm_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include "CUnit/Basic.h" 24#include "CUnit/Basic.h"
29 25
30#include "amdgpu_test.h" 26#include "amdgpu_test.h"
diff --git a/tests/etnaviv/etnaviv_2d_test.c b/tests/etnaviv/etnaviv_2d_test.c
index 10751c73..8dd77b66 100644
--- a/tests/etnaviv/etnaviv_2d_test.c
+++ b/tests/etnaviv/etnaviv_2d_test.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include "config.h"
29#endif
30
31#include <fcntl.h> 27#include <fcntl.h>
32#include <stdio.h> 28#include <stdio.h>
33#include <string.h> 29#include <string.h>
diff --git a/tests/etnaviv/etnaviv_bo_cache_test.c b/tests/etnaviv/etnaviv_bo_cache_test.c
index fb01f8d3..7fb06293 100644
--- a/tests/etnaviv/etnaviv_bo_cache_test.c
+++ b/tests/etnaviv/etnaviv_bo_cache_test.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include "config.h"
29#endif
30
31#undef NDEBUG 27#undef NDEBUG
32#include <assert.h> 28#include <assert.h>
33 29
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index dcb2e35a..99bb9233 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -23,10 +23,6 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdio.h> 27#include <stdio.h>
32#include <string.h> 28#include <string.h>
diff --git a/tests/kms/kms-steal-crtc.c b/tests/kms/kms-steal-crtc.c
index 4b830d27..cd40758d 100644
--- a/tests/kms/kms-steal-crtc.c
+++ b/tests/kms/kms-steal-crtc.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <fcntl.h> 25#include <fcntl.h>
30#include <signal.h> 26#include <signal.h>
diff --git a/tests/kms/kms-universal-planes.c b/tests/kms/kms-universal-planes.c
index 89057bb5..2163c987 100644
--- a/tests/kms/kms-universal-planes.c
+++ b/tests/kms/kms-universal-planes.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <fcntl.h> 24#include <fcntl.h>
29#include <getopt.h> 25#include <getopt.h>
30#include <stdbool.h> 26#include <stdbool.h>
diff --git a/tests/kms/libkms-test-crtc.c b/tests/kms/libkms-test-crtc.c
index 3adb4903..2c28face 100644
--- a/tests/kms/libkms-test-crtc.c
+++ b/tests/kms/libkms-test-crtc.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include "libkms-test.h" 24#include "libkms-test.h"
29 25
30struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id) 26struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id)
diff --git a/tests/kms/libkms-test-device.c b/tests/kms/libkms-test-device.c
index 042ae05d..d3bb11ce 100644
--- a/tests/kms/libkms-test-device.c
+++ b/tests/kms/libkms-test-device.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <string.h> 25#include <string.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/kms/libkms-test-framebuffer.c b/tests/kms/libkms-test-framebuffer.c
index c9e5ad3c..9bb2d95b 100644
--- a/tests/kms/libkms-test-framebuffer.c
+++ b/tests/kms/libkms-test-framebuffer.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/kms/libkms-test-plane.c b/tests/kms/libkms-test-plane.c
index 8eb78af1..6c40a3c9 100644
--- a/tests/kms/libkms-test-plane.c
+++ b/tests/kms/libkms-test-plane.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/kms/libkms-test-screen.c b/tests/kms/libkms-test-screen.c
index 33690222..bbe972a0 100644
--- a/tests/kms/libkms-test-screen.c
+++ b/tests/kms/libkms-test-screen.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c
index 4fd310b9..9b635c0c 100644
--- a/tests/modetest/buffers.c
+++ b/tests/modetest/buffers.c
@@ -24,10 +24,6 @@
24 * IN THE SOFTWARE. 24 * IN THE SOFTWARE.
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <assert.h> 27#include <assert.h>
32#include <errno.h> 28#include <errno.h>
33#include <stdio.h> 29#include <stdio.h>
diff --git a/tests/modetest/cursor.c b/tests/modetest/cursor.c
index 6de82a4a..829bced1 100644
--- a/tests/modetest/cursor.c
+++ b/tests/modetest/cursor.c
@@ -22,10 +22,6 @@
22 * IN THE SOFTWARE. 22 * IN THE SOFTWARE.
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <assert.h> 25#include <assert.h>
30#include <errno.h> 26#include <errno.h>
31#include <stdio.h> 27#include <stdio.h>
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index fb9f15fc..62957d84 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -38,10 +38,6 @@
38 * the mode has been programmed, along with possible test patterns. 38 * the mode has been programmed, along with possible test patterns.
39 */ 39 */
40 40
41#ifdef HAVE_CONFIG_H
42#include "config.h"
43#endif
44
45#include <assert.h> 41#include <assert.h>
46#include <ctype.h> 42#include <ctype.h>
47#include <stdbool.h> 43#include <stdbool.h>
diff --git a/tests/nouveau/threaded.c b/tests/nouveau/threaded.c
index 281af460..3669bcd3 100644
--- a/tests/nouveau/threaded.c
+++ b/tests/nouveau/threaded.c
@@ -20,10 +20,6 @@
20 * OTHER DEALINGS IN THE SOFTWARE. 20 * OTHER DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#ifdef HAVE_CONFIG_H
24# include "config.h"
25#endif
26
27#include <sys/ioctl.h> 23#include <sys/ioctl.h>
28#include <dlfcn.h> 24#include <dlfcn.h>
29#include <fcntl.h> 25#include <fcntl.h>
diff --git a/tests/tegra/openclose.c b/tests/tegra/openclose.c
index 881d8aa4..f80f52d4 100644
--- a/tests/tegra/openclose.c
+++ b/tests/tegra/openclose.c
@@ -20,10 +20,6 @@
20 * OTHER DEALINGS IN THE SOFTWARE. 20 * OTHER DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#ifdef HAVE_CONFIG_H
24# include "config.h"
25#endif
26
27#include <fcntl.h> 23#include <fcntl.h>
28#include <stdio.h> 24#include <stdio.h>
29#include <unistd.h> 25#include <unistd.h>
diff --git a/tests/util/format.c b/tests/util/format.c
index 043cfe7f..15ac5e1e 100644
--- a/tests/util/format.c
+++ b/tests/util/format.c
@@ -23,10 +23,6 @@
23 * IN THE SOFTWARE. 23 * IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdint.h> 26#include <stdint.h>
31#include <stdlib.h> 27#include <stdlib.h>
32#include <string.h> 28#include <string.h>
diff --git a/tests/util/kms.c b/tests/util/kms.c
index 028cc8d9..8b3e7878 100644
--- a/tests/util/kms.c
+++ b/tests/util/kms.c
@@ -37,10 +37,6 @@
37 * the mode has been programmed, along with possible test patterns. 37 * the mode has been programmed, along with possible test patterns.
38 */ 38 */
39 39
40#ifdef HAVE_CONFIG_H
41#include "config.h"
42#endif
43
44#include <errno.h> 40#include <errno.h>
45#include <stdint.h> 41#include <stdint.h>
46#include <stdio.h> 42#include <stdio.h>
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index 75a458d4..9fa0a417 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -23,10 +23,6 @@
23 * IN THE SOFTWARE. 23 * IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdint.h> 26#include <stdint.h>
31#include <stdio.h> 27#include <stdio.h>
32#include <stdlib.h> 28#include <stdlib.h>
diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 3f6b803a..48708d20 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -24,10 +24,6 @@
24 * IN THE SOFTWARE. 24 * IN THE SOFTWARE.
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <assert.h> 27#include <assert.h>
32#include <stdio.h> 28#include <stdio.h>
33#include <stdlib.h> 29#include <stdlib.h>