aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/meson.build34
-rw-r--r--tests/etnaviv/meson.build45
-rw-r--r--tests/exynos/meson.build54
-rw-r--r--tests/kms/meson.build49
-rw-r--r--tests/kmstest/meson.build30
-rw-r--r--tests/meson.build86
-rw-r--r--tests/modeprint/meson.build29
-rw-r--r--tests/modetest/meson.build29
-rw-r--r--tests/nouveau/meson.build30
-rw-r--r--tests/proptest/meson.build28
-rw-r--r--tests/radeon/meson.build27
-rw-r--r--tests/tegra/meson.build27
-rw-r--r--tests/util/meson.build28
-rw-r--r--tests/vbltest/meson.build28
14 files changed, 524 insertions, 0 deletions
diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build
new file mode 100644
index 00000000..4c1237c6
--- /dev/null
+++ b/tests/amdgpu/meson.build
@@ -0,0 +1,34 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21if dep_cunit.found()
22 amdgpu_test = executable(
23 'amdgpu_test',
24 files(
25 'amdgpu_test.c', 'basic_tests.c', 'bo_tests.c', 'cs_tests.c',
26 'vce_tests.c', 'uvd_enc_tests.c', 'vcn_tests.c', 'deadlock_tests.c',
27 'vm_tests.c',
28 ),
29 dependencies : [dep_cunit, dep_threads],
30 include_directories : [inc_root, inc_drm, include_directories('../../amdgpu')],
31 link_with : [libdrm, libdrm_amdgpu],
32 install : with_install_tests,
33 )
34endif
diff --git a/tests/etnaviv/meson.build b/tests/etnaviv/meson.build
new file mode 100644
index 00000000..8b4a3cfb
--- /dev/null
+++ b/tests/etnaviv/meson.build
@@ -0,0 +1,45 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21inc_etnaviv_tests = [inc_root, inc_drm, include_directories('../../etnaviv')]
22
23etnaviv_2d_test = executable(
24 'etnaviv_2d_test',
25 files('etnaviv_2d_test.c', 'write_bmp.c'),
26 include_directories : inc_etnaviv_tests,
27 link_with : [libdrm, libdrm_etnaviv],
28 install : with_install_tests,
29)
30
31etnaviv_cmd_stream_test = executable(
32 'etnaviv_cmd_stream_test',
33 files('etnaviv_cmd_stream_test.c'),
34 include_directories : inc_etnaviv_tests,
35 link_with : [libdrm, libdrm_etnaviv],
36 install : with_install_tests,
37)
38
39etnaviv_bo_cache_test = executable(
40 'etnaviv_bo_cache_test',
41 files('etnaviv_bo_cache_test.c'),
42 include_directories : inc_etnaviv_tests,
43 link_with : [libdrm, libdrm_etnaviv],
44 install : with_install_tests,
45)
diff --git a/tests/exynos/meson.build b/tests/exynos/meson.build
new file mode 100644
index 00000000..940c3ce4
--- /dev/null
+++ b/tests/exynos/meson.build
@@ -0,0 +1,54 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21inc_exynos = include_directories('../../exynos')
22
23if with_libkms
24 exynos_fimg2d_test = executable(
25 'exynos_fimg2d_test',
26 files('exynos_fimg2d_test.c'),
27 c_args : warn_c_args,
28 include_directories : [inc_root, inc_drm, inc_exynos,
29 include_directories('../../libkms')],
30 link_with : [libdrm, libkms, libdrm_exynos],
31 dependencies : dep_threads,
32 install : with_install_tests,
33 )
34endif
35
36exynos_fimg2d_perf = executable(
37 'exynos_fimg2d_perf',
38 files('exynos_fimg2d_perf.c'),
39 c_args : warn_c_args,
40 include_directories : [inc_root, inc_drm, inc_exynos],
41 link_with : [libdrm, libdrm_exynos],
42 dependencies : dep_threads,
43 install : with_install_tests,
44)
45
46exynos_fimg2d_event = executable(
47 'exynos_fimg2d_event',
48 files('exynos_fimg2d_event.c'),
49 c_args : warn_c_args,
50 include_directories : [inc_root, inc_drm, inc_exynos],
51 link_with : [libdrm, libdrm_exynos],
52 dependencies : dep_threads,
53 install : with_install_tests,
54)
diff --git a/tests/kms/meson.build b/tests/kms/meson.build
new file mode 100644
index 00000000..1f7f724d
--- /dev/null
+++ b/tests/kms/meson.build
@@ -0,0 +1,49 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21
22libkms_test = static_library(
23 'kms-test',
24 files(
25 'libkms-test-crtc.c', 'libkms-test-device.c', 'libkms-test-framebuffer.c',
26 'libkms-test-plane.c', 'libkms-test-screen.c',
27 ),
28 include_directories : [inc_root, inc_tests, inc_drm],
29 link_with : libdrm,
30 c_args : warn_c_args,
31)
32
33kms_steal_crtc = executable(
34 'kms-steal-crtc',
35 files('kms-steal-crtc.c'),
36 dependencies : dep_cairo,
37 include_directories : [inc_root, inc_tests, inc_drm],
38 link_with : [libkms_test, libutil],
39 install : with_install_tests,
40)
41
42kms_universal_planes = executable(
43 'kms-universal-planes',
44 files('kms-universal-planes.c'),
45 dependencies : dep_cairo,
46 include_directories : [inc_root, inc_tests, inc_drm],
47 link_with : [libkms_test],
48 install : with_install_tests,
49)
diff --git a/tests/kmstest/meson.build b/tests/kmstest/meson.build
new file mode 100644
index 00000000..a47d4951
--- /dev/null
+++ b/tests/kmstest/meson.build
@@ -0,0 +1,30 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21kmstest = executable(
22 'kmstest',
23 files('main.c'),
24 c_args : warn_c_args,
25 include_directories : [
26 inc_root, inc_tests, include_directories('../../libkms'), inc_drm,
27 ],
28 link_with : [libutil, libkms, libdrm],
29 install : with_install_tests,
30)
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 00000000..fdf950b7
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,86 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21inc_tests = include_directories('.')
22
23subdir('util')
24subdir('kms')
25subdir('modeprint')
26subdir('proptest')
27subdir('modetest')
28subdir('vbltest')
29if with_libkms
30 subdir('kmstest')
31endif
32if with_radeon
33 subdir('radeon')
34endif
35if with_amdgpu
36 subdir('amdgpu')
37endif
38if with_exynos
39 subdir('exynos')
40endif
41if with_tegra
42 subdir('tegra')
43endif
44if with_etnaviv
45 subdir('etnaviv')
46endif
47if with_nouveau
48 subdir('nouveau')
49endif
50
51drmsl = executable(
52 'drmsl',
53 files('drmsl.c'),
54 include_directories : [inc_root, inc_drm],
55 link_with : libdrm,
56 c_args : warn_c_args,
57)
58
59hash = executable(
60 'hash',
61 files('hash.c'),
62 include_directories : [inc_root, inc_drm],
63 link_with : libdrm,
64 c_args : warn_c_args,
65)
66
67random = executable(
68 'random',
69 files('random.c'),
70 include_directories : [inc_root, inc_drm],
71 link_with : libdrm,
72 c_args : warn_c_args,
73)
74
75drmdevice = executable(
76 'drmdevice',
77 files('drmdevice.c'),
78 include_directories : [inc_root, inc_drm],
79 link_with : libdrm,
80 c_args : warn_c_args,
81)
82
83test('random', random, timeout : 240)
84test('hash', hash)
85test('drmsl', drmsl)
86test('drmdevice', drmdevice)
diff --git a/tests/modeprint/meson.build b/tests/modeprint/meson.build
new file mode 100644
index 00000000..5f0eb24b
--- /dev/null
+++ b/tests/modeprint/meson.build
@@ -0,0 +1,29 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21modeprint = executable(
22 'modeprint',
23 files('modeprint.c'),
24 c_args : warn_c_args,
25 include_directories : [inc_root, inc_tests, inc_drm],
26 link_with : libdrm,
27 dependencies : dep_threads,
28 install : with_install_tests,
29)
diff --git a/tests/modetest/meson.build b/tests/modetest/meson.build
new file mode 100644
index 00000000..2a081845
--- /dev/null
+++ b/tests/modetest/meson.build
@@ -0,0 +1,29 @@
1# Copyright © 2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21modetest = executable(
22 'modetest',
23 files('buffers.c', 'cursor.c', 'modetest.c'),
24 c_args : [warn_c_args, '-Wno-pointer-arith'],
25 include_directories : [inc_root, inc_tests, inc_drm],
26 dependencies : [dep_threads, dep_cairo],
27 link_with : [libdrm, libutil],
28 install : with_install_tests,
29)
diff --git a/tests/nouveau/meson.build b/tests/nouveau/meson.build
new file mode 100644
index 00000000..f5d73c1e
--- /dev/null
+++ b/tests/nouveau/meson.build
@@ -0,0 +1,30 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21threaded = executable(
22 'threaded',
23 files('threaded.c'),
24 dependencies : [dep_dl, dep_threads],
25 include_directories : [inc_root, inc_drm, include_directories('../../nouveau')],
26 link_with : [libdrm, libdrm_nouveau],
27 c_args : warn_c_args,
28)
29
30test('threaded', threaded)
diff --git a/tests/proptest/meson.build b/tests/proptest/meson.build
new file mode 100644
index 00000000..22d7473e
--- /dev/null
+++ b/tests/proptest/meson.build
@@ -0,0 +1,28 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21proptest = executable(
22 'proptest',
23 files('proptest.c'),
24 c_args : warn_c_args,
25 include_directories : [inc_root, inc_tests, inc_drm],
26 link_with : [libdrm, libutil],
27 install : with_install_tests,
28)
diff --git a/tests/radeon/meson.build b/tests/radeon/meson.build
new file mode 100644
index 00000000..9e4f916e
--- /dev/null
+++ b/tests/radeon/meson.build
@@ -0,0 +1,27 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21radeon_ttm = executable(
22 'radeon_ttm',
23 files('rbo.c', 'radeon_ttm.c'),
24 include_directories : [inc_root, inc_drm],
25 link_with : libdrm,
26 c_args : warn_c_args,
27)
diff --git a/tests/tegra/meson.build b/tests/tegra/meson.build
new file mode 100644
index 00000000..9c74ac4a
--- /dev/null
+++ b/tests/tegra/meson.build
@@ -0,0 +1,27 @@
1# Copyright © 2017 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21openclose = executable(
22 'openclose',
23 files('openclose.c'),
24 include_directories : [inc_root, inc_drm, include_directories('../../tegra')],
25 c_args : warn_c_args,
26 link_with : [libdrm, libdrm_tegra],
27)
diff --git a/tests/util/meson.build b/tests/util/meson.build
new file mode 100644
index 00000000..7fa1a4b7
--- /dev/null
+++ b/tests/util/meson.build
@@ -0,0 +1,28 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21
22libutil = static_library(
23 'util',
24 [files('format.c', 'kms.c', 'pattern.c'), config_file],
25 include_directories : [inc_root, inc_drm],
26 link_with : libdrm,
27 dependencies : dep_cairo
28)
diff --git a/tests/vbltest/meson.build b/tests/vbltest/meson.build
new file mode 100644
index 00000000..ae52ab88
--- /dev/null
+++ b/tests/vbltest/meson.build
@@ -0,0 +1,28 @@
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21vbltest = executable(
22 'vbltest',
23 files('vbltest.c'),
24 c_args : warn_c_args,
25 include_directories : [inc_root, inc_tests, inc_drm],
26 link_with : [libdrm, libutil],
27 install : with_install_tests,
28)