summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-11-28 11:26:06 +0100
committerJens Axboe <axboe@kernel.dk>2019-11-28 08:00:55 -0700
commit6e3f6f3a35140a7dbb06bc63906948e17a77c227 (patch)
tree53c940f68a00d97eaef4d1e08fe9c7b7a9e71596 /test/Makefile
parentc8291a94ddf695447f94728a2b819550138e36e8 (diff)
downloadliburing-6e3f6f3a35140a7dbb06bc63906948e17a77c227.tar.gz
liburing-6e3f6f3a35140a7dbb06bc63906948e17a77c227.tar.bz2
liburing: create an installation target for tests
Create an installation target for liburing's regression test suite. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 40b7e76..eb83bc1 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,3 +1,8 @@
+prefix ?= /usr
+datadir ?= $(prefix)/share
+
+INSTALL=install
+
CFLAGS ?= -g -O2
XCFLAGS =
override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ -I../src/include/
@@ -41,6 +46,11 @@ send_recvmsg: XCFLAGS = -lpthread
poll-link: XCFLAGS = -lpthread
accept-link: XCFLAGS = -lpthread
+install: $(all_targets) runtests.sh runtests-loop.sh
+ $(INSTALL) -D -d -m 755 $(datadir)/liburing-test/
+ $(INSTALL) -D -m 755 $(all_targets) $(datadir)/liburing-test/
+ $(INSTALL) -D -m 755 runtests.sh $(datadir)/liburing-test/
+ $(INSTALL) -D -m 755 runtests-loop.sh $(datadir)/liburing-test/
clean:
rm -f $(all_targets) $(test_objs)