summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-03-20 13:34:48 +0100
committerThierry Reding <treding@nvidia.com>2018-05-02 17:29:40 +0200
commit38ed9bb5aabb7344fd13d785025a8f1bf74475b5 (patch)
tree135d0487377cd8d1411498444a6122e400be5a5b
parentf5c06b4ed7975e099c1fd9d754d7a02a089251e3 (diff)
tegra: Install tegra-openclose test
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--tests/tegra/.gitignore2
-rw-r--r--tests/tegra/Makefile.am9
-rw-r--r--tests/tegra/meson.build3
3 files changed, 11 insertions, 3 deletions
diff --git a/tests/tegra/.gitignore b/tests/tegra/.gitignore
index 5c5216c5..56cfb62b 100644
--- a/tests/tegra/.gitignore
+++ b/tests/tegra/.gitignore
@@ -1 +1 @@
-openclose
+tegra-openclose
diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am
index 6a343553..d56f06c3 100644
--- a/tests/tegra/Makefile.am
+++ b/tests/tegra/Makefile.am
@@ -20,5 +20,12 @@ LDADD = \
../../libdrm.la \
libdrm-test.la
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = \
+ tegra-openclose
+else
noinst_PROGRAMS = \
- openclose
+ tegra-openclose
+endif
+
+tegra_openclose_SOURCES = openclose.c
diff --git a/tests/tegra/meson.build b/tests/tegra/meson.build
index 5d776f3c..665ba959 100644
--- a/tests/tegra/meson.build
+++ b/tests/tegra/meson.build
@@ -35,9 +35,10 @@ libdrm_test_tegra = static_library(
)
openclose = executable(
- 'openclose',
+ 'tegra-openclose',
files('openclose.c'),
include_directories : [inc_root, inc_drm, inc_tegra],
c_args : warn_c_args,
link_with : [libdrm, libdrm_tegra],
+ install : with_install_tests,
)