tegra: Install tegra-openclose test
authorThierry Reding <treding@nvidia.com>
Tue, 20 Mar 2018 12:34:48 +0000 (13:34 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 23 Feb 2022 14:39:55 +0000 (15:39 +0100)
Allow this simple test to be installed so that it can easily be run on a
target device.

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
tests/tegra/.gitignore
tests/tegra/meson.build

index 5c5216c..56cfb62 100644 (file)
@@ -1 +1 @@
-openclose
+tegra-openclose
index 4f8c54f..fbf4e6d 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
+inc_tegra = include_directories('../../tegra')
+
 openclose = executable(
-  'openclose',
+  'tegra-openclose',
   files('openclose.c'),
-  include_directories : [inc_root, inc_drm, include_directories('../../tegra')],
+  include_directories : [inc_root, inc_drm, inc_tegra],
   c_args : libdrm_c_args,
   link_with : [libdrm, libdrm_tegra],
+  install : with_install_tests,
 )