summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@stericsson.com>2013-01-30 14:34:00 +0100
committerRob Clark <robdclark@gmail.com>2013-03-25 10:34:16 -0400
commit62d8866021f04bc8afc8e63d366c71d11c817bc9 (patch)
tree45d81ab12c103f9b79e81a5283c44073bd2954f5 /tests
parent36a2daad2416ad55a859c483b0d7ed93a5eff6e0 (diff)
tests: allow tests programs to be installed
Install test programs is useful in cross compilation case. By default the behavior is the same and test programs aren't installed in $bindir. If --enable-install-test-programs is set then test programs are installed in $bindir. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kmstest/Makefile.am5
-rw-r--r--tests/modeprint/Makefile.am5
-rw-r--r--tests/modetest/Makefile.am5
-rw-r--r--tests/vbltest/Makefile.am6
4 files changed, 20 insertions, 1 deletions
diff --git a/tests/kmstest/Makefile.am b/tests/kmstest/Makefile.am
index ae562a10..7903a267 100644
--- a/tests/kmstest/Makefile.am
+++ b/tests/kmstest/Makefile.am
@@ -3,8 +3,13 @@ AM_CFLAGS = \
-I$(top_srcdir)/libkms/ \
-I$(top_srcdir)
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = \
+ kmstest
+else
noinst_PROGRAMS = \
kmstest
+endif
kmstest_SOURCES = \
main.c
diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am
index c4862acd..6420ef33 100644
--- a/tests/modeprint/Makefile.am
+++ b/tests/modeprint/Makefile.am
@@ -2,8 +2,13 @@ AM_CFLAGS = \
-I$(top_srcdir)/include/drm \
-I$(top_srcdir)
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = \
+ modeprint
+else
noinst_PROGRAMS = \
modeprint
+endif
modeprint_SOURCES = \
modeprint.c
diff --git a/tests/modetest/Makefile.am b/tests/modetest/Makefile.am
index 065ae132..410c6326 100644
--- a/tests/modetest/Makefile.am
+++ b/tests/modetest/Makefile.am
@@ -3,8 +3,13 @@ AM_CFLAGS = \
-I$(top_srcdir)/libkms/ \
-I$(top_srcdir)
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = \
+ modetest
+else
noinst_PROGRAMS = \
modetest
+endif
modetest_SOURCES = \
buffers.c modetest.c buffers.h
diff --git a/tests/vbltest/Makefile.am b/tests/vbltest/Makefile.am
index 77f90370..f99b6a23 100644
--- a/tests/vbltest/Makefile.am
+++ b/tests/vbltest/Makefile.am
@@ -1,9 +1,13 @@
AM_CFLAGS = \
-I$(top_srcdir)/include/drm \
-I$(top_srcdir)
-
+if HAVE_INSTALL_TESTS
+noinst_PROGRAMS = \
+ vbltest
+else
noinst_PROGRAMS = \
vbltest
+endif
vbltest_SOURCES = \
vbltest.c